Community discussions

MikroTik App
 
z3ro647
newbie
Topic Author
Posts: 27
Joined: Fri Jun 20, 2014 12:00 pm

Userman Youtube Help

Sat Aug 02, 2014 4:38 pm

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.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12632
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Userman Youtube Help

Sun Aug 03, 2014 11:46 am

you can not do that easily

you must remove all bandwidth limit and create by hand all queue for all users for separate traffic.
 
z3ro647
newbie
Topic Author
Posts: 27
Joined: Fri Jun 20, 2014 12:00 pm

Re: Userman Youtube Help

Sun Aug 03, 2014 2:05 pm

create queue and traffic for each user????? from simple queue or from usermanager
 
z3ro647
newbie
Topic Author
Posts: 27
Joined: Fri Jun 20, 2014 12:00 pm

Re: Userman Youtube Help

Tue Aug 05, 2014 6:29 am

does any one have any solution to this porblem.... or how can we solve this?????????
 
User avatar
arjuneu
Member Candidate
Member Candidate
Posts: 174
Joined: Fri Oct 07, 2011 10:24 am

Re: Userman Youtube Help

Tue Aug 05, 2014 8:07 am

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
 
z3ro647
newbie
Topic Author
Posts: 27
Joined: Fri Jun 20, 2014 12:00 pm

Re: Userman Youtube Help

Wed Aug 06, 2014 9:02 pm

didn't worked in hotspot.... have you tested it in hotspot?
 
User avatar
arjuneu
Member Candidate
Member Candidate
Posts: 174
Joined: Fri Oct 07, 2011 10:24 am

Re: Userman Youtube Help

Thu Aug 07, 2014 5:38 am

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
 
z3ro647
newbie
Topic Author
Posts: 27
Joined: Fri Jun 20, 2014 12:00 pm

Re: Userman Youtube Help

Fri Aug 08, 2014 9:16 am

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.......
 
User avatar
arjuneu
Member Candidate
Member Candidate
Posts: 174
Joined: Fri Oct 07, 2011 10:24 am

Re: Userman Youtube Help

Fri Aug 08, 2014 4:25 pm

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
 
z3ro647
newbie
Topic Author
Posts: 27
Joined: Fri Jun 20, 2014 12:00 pm

Re: Userman Youtube Help

Fri Aug 08, 2014 4:55 pm

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........
 
User avatar
arjuneu
Member Candidate
Member Candidate
Posts: 174
Joined: Fri Oct 07, 2011 10:24 am

Re: Userman Youtube Help

Sat Aug 09, 2014 6:36 am

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
 
z3ro647
newbie
Topic Author
Posts: 27
Joined: Fri Jun 20, 2014 12:00 pm

Re: Userman Youtube Help

Sun Aug 10, 2014 9:31 pm

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......
You do not have the required permissions to view the files attached to this post.
 
z3ro647
newbie
Topic Author
Posts: 27
Joined: Fri Jun 20, 2014 12:00 pm

Re: Userman Youtube Help

Mon Aug 11, 2014 6:32 am

i have also added
/ip firewall address-list
add address=10.10.1.1/24 disabled=no list=wlan1
 
User avatar
arjuneu
Member Candidate
Member Candidate
Posts: 174
Joined: Fri Oct 07, 2011 10:24 am

Re: Userman Youtube Help

Mon Aug 11, 2014 5:31 pm

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.
 
z3ro647
newbie
Topic Author
Posts: 27
Joined: Fri Jun 20, 2014 12:00 pm

Re: Userman Youtube Help

Tue Aug 12, 2014 4:49 am

IP Firewall Mangle Rule
You do not have the required permissions to view the files attached to this post.
 
z3ro647
newbie
Topic Author
Posts: 27
Joined: Fri Jun 20, 2014 12:00 pm

Re: Userman Youtube Help

Tue Aug 12, 2014 4:51 am

Address List And Layer7 Protocols
You do not have the required permissions to view the files attached to this post.
 
z3ro647
newbie
Topic Author
Posts: 27
Joined: Fri Jun 20, 2014 12:00 pm

Re: Userman Youtube Help

Tue Aug 12, 2014 4:53 am

Queue Tree And Queue Type
You do not have the required permissions to view the files attached to this post.
 
z3ro647
newbie
Topic Author
Posts: 27
Joined: Fri Jun 20, 2014 12:00 pm

Re: Userman Youtube Help

Tue Aug 12, 2014 4:54 am

Ummm everything seems fine but still i could not get it....... am i missing something?????????
 
User avatar
arjuneu
Member Candidate
Member Candidate
Posts: 174
Joined: Fri Oct 07, 2011 10:24 am

Re: Userman Youtube Help

Tue Aug 12, 2014 5:42 am

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
 
User avatar
CyberTod
Long time Member
Long time Member
Posts: 510
Joined: Wed Jan 25, 2012 10:23 am

Re: Userman Youtube Help

Tue Aug 12, 2014 8:34 am

Your mangle rule should be in forward chain, not output.
 
User avatar
arjuneu
Member Candidate
Member Candidate
Posts: 174
Joined: Fri Oct 07, 2011 10:24 am

Re: Userman Youtube Help

Tue Aug 12, 2014 9:35 am

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
You do not have the required permissions to view the files attached to this post.
 
z3ro647
newbie
Topic Author
Posts: 27
Joined: Fri Jun 20, 2014 12:00 pm

Re: Userman Youtube Help

Tue Aug 12, 2014 8:43 pm

wow Arjun Dost its working.....
 
User avatar
arjuneu
Member Candidate
Member Candidate
Posts: 174
Joined: Fri Oct 07, 2011 10:24 am

Re: Userman Youtube Help

Wed Aug 13, 2014 9:31 am

wow Arjun Dost its working.....
give karma if it helps.
 
z3ro647
newbie
Topic Author
Posts: 27
Joined: Fri Jun 20, 2014 12:00 pm

Re: Userman Youtube Help

Wed Aug 13, 2014 3:02 pm

Arjun Dost... do you work for an ISP????
 
User avatar
arjuneu
Member Candidate
Member Candidate
Posts: 174
Joined: Fri Oct 07, 2011 10:24 am

Re: Userman Youtube Help

Thu Aug 14, 2014 4:32 am

Arjun Dost... do you work for an ISP????
Nope. I'm a freelancer.