Advertisement
albspirit86

mikrotik torrent

Jul 13th, 2016
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. /ip firewall layer7-protocol
  2. add comment="Block Bit Torrent" name=layer7-bittorrent-exp regexp="^(\\x13bitt\
  3. orrent protocol|azver\\x01\$|get /scrape\\\?info_hash=get /announce\\\?inf\
  4. o_hash=|get /client/bitcomet/|GET /data\\\?fid=)|d1:ad2:id20:|\\x08'7P\\)[\
  5. RP]"
  6.  
  7. /ip firewall filter
  8. add action=add-src-to-address-list address-list=Torrent-Conn \
  9. address-list-timeout=2m chain=forward layer7-protocol=\
  10. layer7-bittorrent-exp src-address=192.168.10.0/24 src-address-list=\
  11. !allow-bit
  12. add action=add-src-to-address-list address-list=Torrent-Conn \
  13. address-list-timeout=2m chain=forward p2p=all-p2p src-address=\
  14. 192.168.10.0/24 src-address-list=!allow-bit
  15.  
  16. /ip firewall filter
  17. add action=drop chain=forward dst-port=!0-1024,8291,5900,5800,3389,14147,5222,59905 protocol=tcp \
  18. src-address-list=Torrent-Conn
  19. add action=drop chain=forward dst-port=!0-1024,8291,5900,5800,3389,14147,5222,59905 protocol=udp \
  20. src-address-list=Torrent-Conn
  21.  
  22.  
  23. lan 192.168.10.0/24
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement