nat pour le https sur le vlan radin
darcs-hash:20081001225428-af139-aceff81d3bca18a2bb8b183a40c988e8a1a744dc.gz
This commit is contained in:
parent
a510187636
commit
1ff889beda
1 changed files with 4 additions and 0 deletions
|
@ -1173,6 +1173,10 @@ class firewall_sable(firewall_rouge):
|
|||
iptables("-t nat -i %s -A PREROUTING -p tcp --destination-port 3128 -j ACCEPT" % interface)
|
||||
iptables("-t nat -i %s -A PREROUTING -p tcp --destination-port 443 -j ACCEPT" % interface)
|
||||
|
||||
iptables("-i %s -A FORWARD -p tcp --destination-port 443 -j ACCEPT" % if_radin)
|
||||
iptables("-o %s -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT" % if_radin)
|
||||
iptables("-t nat -o %s -A POSTROUTING -p tcp --destination-port 443 -j MASQUERADE" % if_radin)
|
||||
|
||||
# Limite de débit sur le vlan radin
|
||||
tc("qdisc del dev %s root" % if_radin)
|
||||
tc("qdisc add dev %s root htb" % if_radin)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue