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
5a4a2ab7
Commit
5a4a2ab7
authored
May 08, 2010
by
Avery Pennarun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Oops, previous change to ipfw settings prevented cleanup from working.
parent
33efa5ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
firewall.py
firewall.py
+1
-1
No files found.
firewall.py
View file @
5a4a2ab7
...
@@ -58,7 +58,7 @@ def ipfw_rule_exists(n):
...
@@ -58,7 +58,7 @@ def ipfw_rule_exists(n):
p
=
subprocess
.
Popen
(
argv
,
stdout
=
subprocess
.
PIPE
)
p
=
subprocess
.
Popen
(
argv
,
stdout
=
subprocess
.
PIPE
)
for
line
in
p
.
stdout
:
for
line
in
p
.
stdout
:
if
line
.
startswith
(
'
%05
d '
%
n
):
if
line
.
startswith
(
'
%05
d '
%
n
):
if
line
[
5
:]
.
find
(
'ipttl 42
'
)
<
0
:
if
line
.
find
(
'ipttl 42'
)
<
0
and
line
.
find
(
'established
'
)
<
0
:
raise
Fatal
(
'non-sshuttle ipfw rule #
%
d already exists!'
%
n
)
raise
Fatal
(
'non-sshuttle ipfw rule #
%
d already exists!'
%
n
)
return
True
return
True
rv
=
p
.
wait
()
rv
=
p
.
wait
()
...
...
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