PPPoE dynamic queues + different bandwidth IP range

Hello folks,

Here’s what I have: PPPoE users getting their bandwidth settings from a Radius server.

Here’s what I need: They still get their setting from the Radius, but I need they have a different bandwidth for my servers… So they can download emails, use IMAP, watch my streaming and stuff like that in a bigger speed than they have for Internet in general.

But here is the trick… I can’t just have a bigger bandwidth rate for my servers, say like set it to 10Mbs and they all share it… I need every CONNECTION to my servers have this 10MBs… So the clients can simultaneously watch a streaming without having to share a queue…

I was told PCQ would do the trick… After all it’s called “Per Connection Queue” but I just cant make it work…

Any hints?

Oops… I just solved my problem… Here’s what I’ve done:

This gives every connection a 2Mbit rate.

add name="servers" kind=pcq pcq-rate=2097152 pcq-limit=50 pcq-classifier=src-address,dst-address,src-port,dst-port pcq-total-limit=2000

And on queue simple, I filter out what IPs will be affected by the different rate:

add name="servers" dst-address=200.157.156.0/28 interface=all parent=none direction=both priority=8 queue=servers/servers limit-at=0/0 max-limit=0/0 \
    total-queue=servers disabled=no

I also had to move this queue to the top with “move (X) 0” command.

This worked great… I’m still shaped by whatever rate is on my PPPoE queue and I can now watch a streaming on my servers at 2Mbit speed…