the router is connected to the server via L2TP, the server channel is 25 Mbit.
I want to make queues:
all wan traffic through router is 100/100
allocate a queue of 25/25 from these 100 for lt2p traffic of the router itself and other traffic from the bridges to the server (ftp etc.)
Of course, I just did it in two queues:
/queue simple
add max-limit=25M/25M name=l2tp1-srv target=l2tp1-srv
add max-limit=100M/100M name=queue1 target=bridge1,bridge2
But then 25 megabits is added to one hundred, and this is not correct. Also don’t understand how to combine both L2TP (router output) and FTP (forward) traffic at 25 Mbit using pure queues.
I can’t figure out how to solve this elegantly and without mangles
The first queue I specified how much link it has.
In the second queue the maximum speed for VPN is 25M/25M being a leaf queue
the next two leaf queues can use a maximum of 100M if the VPN is not using it, being the LAN with the highest priority.
Priority ( source Wiki MNikroTik )
We already know that limit-at (CIR) to all queues will be given out no matter what.
Priority is responsible for the distribution of remaining parent queues traffic to child queues so that they are able to reach max-limit
The queue with higher priority will reach its max-limit before the queue with lower priority. 8 is the lowest priority, and 1 is the highest.
Make a note that priority only works:
for leaf queues - priority in the inner queue has no meaning.
if max-limit is specified (not 0)
Yes but no. This way we loose forward traffic (FTP for example) which goes through WAN interface (not L2TP) directly to server.
Remember, server works as FTP and VPN both.