Le parefeu est odlyd
This commit is contained in:
parent
2fe2d18f9a
commit
0cd6342912
2 changed files with 22 additions and 3 deletions
|
@ -213,6 +213,12 @@ class thot(base_reconfigure):
|
|||
self._do(machines(), self._machines())
|
||||
|
||||
class odlyd(base_reconfigure):
|
||||
def __fw6(self):
|
||||
if not hasattr(self, '__real_fw6'):
|
||||
from firewall6 import Update
|
||||
self.__real_fw6 = Update()
|
||||
return self.__real_fw6
|
||||
|
||||
def filtrage_exemptions(self):
|
||||
from gen_confs.filtrage import exemptions
|
||||
self._do(exemptions())
|
||||
|
@ -221,6 +227,19 @@ class odlyd(base_reconfigure):
|
|||
from gen_confs.filtrage import machines
|
||||
self._do(machines(), self._machines())
|
||||
|
||||
def macip(self, ips):
|
||||
cprint(u"Mise a jour correspondance MAC-IP", 'gras')
|
||||
self._fw().mac_ip_maj(ips)
|
||||
self.__fw6().macs([], 6)
|
||||
|
||||
def ports(self, ips):
|
||||
self._fw().filtrage_ports_maj(ips)
|
||||
#self.__fw6().ports(map(self.midt.from_ipv4, ips), 6)
|
||||
|
||||
def blacklist(self, ips):
|
||||
self._fw().blacklist_maj(ips)
|
||||
self.__fw6().blacklist(6)
|
||||
|
||||
class zamok(base_reconfigure):
|
||||
def del_user(self, args):
|
||||
# Suppression des fichies d'impression
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue