Updated toriptables2.py Refactor

This commit is contained in:
Rupert Edwards 2016-01-14 12:15:46 -05:00
parent 0fd6ac5947
commit 48f3130d47

View file

@ -60,8 +60,7 @@ DNSPort %s
call(["iptables", "-t", "nat", "-A", "OUTPUT", "-m", "owner", "--uid-owner",
"%s" % self.tor_uid, "-j", "RETURN"])
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:
call(["iptables", "-t", "nat", "-A", "OUTPUT", "-d", "%s" % net, "-j",