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
6b48301b
Commit
6b48301b
authored
Dec 15, 2017
by
Becz Tamás
Committed by
Brian May
Dec 31, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move sdnotify after setting up firewall rules
parent
be90cc8a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
client.py
sshuttle/client.py
+0
-4
firewall.py
sshuttle/firewall.py
+3
-0
No files found.
sshuttle/client.py
View file @
6b48301b
...
@@ -8,7 +8,6 @@ import os
...
@@ -8,7 +8,6 @@ import os
import
sshuttle.ssnet
as
ssnet
import
sshuttle.ssnet
as
ssnet
import
sshuttle.ssh
as
ssh
import
sshuttle.ssh
as
ssh
import
sshuttle.ssyslog
as
ssyslog
import
sshuttle.ssyslog
as
ssyslog
import
sshuttle.sdnotify
as
sdnotify
import
sys
import
sys
import
platform
import
platform
from
sshuttle.ssnet
import
SockWrapper
,
Handler
,
Proxy
,
Mux
,
MuxWrapper
from
sshuttle.ssnet
import
SockWrapper
,
Handler
,
Proxy
,
Mux
,
MuxWrapper
...
@@ -533,9 +532,6 @@ def _main(tcp_listener, udp_listener, fw, ssh_cmd, remotename,
...
@@ -533,9 +532,6 @@ def _main(tcp_listener, udp_listener, fw, ssh_cmd, remotename,
debug1
(
'seed_hosts:
%
r
\n
'
%
seed_hosts
)
debug1
(
'seed_hosts:
%
r
\n
'
%
seed_hosts
)
mux
.
send
(
0
,
ssnet
.
CMD_HOST_REQ
,
str
.
encode
(
'
\n
'
.
join
(
seed_hosts
)))
mux
.
send
(
0
,
ssnet
.
CMD_HOST_REQ
,
str
.
encode
(
'
\n
'
.
join
(
seed_hosts
)))
sdnotify
.
send
(
sdnotify
.
ready
(),
sdnotify
.
status
(
'Connected to
%
s.'
%
remotename
))
while
1
:
while
1
:
rv
=
serverproc
.
poll
()
rv
=
serverproc
.
poll
()
if
rv
:
if
rv
:
...
...
sshuttle/firewall.py
View file @
6b48301b
...
@@ -7,6 +7,7 @@ import sys
...
@@ -7,6 +7,7 @@ import sys
import
os
import
os
import
platform
import
platform
import
traceback
import
traceback
import
sshuttle.sdnotify
as
sdnotify
from
sshuttle.helpers
import
debug1
,
debug2
,
Fatal
from
sshuttle.helpers
import
debug1
,
debug2
,
Fatal
from
sshuttle.methods
import
get_auto_method
,
get_method
from
sshuttle.methods
import
get_auto_method
,
get_method
...
@@ -219,6 +220,8 @@ def main(method_name, syslog):
...
@@ -219,6 +220,8 @@ def main(method_name, syslog):
user
)
user
)
stdout
.
write
(
'STARTED
\n
'
)
stdout
.
write
(
'STARTED
\n
'
)
sdnotify
.
send
(
sdnotify
.
ready
(),
sdnotify
.
status
(
'Connected'
))
try
:
try
:
stdout
.
flush
()
stdout
.
flush
()
...
...
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