From 68c44302c80ee5e95bf5ae2c596006c8cf89a186 Mon Sep 17 00:00:00 2001 From: Nicolas Dandrimont Date: Tue, 13 May 2008 00:37:36 +0200 Subject: [PATCH] =?UTF-8?q?L'interface=20r=C3=A9seau=20de=20sable=20s'appe?= =?UTF-8?q?lle=20eth0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit darcs-hash:20080512223736-ffbb2-5fde7c524e0d067d61ec20e540de45ab30460a04.gz --- gestion/gen_confs/firewall.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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