diff --git a/gestion/gen_confs/firewall.py b/gestion/gen_confs/firewall.py index c5aa3a7b..d372818f 100755 --- a/gestion/gen_confs/firewall.py +++ b/gestion/gen_confs/firewall.py @@ -649,7 +649,7 @@ class firewall_komaz(firewall_crans) : iptables_option = '-D' tc_option = 'del' subnet = IpSubnet(ip, conf_fw.mask[len(conf_fw.mask)-1]) - regles = iptables("-t mangle -L SUBNET-%s -n | tee `tempfile`-firewall`date -u +%y%m%d%H%M%S` | grep %s" % (subnet, ip)).split('\n') + regles = iptables("-t mangle -L SUBNET-%s -n | tee `tempfile -s _firewall`date -u +%y%m%d%H%M%S`` | grep %s" % (subnet, ip)).split('\n') # On sélectionne la première qui doit contenir ce que l'on veut regle = regles[0].split() mark = regle[7]