Page 1 of 1
Userman Youtube Help
Posted: Sat Aug 02, 2014 4:38 pm
by z3ro647
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.
Re: Userman Youtube Help
Posted: Sun Aug 03, 2014 11:46 am
by rextended
you can not do that easily
you must remove all bandwidth limit and create by hand all queue for all users for separate traffic.
Re: Userman Youtube Help
Posted: Sun Aug 03, 2014 2:05 pm
by z3ro647
create queue and traffic for each user????? from simple queue or from usermanager
Re: Userman Youtube Help
Posted: Tue Aug 05, 2014 6:29 am
by z3ro647
does any one have any solution to this porblem.... or how can we solve this?????????
Re: Userman Youtube Help
Posted: Tue Aug 05, 2014 8:07 am
by arjuneu
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/you ... rotik.html
Re: Userman Youtube Help
Posted: Wed Aug 06, 2014 9:02 pm
by z3ro647
didn't worked in hotspot.... have you tested it in hotspot?
Re: Userman Youtube Help
Posted: Thu Aug 07, 2014 5:38 am
by arjuneu
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
Re: Userman Youtube Help
Posted: Fri Aug 08, 2014 9:16 am
by z3ro647
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.......
Re: Userman Youtube Help
Posted: Fri Aug 08, 2014 4:25 pm
by arjuneu
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
Re: Userman Youtube Help
Posted: Fri Aug 08, 2014 4:55 pm
by z3ro647
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........
Re: Userman Youtube Help
Posted: Sat Aug 09, 2014 6:36 am
by arjuneu
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
Re: Userman Youtube Help
Posted: Sun Aug 10, 2014 9:31 pm
by z3ro647
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......
Re: Userman Youtube Help
Posted: Mon Aug 11, 2014 6:32 am
by z3ro647
i have also added
/ip firewall address-list
add address=10.10.1.1/24 disabled=no list=wlan1
Re: Userman Youtube Help
Posted: Mon Aug 11, 2014 5:31 pm
by arjuneu
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......
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.
Re: Userman Youtube Help
Posted: Tue Aug 12, 2014 4:49 am
by z3ro647
IP Firewall Mangle Rule
Re: Userman Youtube Help
Posted: Tue Aug 12, 2014 4:51 am
by z3ro647
Address List And Layer7 Protocols
Re: Userman Youtube Help
Posted: Tue Aug 12, 2014 4:53 am
by z3ro647
Queue Tree And Queue Type
Re: Userman Youtube Help
Posted: Tue Aug 12, 2014 4:54 am
by z3ro647
Ummm everything seems fine but still i could not get it....... am i missing something?????????
Re: Userman Youtube Help
Posted: Tue Aug 12, 2014 5:42 am
by arjuneu
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
Re: Userman Youtube Help
Posted: Tue Aug 12, 2014 8:34 am
by CyberTod
Your mangle rule should be in forward chain, not output.
Re: Userman Youtube Help
Posted: Tue Aug 12, 2014 9:35 am
by arjuneu
Your mangle rule should be in forward chain, not output.
Its working for me with output chain.
I'm using IP 10.55.0.1
Re: Userman Youtube Help
Posted: Tue Aug 12, 2014 8:43 pm
by z3ro647
wow Arjun Dost its working.....
Re: Userman Youtube Help
Posted: Wed Aug 13, 2014 9:31 am
by arjuneu
wow Arjun Dost its working.....
give karma if it helps.
Re: Userman Youtube Help
Posted: Wed Aug 13, 2014 3:02 pm
by z3ro647
Arjun Dost... do you work for an ISP????
Re: Userman Youtube Help
Posted: Thu Aug 14, 2014 4:32 am
by arjuneu
Arjun Dost... do you work for an ISP????
Nope. I'm a freelancer.