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 @@ -94,6 +94,10 @@ entire subnet to the VPN.
94
94
` 0/0 -x 1.2.3.0/24 ` to forward everything except the
95
95
local subnet over the VPN, for example.
96
96
97
+ --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
+
97
101
-v, --verbose
98
102
: print more information about the session. This option
99
103
can be used more than once for increased verbosity. By
Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ def parse_ipport(s):
57
57
python= path to python interpreter on the remote server
58
58
r,remote= ssh hostname (and optional username) of remote sshuttle server
59
59
x,exclude= exclude this subnet (can be used more than once)
60
+ exclude-from= exclude the subnets in a file (whitespace separated)
60
61
v,verbose increase debug message verbosity
61
62
e,ssh-cmd= the command to use to connect to the remote [ssh]
62
63
seed-hosts= with -H, use these hostnames for initial scan (comma-separated)
@@ -104,6 +105,8 @@ def parse_ipport(s):
104
105
for k ,v in flags :
105
106
if k in ('-x' ,'--exclude' ):
106
107
excludes .append (v )
108
+ if k in ('-X' , '--exclude-from' ):
109
+ excludes += open (v ).read ().split ()
107
110
remotename = opt .remote
108
111
if remotename == '' or remotename == '-' :
109
112
remotename = None
You can’t perform that action at this time.
0 commit comments