Comments (7)
https://github.com/docopt/docopt might be a good choice.
from sshuttle.
Would also consider argparse, if anybody wants to submit a patch :-)
from sshuttle.
I will take a look. I am more inclined to argparse as it is part of the standard library and using it instead of docopt would avoid the extra dependency.
I am also thinking of using argparse together with configparser so we could set some (or all or none) options in a configuration file. It would make life easier for people who use it as a daemon and would be more straightforward to package (?).
What do you think?
from sshuttle.
Yes, I would prefer argparse, I think it will be the more flexible solution in the long run; It probably will be worth the effort. I have had a look at docopt, however think what I have is a mess - possibly because I have never used docopt before.
configparser does sound like a good idea. There use to be config file processing specific to the packaging stuff I removed in 974f9ae - so you might want to look at that too (despite some rather strange quirks). I think the idea was you could configure multiple tunnels and have an init.d script automatically bring them up at system boot.
from sshuttle.
I have something working with argparse since last weekend but did not have the time this week to make any progress. Still needs testing, bug fixing and some polishing. I will probably leave configparser for another PR.
from sshuttle.
Thanks for the update.
from sshuttle.
Think I can close this now #82 merged.
from sshuttle.
Related Issues (20)
- failed to establish ssh session (2) HOT 1
- man page wrong, *buntu 22_04.3 HOT 5
- is there a way not to have sshuttle exit if one of the prefixes enter by domain name doesn't resolve ?
- Terminal broken with python3.12 HOT 19
- [Suggestion] Potential way to traffic UDP with udp-over-tcp
- [Feature Request] Forward to localhost
- use it to access services behind a gcloud IAP tunnel HOT 1
- Alternative connection backend (websockets)
- Sshuttle 1.1.1 not working on macOS Sonoma 14.1.1 HOT 7
- sshuttle fails when different sudo message appears.
- feature request: tunnel by process uid or gid
- Allowing local access to more specific local routes
- Why I can't connect to a remote VPS ? HOT 4
- cant open another ssh connection with sshuttle running
- Nix build fails to poetry2nix lacking cryptography 42.0.4 hash HOT 1
- Would addition of --no-custom-ssh-cmd allow a secure configuration in sudoers file HOT 1
- Installed sshuttle in a Conda environment on remote - unable to connect
- c : fatal: ssh connection to server exited with returncode 255 HOT 1
- Does sshuttle have requirements for server operating system? HOT 8
- webRTC IP leak with sshutle on HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sshuttle.