Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sshuttle
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pub
sshuttle
Commits
29d2e06b
Commit
29d2e06b
authored
Apr 19, 2011
by
Tianyi Cui
Committed by
Avery Pennarun
Jul 06, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added --exclude-from feature.
(Slightly modified by apenwarr)
parent
bff16100
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
sshuttle.md
Documentation/sshuttle.md
+4
-0
main.py
main.py
+3
-0
No files found.
Documentation/sshuttle.md
View file @
29d2e06b
...
...
@@ -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
...
...
main.py
View file @
29d2e06b
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment