hotspot dynamic queue and some resources

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.

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.

Doch … is it possible to use hotspot made queues (dynamic) and my own static queues simultaneously? Hotspot automatic queues so convenient ..

Is it mean I should refuse using all of dynamic queues (e.g. hotspot) and I should use now static queues only?

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

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.

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/t/dynamic-vs-static-simple-queue-precedence/11122/1

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?

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 :slight_smile:

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.