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
87ca53cb
Commit
87ca53cb
authored
Jul 06, 2012
by
Avery Pennarun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MacOS precompiled app package for sshuttle-0.61
parent
d5c3aa61
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
2 deletions
+14
-2
Sshuttle
Sshuttle VPN.app/Contents/MacOS/Sshuttle
+0
-0
firewall.py
Sshuttle VPN.app/Contents/Resources/sshuttle/firewall.py
+2
-0
main.py
Sshuttle VPN.app/Contents/Resources/sshuttle/main.py
+3
-0
server.py
Sshuttle VPN.app/Contents/Resources/sshuttle/server.py
+9
-2
No files found.
Sshuttle VPN.app/Contents/MacOS/Sshuttle
View file @
87ca53cb
No preview for this file type
Sshuttle VPN.app/Contents/Resources/sshuttle/firewall.py
View file @
87ca53cb
...
...
@@ -471,6 +471,8 @@ def main(port, dnsport, syslog):
# disappears; we still have to clean up.
signal
.
signal
(
signal
.
SIGHUP
,
signal
.
SIG_IGN
)
signal
.
signal
(
signal
.
SIGPIPE
,
signal
.
SIG_IGN
)
signal
.
signal
(
signal
.
SIGTERM
,
signal
.
SIG_IGN
)
signal
.
signal
(
signal
.
SIGINT
,
signal
.
SIG_IGN
)
# ctrl-c shouldn't be passed along to me. When the main sshuttle dies,
# I'll die automatically.
...
...
Sshuttle VPN.app/Contents/Resources/sshuttle/main.py
View file @
87ca53cb
...
...
@@ -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
...
...
Sshuttle VPN.app/Contents/Resources/sshuttle/server.py
View file @
87ca53cb
...
...
@@ -43,7 +43,12 @@ def _maskbits(netmask):
def
_shl
(
n
,
bits
):
return
n
*
int
(
2
**
bits
)
# we use our own implementation of left-shift because
# results may be different between older and newer versions
# of python for numbers like 1<<32. We use long() because
# int(2**32) doesn't work in older python, which has limited
# int sizes.
return
n
*
long
(
2
**
bits
)
def
_list_routes
():
...
...
@@ -68,9 +73,11 @@ def _list_routes():
def
list_routes
():
l
=
[]
for
(
ip
,
width
)
in
_list_routes
():
if
not
ip
.
startswith
(
'0.'
)
and
not
ip
.
startswith
(
'127.'
):
yield
(
ip
,
width
)
l
.
append
((
ip
,
width
))
return
l
def
_exc_dump
():
...
...
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