diff --git a/gestion/gen_confs/firewall.py b/gestion/gen_confs/firewall.py index a0d01b02..020f2dd7 100755 --- a/gestion/gen_confs/firewall.py +++ b/gestion/gen_confs/firewall.py @@ -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