[firewall4] Methode pour recharger toutes les blacklists

This commit is contained in:
Valentin Samir 2013-11-10 16:44:29 +01:00
parent e55e04aa13
commit 7ab6f2bcca
3 changed files with 16 additions and 1 deletions

View file

@ -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'