MCPcopy Create free account
hub / github.com/sshuttle/sshuttle / disable

Method disable

sshuttle/methods/pf.py:72–76  ·  view source on GitHub ↗
(anchor)

Source from the content-addressed store, hash-verified

70
71 @staticmethod
72 def disable(anchor):
73 pfctl('-a %s -F all' % anchor)
74 if _pf_context['started_by_sshuttle'] == 1:
75 pfctl('-d')
76 _pf_context['started_by_sshuttle'] -= 1
77
78 def query_nat(self, family, proto, src_ip, src_port, dst_ip, dst_port):
79 [proto, family, src_port, dst_port] = [

Callers

nothing calls this directly

Calls 1

pfctlFunction · 0.70

Tested by

no test coverage detected