[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
|
@ -89,6 +89,10 @@ class firewall(base.firewall):
|
|||
self.blacklist_output('filter', apply=True)
|
||||
self.blacklist_hard_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_output(table=table, apply=apply)
|
||||
|
||||
def blacklist_output(self, table=None, apply=False):
|
||||
"""Empêche les gens blacklisté d'utiliser zamok comme relaie"""
|
||||
chain='BLACKLIST-OUTPUT'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue