From 238d80befa64c323215596205f63d25e07e8abed Mon Sep 17 00:00:00 2001 From: chove Date: Wed, 12 Oct 2005 22:44:22 +0200 Subject: [PATCH] detabification darcs-hash:20051012204422-4ec08-a114321b9bceb677f82ee5f6bae38624b59526a2.gz --- gestion/gen_confs/firewall.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/gestion/gen_confs/firewall.py b/gestion/gen_confs/firewall.py index 1f0b8163..dd85420e 100755 --- a/gestion/gen_confs/firewall.py +++ b/gestion/gen_confs/firewall.py @@ -122,9 +122,9 @@ class firewall_crans : def __del__(self) : """ Destruction du lock """ - # Comprend pas pourquoi il faut réimporter ici -- Fred - from lock import remove_lock - remove_lock('firewall') + # Comprend pas pourquoi il faut réimporter ici -- Fred + from lock import remove_lock + remove_lock('firewall') def nat_table(self) : """ Remplit la table nat """ @@ -750,16 +750,16 @@ class firewall_zamok(firewall_crans) : # LDAP et DNS toujours joignable iptables("-A SERV_OUT_ADM -p tcp --dport ldap -j ACCEPT") - iptables("-A SERV_OUT_ADM -p tcp --dport domain -j ACCEPT") - iptables("-A SERV_OUT_ADM -p udp --dport domain -j ACCEPT") + iptables("-A SERV_OUT_ADM -p tcp --dport domain -j ACCEPT") + iptables("-A SERV_OUT_ADM -p udp --dport domain -j ACCEPT") # Pour le nfs (le paquet à laisser passer n'a pas d'owner) iptables("-A SERV_OUT_ADM -d nfs.adm.crans.org -m owner ! --uid-owner 0 -j REJECT --reject-with icmp-net-prohibited") iptables("-A SERV_OUT_ADM -d nfs.adm.crans.org -j ACCEPT") # Rien d'autre ne passe - iptables("-A SERV_OUT_ADM -j REJECT --reject-with icmp-net-prohibited") - + iptables("-A SERV_OUT_ADM -j REJECT --reject-with icmp-net-prohibited") + self.anim.reinit() print OK @@ -897,9 +897,9 @@ if __name__ == '__main__' : fw = eval('firewall_%s()' % hostname) chaines = [] for nom in dir(fw) : - if nom in [ 'log_chaines' , 'test_virus_flood', 'reseaux_non_routables', 'test_mac_ip' , 'blacklist' , 'ext_vers_serveurs' , 'serveurs_vers_ext', 'ext_vers_crans', 'crans_vers_ext' , 'filtre_p2p', 'admin_vlan' , 'serv_out_adm'] : - chaines.append(nom) - + if nom in [ 'log_chaines' , 'test_virus_flood', 'reseaux_non_routables', 'test_mac_ip' , 'blacklist' , 'ext_vers_serveurs' , 'serveurs_vers_ext', 'ext_vers_crans', 'crans_vers_ext' , 'filtre_p2p', 'admin_vlan' , 'serv_out_adm'] : + chaines.append(nom) + def __usage(txt=None) : if txt!=None : cprint(txt,'gras')