Hey guys , I’m a beginner in Mikrotik …
I use RouterOS v5.26
I’m using rules in mangle to mark packets from Layer 7 where I put about 20 extensions like .avi .rar . iso … to be limited in download , while browsing is in full speed for any client .
It works fine and any simple queue I create for any specific IP , It can browse with full speed and download - the extensions I specified in Layer 7 - with the speed in the queue …
Now the problem is P2P
I CAN’T MANAGE IT"S SPEED ![]()
Is there any way to create a simple queue for P2P where I can manage the speed of it ?
I tried this code
/ip firewall layer7-protocol
add name=p2p_www regexp="^.*(get|GET).+(torrent|thepiratebay|isohunt|entertane\
|demonoid|btjunkie|mininova|flixflux|vertor|h33t|zoozle|bitnova|bitsoup|me\
ganova|fulldls|btbot|fenopy|gpirate|commonbits).*\$"
add name=p2p_dns regexp="^.+(torrent|thepiratebay|isohunt|entertane|demonoid|b\
tjunkie|mininova|flixflux|vertor|h33t|zoozle|bitnova|bitsoup|meganova|full\
dls|btbot|fenopy|gpirate|commonbits).*\$"
/ip firewall mangle
add action=mark-packet chain=postrouting comment="p2p download" disabled=no \
layer7-protocol=p2p_www new-packet-mark="p2p download" passthrough=no
add action=mark-packet chain=postrouting disabled=no layer7-protocol=p2p_dns \
new-packet-mark="p2p download" passthrough=no
/queue simple
add burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s direction=both \
disabled=no interface=all limit-at=0/0 max-limit=1k/1k name=\
"p2p download" packet-marks="p2p download" parent=none priority=8 queue=\
default-small/default-small target-addresses="" total-queue=default-small
It works fine , The issue was that when any hotspot user login and Hotspot/Radius creates Dynamic Queues, and it override simple queue by moving itself above the static queue !!
how to prevent this automatic creating of simple queues ?
and the code I posted , will it block any P2P traffic ?
Thanks in advance for your help …