[firewall_new,firewall6] Plus de filtrage p2p

This commit is contained in:
Valentin Samir 2013-03-14 17:26:39 +01:00
parent d88a7cabdc
commit ceeaa7525f
2 changed files with 10 additions and 10 deletions

View file

@ -167,10 +167,10 @@ def main_router():
ip6tables.filter.forward('-i %s -j BLACKLIST_SRC' % dev_wifi)
ip6tables.filter.forward('-i %s -j BLACKLIST_DST' % dev_ip6)
tracker_torrent(ip6tables)
ip6tables.filter.forward('-o %s -p udp -j TRACKER_TORRENT' % dev_ip6 )
ip6tables.filter.forward('-o %s -p tcp -m string --algo kmp --string "GET /" -j TRACKER_TORRENT' % dev_ip6)
ip6tables.filter.forward('-o %s -p tcp -m string --algo kmp --string "get /" -j TRACKER_TORRENT' % dev_ip6)
#tracker_torrent(ip6tables)
#ip6tables.filter.forward('-o %s -p udp -j TRACKER_TORRENT' % dev_ip6 )
#ip6tables.filter.forward('-o %s -p tcp -m string --algo kmp --string "GET /" -j TRACKER_TORRENT' % dev_ip6)
#ip6tables.filter.forward('-o %s -p tcp -m string --algo kmp --string "get /" -j TRACKER_TORRENT' % dev_ip6)
ip6tables.filter.forward('-m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT')