I am trying to employ a network throttle to avoid a single client from saturating the network. I am trying to do this via PCQ but am having trouble with the Mangle rules.
I have 3 client subnets and 3 subnets that I don’t want to be throttled. These are represented with the Address List functionality of MikroTik.
The rules are as follows
add action=mark-connection chain=prerouting comment=\
"Mark all traffic to be throttled" disabled=no dst-address-list=\
!DoNotThrottle new-connection-mark=throttle passthrough=yes \
src-address-list=Clients
add action=mark-connection chain=prerouting disabled=no dst-address-list=\
Clients new-connection-mark=throttle passthrough=yes src-address-list=\
!DoNotThrottle
add action=mark-packet chain=prerouting connection-mark=throttle disabled=no \
new-packet-mark=throttle passthrough=no
My problem is that client traffic destined to the IP’s listed in the “DoNotThrottle” list are still being marked, and as such are getting throttled.
EDIT: It seems that after a reboot of the router the correct packets are being marked, however the throttle is still applying to all traffic. Below is the Queue rule I’ve used
add burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s direction=both \
disabled=no interface=all limit-at=0/0 max-limit=10M/20M name=\
BandwidthLimit-Testing packet-marks=throttle parent=none priority=8 \
queue=upload/download target-addresses="10.0.12.226/32,10.0.12.250/32,10.0\
.10.237/32,10.0.10.235/32,10.0.12.214/32,10.0.12.252/32,10.0.12.251/32,10.\
0.10.246/32" total-queue=default-small
Can anyone see the error in my logic?