diff --git a/gestion/gen_confs/firewall4/base.py b/gestion/gen_confs/firewall4/base.py index 0edd3931..b1422a79 100644 --- a/gestion/gen_confs/firewall4/base.py +++ b/gestion/gen_confs/firewall4/base.py @@ -15,7 +15,7 @@ import config.firewall #: Nom de la machine exécutant le script hostname = socket.gethostname() -hostname='routeur' + #: Association des interfaces de ``hostname`` dev = hostname in config.firewall.dev.keys() and config.firewall.dev[hostname] or {} diff --git a/gestion/gen_confs/firewall4/komaz.py b/gestion/gen_confs/firewall4/komaz.py index bfcd3e8d..e83b0a3f 100644 --- a/gestion/gen_confs/firewall4/komaz.py +++ b/gestion/gen_confs/firewall4/komaz.py @@ -66,7 +66,7 @@ class firewall(base.firewall_routeur): chain = 'POSTROUTING' self.add(table, chain, '-j %s' % self.clamp_mss(table)) - #self.add(table,chain, '-j %s' % self.limitation_debit(table, run_tc=True)) + self.add(table,chain, '-j %s' % self.limitation_debit(table, run_tc=True)) self.add(table, chain, '-j %s' % self.blacklist_upload(table, fill_ipset=True)) return