L'interface réseau de sable s'appelle eth0

darcs-hash:20080512223736-ffbb2-5fde7c524e0d067d61ec20e540de45ab30460a04.gz
This commit is contained in:
Nicolas Dandrimont 2008-05-13 00:37:36 +02:00
parent 33fa80b9ba
commit 68c44302c8

View file

@ -1174,7 +1174,7 @@ class firewall_sable(firewall_rouge):
def mangle_table(self):
# Pour le proxy transparent
iptables("-t mangle -F PREROUTING")
iptables("-t mangle -i crans.2 -A PREROUTING -p tcp --destination-port 3128 " +
iptables("-t mangle -i eth0.2 -A PREROUTING -p tcp --destination-port 3128 " +
"--destination 10.231.136.9 " +
"-m mac --mac-source %s " % mac_komaz +
"-j MARK --set-mark %s" % conf_fw.mark['proxy'])
@ -1183,7 +1183,7 @@ class firewall_sable(firewall_rouge):
def nat_table(self):
firewall_rouge.nat_table(self)
# Pour le proxy transparent
iptables("-t nat -I PREROUTING -i crans.2 -m mark --mark %s -j ACCEPT" % conf_fw.mark['proxy'])
iptables("-t nat -I PREROUTING -i eth0.2 -m mark --mark %s -j ACCEPT" % conf_fw.mark['proxy'])
firewall_bleu = firewall_zamok