How to Block Torrent on Mikrotik

 

Block Torrent on Mikrotik

if you want to block torrent & p2p traffic on 192.168.1.0/24
replace ip according to your need

 

/ip firewall layer7-protocol
add name=torrentsites regexp=”^.*(get|GET).+(torrent|thepiratebay|isohunt|ente\
rtane|demonoid|btjunkie|mininova|flixflux|torrentz|vertor|h33t|btscene|bit\
unity|bittoxic|thunderbytes|entertane|zoozle|vcdq|bitnova|bitsoup|meganova\
|fulldls|btbot|flixflux|seedpeer|fenopy|gpirate|commonbits).*\$”

 

 

/ip firewall filter
add action=drop chain=forward comment=torrentsites layer7-protocol=\
torrentsites src-address=192.168.1.0/24
add action=drop chain=forward comment=dropDNS dst-port=53 layer7-protocol=\
torrentsites protocol=udp src-address=192.168.1.0/24
add action=drop chain=forward comment=keyword_drop content=torrent \
src-address=192.168.1.0/24
add action=drop chain=forward comment=trackers_drop content=tracker \
src-address=192.168.1.0/24
add action=drop chain=forward comment=get_peers_drop content=getpeers \
src-address=192.168.1.0/24
add action=drop chain=forward comment=info_hash_drop content=info_hash \
src-address=192.168.1.0/24
add action=drop chain=forward comment=announce_peers_drop content=\
announce_peers src-address=192.168.1.0/24
add action=drop chain=forward comment=p2p_drop p2p=all-p2p src-address=\
192.168.1.0/24

Related posts

Leave a Comment