Updated toriptables2.py Refactor
This commit is contained in:
parent
0fd6ac5947
commit
48f3130d47
1 changed files with 1 additions and 2 deletions
|
@ -60,8 +60,7 @@ DNSPort %s
|
||||||
call(["iptables", "-t", "nat", "-A", "OUTPUT", "-m", "owner", "--uid-owner",
|
call(["iptables", "-t", "nat", "-A", "OUTPUT", "-m", "owner", "--uid-owner",
|
||||||
"%s" % self.tor_uid, "-j", "RETURN"])
|
"%s" % self.tor_uid, "-j", "RETURN"])
|
||||||
call(["iptables", "-t", "nat", "-A", "OUTPUT", "-p", "udp", "--dport",
|
call(["iptables", "-t", "nat", "-A", "OUTPUT", "-p", "udp", "--dport",
|
||||||
self.local_dnsport, "-j", "REDIRECT", "--to-ports", self.local_dnsport
|
self.local_dnsport, "-j", "REDIRECT", "--to-ports", self.local_dnsport])
|
||||||
])
|
|
||||||
|
|
||||||
for net in self.non_tor:
|
for net in self.non_tor:
|
||||||
call(["iptables", "-t", "nat", "-A", "OUTPUT", "-d", "%s" % net, "-j",
|
call(["iptables", "-t", "nat", "-A", "OUTPUT", "-d", "%s" % net, "-j",
|
||||||
|
|
Loading…
Reference in a new issue