diff options
author | vieira <vieira@yubo.be> | 2016-11-01 21:01:56 +0000 |
---|---|---|
committer | Brian May <brian@linuxpenguins.xyz> | 2017-01-09 10:07:38 +1100 |
commit | e39c4afce0cddb07bfa538f5ee972d6283bab96d (patch) | |
tree | e64d846f9806cdf2b9a10f4ac8b4fb38c4dbc2ac /sshuttle/methods/pf.py | |
parent | 0e52cce9d1c1de71aa0d5baf9b3bf2f583a73025 (diff) |
Set started_by_sshuttle False after disabling pf
We set it to true when we enable pf, but do not set it back to False
after disabling. When using IPv4 and IPv6 we end up trying to disable
twice which procudes an error while undoing changes in FreeBSD 11.
Diffstat (limited to 'sshuttle/methods/pf.py')
-rw-r--r-- | sshuttle/methods/pf.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sshuttle/methods/pf.py b/sshuttle/methods/pf.py index 410a67f..c77ea5d 100644 --- a/sshuttle/methods/pf.py +++ b/sshuttle/methods/pf.py @@ -64,6 +64,7 @@ class Generic(object): pfctl('-a %s -F all' % anchor) if _pf_context['started_by_sshuttle']: pfctl('-d') + _pf_context['started_by_sshuttle'] = False def query_nat(self, family, proto, src_ip, src_port, dst_ip, dst_port): [proto, family, src_port, dst_port] = [ |