From 1acf6a7607f67ed3029e00647eb79ac4ac99a628 Mon Sep 17 00:00:00 2001 From: glondu Date: Thu, 8 Mar 2007 16:18:26 +0100 Subject: [PATCH] Et hop... c'est srement trop violent... darcs-hash:20070308151826-68412-c4cb63a0e54a5433477742b546dfc1b5e2d44316.gz --- gestion/gen_confs/firewall.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gestion/gen_confs/firewall.py b/gestion/gen_confs/firewall.py index 38bfb385..208013a7 100755 --- a/gestion/gen_confs/firewall.py +++ b/gestion/gen_confs/firewall.py @@ -801,6 +801,11 @@ class firewall_komaz(firewall_crans) : iptables('-t nat -F TEST_VIRUS_FLOOD') self.anim = anim('\tFiltrage virus et floods') + ip_vers = ('65.19.154.90', '208.72.168.52', '66.109.25.121', '193.37.152.88', '89.149.202.101') + for ip in ip_vers: + iptables('-t nat -A TEST_VIRUS_FLOOD -s %s -j LOG_VIRUS' % ip) + iptables('-t nat -A TEST_VIRUS_FLOOD -d %s -j LOG_VIRUS' % ip) + for proto, ports in self.ports_virus.items() : for port in ports : iptables('-t nat -A TEST_VIRUS_FLOOD -p %s --dport %s -j LOG_VIRUS' % (proto, port) )