- Login to your Mikrotik router using Winbox
- Goto IP>Firewall>Layer7Protocol
- Click Add button
- Give the name “torrentsites” and type in 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|canhaem|utorrent).*$
- Like this:
- Then click “OK”
- From main menus side bar open “New Terminal”
- Copy and paste this new “Mangle rules” (without quotation) but
change the “scr-address” with your own local address. Code: “/ip fi
mangle
add chain=prerouting action=mark-connection new-connection-mark=P2P_conn passthrough=no src-address=10.0.5.0/24 layer7-protocol=torrentsites
add chain=forward action=mark-packet new-packet-mark=p2p_packet passthrough=no connection-mark=P2P_conn
add chain=prerouting action=mark-connection new-connection-mark=torrent_conn passthrough=no p2p=all-p2p src-address=10.0.5.0/24
add chain=forward action=mark-packet new-packet-mark=torrent_packet passthrough=no connection-mark=torrent_conn” - When its done it will create new rules in IP>Firewall>Mangle
- You can close your terminal now or re-open the new terminal.
- Copy and paste new rules (without the quotation mark) in the
terminal, pay attention with “parrent” sometimes you have to change them
to “global” in the new router OS. Code: “/queue tree
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=128k max-limit=256k name=Torrent packet-mark=torrent_packet parent=global-out priority=8 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=128k max-limit=256k name=P2P packet-mark=p2p_packet parent=global-out priority=8 queue=default” - The command above will create new rules in “Queue Tree” you can check them by clicking Queues>QueueTree.
- You can change “Limit At” and “Max Limit” values, letter “k” or “m” can be used, remember they are bits/s unit they are different than kB/s. The “Max Limit” is your maximum limit and “Limit At” is the guarantee bandwidth limit that router will give you.
- So far this rules work with uTorrent in my office. I suspect those rules work for combine connections for several users. I still try to find out the easy way to custom configure the rules for each individual user.
বুধবার, ২২ মার্চ, ২০১৭
Limit or reduce torrent download - Mikrotik
এতে সদস্যতা:
মন্তব্যগুলি পোস্ট করুন (Atom)
কোন মন্তব্য নেই:
একটি মন্তব্য পোস্ট করুন