Community discussions

MikroTik App
 
Wannabe
just joined
Topic Author
Posts: 18
Joined: Fri Nov 24, 2006 1:24 pm

hotspot dynamic queue and some resources

Mon Dec 25, 2006 10:42 am

I'm using hotspot with bandwith limit ('rate limit' in hotspot user profile). It creates dynamic queue when user logins but any of exist static queues don't working! I want to use static and dynamic queues simultaneonly.

For all hotspot users I need to set 10Mbps speed for access to some servers but 'rate limit' speed for access to other resources.
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6697
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Wed Dec 27, 2006 3:27 pm

You can use static queues to acomplish the requested scenario.
- first, create two mangle groups. One to mangle traffic between users and required server, second for another traffic.
- Create two queue types. First type without limit configuration to achieve unlimited bandwidth between server, second type queues for another traffic.
 
Wannabe
just joined
Topic Author
Posts: 18
Joined: Fri Nov 24, 2006 1:24 pm

Thu Dec 28, 2006 8:30 am

You can use static queues to acomplish the requested scenario.

Doch ... is it possible to use hotspot made queues (dynamic) and my own static queues simultaneously? Hotspot automatic queues so convenient ..
- first, create two mangle groups. One to mangle traffic between users and required server, second for another traffic.
- Create two queue types. First type without limit configuration to achieve unlimited bandwidth between server, second type queues for another traffic.
Is it mean I should refuse using all of dynamic queues (e.g. hotspot) and I should use now static queues only?
 
Wannabe
just joined
Topic Author
Posts: 18
Joined: Fri Nov 24, 2006 1:24 pm

Tue Jan 16, 2007 11:24 am

Any ideas? I have got confused using static and dynamic queues ... Help me please.
 
User avatar
grzesjan
Member Candidate
Member Candidate
Posts: 144
Joined: Fri Feb 24, 2006 7:43 pm
Location: Poland

Sun Jan 21, 2007 8:45 pm

Any ideas? I have got confused using static and dynamic queues ... Help me please.
I would like to get the answers. I also have problems mixing dynamic and static queues.

Regards,

Gregor
 
Wannabe
just joined
Topic Author
Posts: 18
Joined: Fri Nov 24, 2006 1:24 pm

Mon Jan 22, 2007 8:33 am

Any ideas? I have got confused using static and dynamic queues ... Help me please.
I would like to get the answers. I also have problems mixing dynamic and static queues.
You are not alone in your interest.. There is many people on the forum who wanna know something about. I asked several times there but don't having any answer at this day.
 
Wannabe
just joined
Topic Author
Posts: 18
Joined: Fri Nov 24, 2006 1:24 pm

Tue Jan 23, 2007 3:40 pm

Hi,
I tried to use simple queues and dynamic both:
[admin@gw1] > queue simple print 
Flags: X - disabled, I - invalid, D - dynamic 
 0    name="local-traffic-queue" target-addresses=192.168.1.0/24 
      dst-address=10.10.1.2/32 interface=ether2 parent=none 
      direction=both priority=8 queue=default-small/default-small 
      limit-at=0/0 max-limit=256000/256000 total-queue=default-small 

 1  D name="<hotspot-user3>" target-addresses=192.168.1.14/32 
      dst-address=0.0.0.0/0 interface=all parent=none direction=both 
      priority=8 queue=default-small/default-small limit-at=49152/49152 
      max-limit=49152/49152 total-queue=default-small 

 2  D name="<hs-ether2>" dst-address=0.0.0.0/0 interface=ether2 
     parent=none direction=both priority=8 
     queue=hotspot-default/hotspot-default 
     limit-at=0/0 max-limit=0/0 total-queue=default-small 
[admin@gw1] > 
sergejs wrote about the same question http://forum.mikrotik.com/viewtopic.php?t=13313:
I guess one of the method to accomplish it by using scripts, you can create 'on-login' scripts for HotSpot profile, that will move static queues on top.
Now static queue is above than any dynamic but hotspot user (hotspot-user3) has 48kbps all the time when local resource (10.10.1.2) used!
I need to set 256kbps when local 10.10.1.2 used and 48kbps when any other. How do accomplish it?
 
rodrigobaliza
just joined
Posts: 3
Joined: Wed May 30, 2007 1:44 am

Re: hotspot dynamic queue and some resources

Thu Aug 09, 2007 3:28 pm

i was in same problem, but now it is working very well

the solution is create a script like this:
:foreach i in=[/queue simple find dynamic=yes ] do={ /queue simple move $i }

create the static queue you want and call this script from on_login int the user profile

simple like that :)
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6697
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: hotspot dynamic queue and some resources

Fri Aug 10, 2007 4:39 pm

It is possible to use static queues and dynamic queues.
Dynamic queues are applied for entire traffic (you should place them at the bottom of the list), static queues for specific resources should be placed on the top.

Use interface=all for 'queue simple', it should work.