Hi,
I have been using RB951G-2HnD to make hotspot. I can create hotspot successfully and use it. I can successfully create a profile and make limits of Data and Speed. But what i want is internet speed of 5 mbps only when i am using youtube, except youtube i want internet speed of 256kbps using same username and password.
you can not do that easily
you must remove all bandwidth limit and create by hand all queue for all users for separate traffic.
create queue and traffic for each user??? from simple queue or from usermanager
does any one have any solution to this porblem… or how can we solve this???
This might help you.
http://radiusm.blogspot.com/2014/08/youtube-limitfull-access-mikrotik.html
didn’t worked in hotspot… have you tested it in hotspot?
It’s working for me.
I am currently running Hotspot, PPPoE and Static IP Network on same interface.
Try to modify the mangle rule adding src-address-list
/ip firewall address-list
add address=x.x.x.x/x disabled=no list=LAN (your LAN IP or PPPoE Pool or Hotspot Pool)
/ip firewall mangle
add action=mark-connection chain=prerouting comment="Youtube_ Client" \
disabled=no layer7-protocol=streaming new-connection-mark=youtube \
passthrough=no src-address-list=LAN
add action=mark-packet chain=output connection-mark=youtube disabled=no \
new-packet-mark=youtube passthrough=no protocol=tcp
How did you do that arjuneu … i mean i have created hotspot and everything works according to the limit except youtube… first i have created hotspot and then added the script then i created users but youtube still has problem…
Please post your config. I’ll have a look at it. Which ROS you are using?
/ip firewall layer7-protocol
/ip firewall mangle
/queue type
/queue tree
Arjun dost can you give me your mobile number… i am also from Nepal… Lekhnath,Kaski Nepal… ummmm i need to ask you something more…
9845369090
First i have created hotspot and users with 64k internet speed and unlimited data. Then i have added these code and after that i have tested the hotspot in my laptop. While using internet it works fine according to the limit but not good for youtube.
/ip firewall layer7-protocol
add name=streaming regexp=videoplayback|video
/ip firewall mangle
add action=mark-connection chain=prerouting comment="Youtube_ Client" disabled=no layer7-protocol=streaming new-connection-mark=youtube passthrough=no src-address-list=wlan1
add action=mark-packet chain=output connection-mark=youtube disabled=no new-packet-mark=youtube passthrough=no protocol=tcp
/queue type
add kind=pcq name=PCQ_Upload pcq-burst-rate=0 pcq-burst-threshold=0 pcq-burst-time=10s pcq-classifier=src-address pcq-dst-address-mask=32 pcq-dst-address6-mask=64 pcq-limit=50 pcq-rate=1024k pcq-src-address-mask=32 pcq-src-address6-mask=64 pcq-total-limit=2000
/queue tree
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=0 name=Youtube_Up packet-mark=youtube parent=global-out priority=8 queue=PCQ_Upload
After this i login to my laptop. i can only see simple queue not queue tree… is it not working because its not in queue tree…

i have also added
/ip firewall address-list
add address=10.10.1.1/24 disabled=no list=wlan1
Are your mangle rules counting packets. If so, see on Queue Tree Tab, there should be Youtube_up with average rate around 1mbps when browsing youtube.
Also,
youtube.com don’t get full speed until video streaming is started.
IP Firewall Mangle Rule



Address List And Layer7 Protocols


Queue Tree And Queue Type


Ummm everything seems fine but still i could not get it… am i missing something???
Where is the “mark-connection” rule in mangle?
Try the below code removing your existing rule.
add action=mark-connection chain=prerouting comment="Youtube" \
disabled=no layer7-protocol=streaming new-connection-mark=youtube \
passthrough=no src-address-list=wlan1
add action=mark-packet chain=output connection-mark=youtube disabled=no \
new-packet-mark=youtube passthrough=no protocol=tcp
Your mangle rule should be in forward chain, not output.