diff --git a/gestion/gen_confs/firewall.py b/gestion/gen_confs/firewall.py index 2c301868..eb46c3ac 100755 --- a/gestion/gen_confs/firewall.py +++ b/gestion/gen_confs/firewall.py @@ -647,7 +647,7 @@ class firewall_komaz(firewall_crans) : if not machines : # Il faut supprimer cette entrée iptables_option = '-D' - tc_option = '' + tc_option = 'del' subnet = IpSubnet(ip, conf_fw.mask[len(conf_fw.mask)-1]) regles = iptables("-t mangle -L SUBNET-%s -n | grep %s" % (subnet, ip)).split('\n') # On sélectionne la première qui doit contenir ce que l'on veut @@ -657,7 +657,7 @@ class firewall_komaz(firewall_crans) : elif len(machines) == 1 : # Il faut ajouter cette entrée iptables_option = '-A' - tc_option = '' + tc_option = 'add' machine = machines[0] adherent = machine.proprietaire() ip = machine.ip()