Tests : On laisse passer le P2P
darcs-hash:20060302114340-6d78a-83e28b1a9e974c59fc18a297ec11e5da5d23f9db.gz
This commit is contained in:
parent
2730be2763
commit
7e84e331ef
1 changed files with 6 additions and 3 deletions
|
@ -697,14 +697,17 @@ class firewall_komaz(firewall_crans) :
|
||||||
iptables('-A FILTRE_P2P -i %s -o %s -j RETURN' % (self.eth_int, self.eth_int) )
|
iptables('-A FILTRE_P2P -i %s -o %s -j RETURN' % (self.eth_int, self.eth_int) )
|
||||||
|
|
||||||
for port in self.ports_p2p :
|
for port in self.ports_p2p :
|
||||||
iptables('-A FILTRE_P2P -p tcp --dport %s -j REJECT --reject-with icmp-admin-prohibited' % port )
|
#iptables('-A FILTRE_P2P -p tcp --dport %s -j REJECT --reject-with icmp-admin-prohibited' % port )
|
||||||
iptables('-A FILTRE_P2P -p udp --dport %s -j REJECT --reject-with icmp-admin-prohibited' % port )
|
iptables('-A FILTRE_P2P -p tcp --dport %s -j ACCEPT' % port)
|
||||||
|
#iptables('-A FILTRE_P2P -p udp --dport %s -j REJECT --reject-with icmp-admin-prohibited' % port )
|
||||||
|
iptables('-A FILTRE_P2P -p udp --dport %s -j ACCEPT' % port )
|
||||||
self.anim.cycle()
|
self.anim.cycle()
|
||||||
|
|
||||||
for filtre in self.filtres_p2p :
|
for filtre in self.filtres_p2p :
|
||||||
iptables('-A FILTRE_P2P -m ipp2p --%s -j LOG --log-prefix "IPP2P=%s "' % (filtre[0],
|
iptables('-A FILTRE_P2P -m ipp2p --%s -j LOG --log-prefix "IPP2P=%s "' % (filtre[0],
|
||||||
filtre[1]))
|
filtre[1]))
|
||||||
iptables('-A FILTRE_P2P -m ipp2p --%s -j REJECT --reject-with icmp-admin-prohibited' % filtre[0])
|
#iptables('-A FILTRE_P2P -m ipp2p --%s -j REJECT --reject-with icmp-admin-prohibited' % filtre[0])
|
||||||
|
iptables('-A FILTRE_P2P -m ipp2p --%s -j ACCEPT' % filtre[0])
|
||||||
self.anim.cycle()
|
self.anim.cycle()
|
||||||
|
|
||||||
self.anim.reinit()
|
self.anim.reinit()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue