diff --git a/gestion/gen_confs/firewall.py b/gestion/gen_confs/firewall.py index 03dd1b2e..51c19bf5 100644 --- a/gestion/gen_confs/firewall.py +++ b/gestion/gen_confs/firewall.py @@ -1234,7 +1234,11 @@ class firewall_sable(firewall_rouge): iptables("-t nat -A POSTROUTING -m mark --mark %s -j MASQUERADE" % conf_fw.mark["https-radin"]) # Limite de débit sur le vlan radin - tc("qdisc del dev %s root" % if_radin) + try: + tc("qdisc del dev %s root" % if_radin) + except TcError, c: + print(str(c) + '\n') + tc("qdisc add dev %s root htb" % if_radin) tc("class add dev %s root htb rate %d ceil %d" % (if_radin, debit_max_radin, debit_max_radin))