Quick and dirty copy, paste and edit of my PCQ. This should limit each connection to 5M, though each client can still have multiple connections.
It is hard to deal with dynamic like that. I haven't had to deal with that yet.
You'd still need the Queue tree or simple queues set to use the PCQ type.
5 name="PCQ_Upload" kind=pcq pcq-rate=5M pcq-limit=2000KiB pcq-classifier=src-address pcq-total-limit=8000KiB pcq-burst-rate=0 pcq-burst-threshold=0 pcq-burst-time=10s
pcq-src-address-mask=32 pcq-dst-address-mask=32 pcq-src-address6-mask=128 pcq-dst-address6-mask=128
6 name="PCQ_Download" kind=pcq pcq-rate=1M pcq-limit=2000KiB pcq-classifier=dst-address pcq-total-limit=8000KiB pcq-burst-rate=0 pcq-burst-threshold=0 pcq-burst-time=10s
pcq-src-address-mask=32 pcq-dst-address-mask=32 pcq-src-address6-mask=128 pcq-dst-address6-mask=128