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) )