Commit 5a4a2ab7 authored by Avery Pennarun's avatar Avery Pennarun

Oops, previous change to ipfw settings prevented cleanup from working.

parent 33efa5ac
...@@ -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('%05d ' % n): if line.startswith('%05d ' % 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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment