|
|
|
|
@ -69,6 +69,13 @@ class privHelper():
|
|
|
|
|
except Exception as e:
|
|
|
|
|
print('(PrivError) {}'.format(e))
|
|
|
|
|
|
|
|
|
|
def blocklistFlush(self):
|
|
|
|
|
try:
|
|
|
|
|
with Pyro5.api.Proxy(self._netfilterURI) as nf:
|
|
|
|
|
nf.blocklistFlush()
|
|
|
|
|
except Exception as e:
|
|
|
|
|
print('(PrivError) {}'.format(e))
|
|
|
|
|
|
|
|
|
|
def flushCT(self):
|
|
|
|
|
try:
|
|
|
|
|
with Pyro5.api.Proxy(self._conntrackURI) as ct:
|
|
|
|
|
@ -77,8 +84,6 @@ class privHelper():
|
|
|
|
|
print('(PrivError) {}'.format(e))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Proxy(DatagramProtocol):
|
|
|
|
|
|
|
|
|
|
def __init__(self,Master,ListenPort,connTrack,peerTrack,blackList,IPBlackList,Timeout,Debug,ClientInfo,DestportStart,DestPortEnd,privHelper,rptlTrack):
|
|
|
|
|
|