From 214ee15b5077f9bfcb574c484fe903f2e5477168 Mon Sep 17 00:00:00 2001 From: salles Date: Mon, 3 Apr 2006 22:52:37 +0200 Subject: [PATCH] Renommage des interfaces darcs-hash:20060403205237-72cb0-8580f7fc7530d6c02c8f44f9e57c2a3f04e23cec.gz --- gestion/gen_confs/firewall.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gestion/gen_confs/firewall.py b/gestion/gen_confs/firewall.py index 181986b0..b959b8c4 100755 --- a/gestion/gen_confs/firewall.py +++ b/gestion/gen_confs/firewall.py @@ -409,8 +409,8 @@ class firewall_komaz(firewall_crans) : """ # interfaces physiques - eth_ext = "eth2" - eth_int = "eth0" + eth_ext = "ens" + eth_int = "crans" # Ports ouverts ports_default = { 'tcp_EXT_VERS_CRANS' : [ '22' ], @@ -899,9 +899,9 @@ class firewall_sila(firewall_rouge): def nat_table(self): firewall_rouge.nat_table(self) # Pour le proxy transparent - iptables("-t nat -I PREROUTING -i eth0.2 -m mark --mark 2 -j ACCEPT") + iptables("-t nat -I PREROUTING -i crans.2 -m mark --mark 2 -j ACCEPT") iptables("-t mangle -F PREROUTING") - iptables("-t mangle -i eth0.2 -A PREROUTING -p tcp --destination-port 3128 " + + iptables("-t mangle -i crans.2 -A PREROUTING -p tcp --destination-port 3128 " + "--destination 138.231.144.10 " + "-m mac --mac-source %s -j MARK --set-mark 2" % mac_komaz)