Page 1 of 1
hotspot dynamic queue and some resources
Posted: Mon Dec 25, 2006 10:42 am
by Wannabe
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.
Posted: Wed Dec 27, 2006 3:27 pm
by sergejs
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.
Posted: Thu Dec 28, 2006 8:30 am
by Wannabe
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?
Posted: Tue Jan 16, 2007 11:24 am
by Wannabe
Any ideas? I have got confused using static and dynamic queues ... Help me please.
Posted: Sun Jan 21, 2007 8:45 pm
by grzesjan
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
Posted: Mon Jan 22, 2007 8:33 am
by Wannabe
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.
Posted: Tue Jan 23, 2007 3:40 pm
by Wannabe
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?
Re: hotspot dynamic queue and some resources
Posted: Thu Aug 09, 2007 3:28 pm
by rodrigobaliza
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
Re: hotspot dynamic queue and some resources
Posted: Fri Aug 10, 2007 4:39 pm
by sergejs
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.