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)