diff --git a/gestion/classe_firewall.py b/gestion/classe_firewall.py index 59869ea6..8b3d36ee 100755 --- a/gestion/classe_firewall.py +++ b/gestion/classe_firewall.py @@ -20,9 +20,9 @@ import iptools,config,fileinput from ldap_crans import * from config_firewall import * from affich_tools import * -def test(fredgroscon): - print fredgroscon - os.system(fredgroscon) +def test(pouet): + print pouet + os.system(pouet) class ErrorArgument(Exception): """ @@ -115,7 +115,8 @@ class firewall: chaine=tmp[1] count=0 if ip in line: - os.system("iptables -D %s %i"%(chaine,count)) + os.system("iptables -L") + test("iptables -D %s %i"%(chaine,count)) count=count-1 os.system("rm -f /tmp/firewall") @@ -349,31 +350,31 @@ class firewall: wifi=False while (i