Updated toriptables2.py Refactor
This commit is contained in:
parent
4d25fbe118
commit
3ddac874f6
1 changed files with 2 additions and 2 deletions
|
@ -19,8 +19,8 @@ from argparse import ArgumentParser
|
||||||
class TorIptables(object):
|
class TorIptables(object):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.local_dnsport = "53" # DNSPort
|
self.local_dnsport = "53" # DNSPort
|
||||||
self.virtual_net = "10.0.0.0/10" # VirtualAddrNetwork
|
self.virtual_net = "10.0.0.0/10" # VirtualAddrNetwork
|
||||||
self.non_tor_net = ["192.168.0.0/16", "172.16.0.0/12"]
|
self.non_tor_net = ["192.168.0.0/16", "172.16.0.0/12"]
|
||||||
self.non_tor = ["127.0.0.0/9", "127.128.0.0/10", "127.0.0.0/8"]
|
self.non_tor = ["127.0.0.0/9", "127.128.0.0/10", "127.0.0.0/8"]
|
||||||
self.tor_uid = getoutput("id -ur debian-tor") # Tor user uid
|
self.tor_uid = getoutput("id -ur debian-tor") # Tor user uid
|
||||||
|
|
Loading…
Reference in a new issue