[./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:
parent
081c1c588d
commit
4037bdb62a
1 changed files with 5 additions and 1 deletions
|
@ -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))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue