diff options
-rw-r--r-- | Documentation/sshuttle.md | 4 | ||||
-rwxr-xr-x | main.py | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/Documentation/sshuttle.md b/Documentation/sshuttle.md index 59901ec..4caf6cc 100644 --- a/Documentation/sshuttle.md +++ b/Documentation/sshuttle.md @@ -94,6 +94,10 @@ entire subnet to the VPN. `0/0 -x 1.2.3.0/24` to forward everything except the local subnet over the VPN, for example. +--exclude-from=*file* +: exclude the subnets specified in a file, one subnet per + line. Useful when you have lots of subnets to exclude. + -v, --verbose : print more information about the session. This option can be used more than once for increased verbosity. By @@ -57,6 +57,7 @@ dns capture local DNS requests and forward to the remote DNS server python= path to python interpreter on the remote server r,remote= ssh hostname (and optional username) of remote sshuttle server x,exclude= exclude this subnet (can be used more than once) +exclude-from= exclude the subnets in a file (whitespace separated) v,verbose increase debug message verbosity e,ssh-cmd= the command to use to connect to the remote [ssh] seed-hosts= with -H, use these hostnames for initial scan (comma-separated) @@ -104,6 +105,8 @@ try: for k,v in flags: if k in ('-x','--exclude'): excludes.append(v) + if k in ('-X', '--exclude-from'): + excludes += open(v).read().split() remotename = opt.remote if remotename == '' or remotename == '-': remotename = None |