Hi,
I'm looking for a script, that can move 1 of my Simple Queues to the last position, that I can schedule to run at regular intervals (or more specifically: whenever a new PPTP VPN client connects).
My current situation is that I'm using the User Manager, where I've set a rate limit to each client. Whenever one of these clients connects, their rate limit is done by simply appending a new Simple Queue.
I've also created a Simple Queue (PCQ type) to limit all the PPTP VPN users in total, however, this Simple Queue moves up in the Queue Order whenever a new client connects.
I've tried to write a script for this, but I was unable to move the Simple (PCQ) Queue to the last position. I was only able to move it to the 2nd-last position, if I knew the number of simple queues, which I can't get/find with a script.
Currently my best approach would be to try and move it to position 2, then to 3, then to 4, etc., ensuring that it would be in the 2nd-last position.
Help would be appreciated.