বুধবার, ২২ মার্চ, ২০১৭

Limit or reduce torrent download - Mikrotik

  1. Login to your Mikrotik router using Winbox
  2. Goto  IP>Firewall>Layer7Protocol
  3. Click Add button
  4. 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).*$
  5. Like this:screenshot.6
  6. Then click “OK”
  7. From main menus side bar open “New Terminal”
  8. 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”
  9. When its done it will create new rules in IP>Firewall>Mangle
  10. You can close your terminal now or re-open the new terminal.
  11. 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”
  12. The command above will create new rules in “Queue Tree” you can check them by clicking Queues>QueueTree.screenshot.7
  13. 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.
  14. 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.

কোন মন্তব্য নেই:

একটি মন্তব্য পোস্ট করুন