Bloqueando sites P2P no Linux com Iptables.

  • Post author:
  • Post category:Sem categoria

Regras para bloquear protocolos P2P com o firewall iptables no Linux:

/usr/sbin/iptables -I FORWARD -p tcp -m layer7 –l7proto bittorrent -j DROP
/usr/sbin/iptables -I FORWARD -p tcp -m layer7 –l7proto directconnect -j DROP
/usr/sbin/iptables -I FORWARD -p tcp -m layer7 –l7proto gnutella -j DROP
/usr/sbin/iptables -I FORWARD -p tcp -m layer7 –l7proto edonkey -j DROP
/usr/sbin/iptables -I FORWARD -p tcp -m layer7 –l7proto bearshare -j DROP
/usr/sbin/iptables -I FORWARD -p tcp -m layer7 –l7proto winmx -j DROP