Commit 37f753c2 authored by Valentin Samir's avatar Valentin Samir
Browse files

[generate] On met en prod le nouveau script du firewall sur komaz

parent 34ec2a6f
......@@ -237,7 +237,7 @@ class daath(base_reconfigure):
class komaz(base_reconfigure):
def __fw(self):
if not hasattr(self, '__real_fw'):
from firewall_new import firewall_komaz
from firewall4 import firewall_komaz
self.__real_fw = firewall_komaz()
return self.__real_fw
......@@ -255,15 +255,16 @@ class komaz(base_reconfigure):
self.__fw6().macs([], 6)
def ports(self, ips):
self.__fw().port_maj(ips)
self.__fw().filtrage_ports_maj(ips)
#self.__fw6().ports(map(self.midt.from_ipv4, ips), 6)
def blacklist(self):
self.__fw().blacklist()
def blacklist(self, ips):
self.__fw().blacklist_maj(ips)
self.__fw6().blacklist(6)
def classify(self, ips):
self.__fw().classes_p2p_maj(ips)
#self.__fw().classes_p2p_maj(ips)
pass
class dyson(base_reconfigure):
def autostatus(self):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment