File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -120,6 +120,7 @@ def parse_ipport6(s):
120120python= path to python interpreter on the remote server
121121r,remote= ssh hostname (and optional username) of remote sshuttle server
122122x,exclude= exclude this subnet (can be used more than once)
123+ X,exclude-from= exclude the subnets in a file (whitespace separated)
123124v,verbose increase debug message verbosity
124125e,ssh-cmd= the command to use to connect to the remote [ssh]
125126seed-hosts= with -H, use these hostnames for initial scan (comma-separated)
@@ -165,6 +166,8 @@ def parse_ipport6(s):
165166 for k , v in flags :
166167 if k in ('-x' , '--exclude' ):
167168 excludes .append (v )
169+ if k in ('-X' , '--exclude-from' ):
170+ excludes += open (v ).read ().split ()
168171 remotename = opt .remote
169172 if remotename == '' or remotename == '-' :
170173 remotename = None
Original file line number Diff line number Diff line change @@ -94,6 +94,10 @@ entire subnet to the VPN.
9494 ` 0/0 -x 1.2.3.0/24 ` to forward everything except the
9595 local subnet over the VPN, for example.
9696
97+ -X, --exclude-from=* file*
98+ : exclude the subnets specified in a file, one subnet per
99+ line. Useful when you have lots of subnets to exclude.
100+
97101-v, --verbose
98102: print more information about the session. This option
99103 can be used more than once for increased verbosity. By
You can’t perform that action at this time.
0 commit comments