Advertisement
albspirit86

BLOCK TORRENT P2P IN MIKROTIK

Jul 1st, 2014
373
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. Assume you want to block torrent & p2p traffic on 192.168.10.0/24
  2.  
  3. Local/Lan address is 192.168.10.0/24 (Change setting according to your network)
  4.  
  5.  
  6. /ip firewall layer7-protocol
  7. add name=torrentsites regexp="^.*(get|GET).+(torrent|thepiratebay|isohunt|entertane|demonoid|btjunkie|mininova|flixflux|torrentz|vertor|h33t|btscene|bitunity|bittoxic|thunderbytes|entertane|zoozle|vcdq|bitnova|bitsoup|meganova|fulldls|btbot|flixflux|seedpeer|fenopy|gpirate|commonbits).*\$"
  8.  
  9. /ip firewall filter
  10. add chain=forward src-address=192.168.10.0/24 layer7-protocol=torrentsites action=drop comment=torrentsites
  11. add chain=forward src-address=192.168.10.0/24 protocol=17 dst-port=53 layer7-protocol=torrentsites action=drop comment=dropDNS
  12. add chain=forward src-address=192.168.10.0/24 content=torrent action=drop comment=keyword_drop
  13. add chain=forward src-address=192.168.10.0/24 content=tracker action=drop comment=trackers_drop
  14. add chain=forward src-address=192.168.10.0/24 content=getpeers action=drop comment=get_peers_drop
  15. add chain=forward src-address=192.168.10.0/24 content=info_hash action=drop comment=info_hash_drop
  16. add chain=forward src-address=192.168.10.0/24 content=announce_peers action=drop comment=announce_peers_drop
  17.  
  18.  
  19.  
  20. add chain=forward src-address=192.168.10.0/24 p2p=all-p2p action=drop comment=p2p_drop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement