Hello,
I'm trying to limit users based on IP, I want each user to have dedicated 128 Kbit/s including 56 Kbit/s within 128 Kbits. I do not want to use simple queuing, I'm trying this to be more dynamically using PCQ queuing, below is my configuration, but it seems not to work:
ip firewall mangle add chain=forward in-interface=2.4Ghz src-address=192.168.2.0/24 p2p=all-p2p action=mark-connection new-connection-mark=p2p-conn-up
ip firewall mangle add chain=forward in-interface=2.4Ghz p2p=all-p2p action=mark-packet new-packet-mark=p2p-up
ip firewall mangle add chain=forward out-interface=5.8Ghz dst-address=192.168.2.0/24 p2p=all-p2p action=mark-connection new-connection-mark=p2p-conn-down
ip firewall mangle add chain=forward out-interface=5.8Ghz p2p=all-p2p action=mark-packet new-packet-mark=p2p-down
ip firewall mangle add chain=forward p2p=!all-p2p action=mark-packet new-packet-mark=other
--------------------------------------------------------------------------------------
queue type add name=pcq-download kind=pcq pcq-rate=0 pcq-limit=50 pcq-classifier=dst-address pcq-total-limit=2000
queue type add name=pcq-upload kind=pcq pcq-rate=0 pcq-limit=50 pcq-classifier=src-address pcq-total-limit=2000
queue type add name=pcq-down kind=pcq pcq-rate=0 pcq-limit=50 pcq-classifier=dst-address pcq-total-limit=2000
queue type add name=pcq-up kind=pcq pcq-rate=0 pcq-limit=50 pcq-classifier=src-address pcq-total-limit=2000
-------------------------------------------------------------------------------------
queue tree add name=Download parent=chapelbridge packet-mark=p2p-down limit-at=56000 queue=pcq-download priority=8 max-limit=56000 burst-limit=0 burst-threshold=0 burst-time=0s
queue tree add name=queue2 parent=Download packet-mark=p2p-down limit-at=0 queue=pcq-download priority=8 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s
queue tree add name=Upload parent=chapelbridge packet-mark=p2p-up limit-at=56000 queue=pcq-upload priority=8 max-limit=56000 burst-limit=0 burst-threshold=0 burst-time=0s
queue tree add name=queue4 parent=Upload packet-mark=p2p-up limit-at=0 queue=pcq-upload priority=8 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s
queue tree add name=Down parent=chapelbridge packet-mark=other limit-at=131072 queue=pcq-down priority=1 max-limit=131072 burst-limit=0 burst-threshold=0 burst-time=0s
queue tree add name=queue6 parent=Down packet-mark=other limit-at=0 queue=pcq-down priority=1 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s
queue tree add name=Up parent=chapelbridge packet-mark=other limit-at=131072 queue=pcq-up priority=1 max-limit=131072 burst-limit=0 burst-threshold=0 burst-time=0s
queue tree add name=queue8 parent=Up packet-mark=other limit-at=0 queue=pcq-up priority=1 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s
----------------------------------------------------------------------------------
Best regards,
Faton