[./gestion/gen_confs/firewall.py] Gros hack pour faire marcher la génération du firewall dans tous les cas de figure

Mince ça pourrait faire marcher le proxy transparent quand on reboote
sable ...

darcs-hash:20090417051000-8fbb1-c8a56da18e487a5a4afcfb1ff90257a927e09e21.gz
This commit is contained in:
Olivier Huber 2009-04-17 07:10:00 +02:00
parent 081c1c588d
commit 4037bdb62a

View file

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