Et hop... c'est srement trop violent...
darcs-hash:20070308151826-68412-c4cb63a0e54a5433477742b546dfc1b5e2d44316.gz
This commit is contained in:
parent
54e38ba222
commit
1acf6a7607
1 changed files with 5 additions and 0 deletions
|
@ -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) )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue