[firewall4] Methode pour recharger toutes les blacklists
This commit is contained in:
parent
e55e04aa13
commit
7ab6f2bcca
3 changed files with 16 additions and 1 deletions
|
@ -46,6 +46,11 @@ class firewall(base.firewall_routeur):
|
|||
self.blacklist_soft_maj(ips)
|
||||
self.blacklist_upload_maj(ips)
|
||||
|
||||
def blacklists(self, table=None, fill_ipset=False, apply=False):
|
||||
self.blacklist_hard(table=table, fill_ipset=fill_ipset, apply=apply)
|
||||
self.blacklist_soft(table=table, fill_ipset=fill_ipset, apply=apply)
|
||||
self.blacklist_upload(table=table, fill_ipset=fill_ipset, apply=apply)
|
||||
|
||||
def raw_table(self):
|
||||
"""Génère les règles pour la table ``raw`` et remplis les chaines de la table"""
|
||||
table = 'raw'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue