I’ve been trying to setup bandwidth limitations on an RB2011UiAS running RouterOS v6.5. I’ve found various guides via google and have successfully configured simple queue using pcq, etc, but always fall short as soon as I try to exclude certain IP’s. One problem I’m running into is the blogs and how-to’s reference global-in and global-out, but those don’t exist in v6.5 and I don’t know how to work around it. Here’s the scoop:
Ether1 is Public & has dhcp client on it. The rest of the ports are bridged using 192.168.80.0/24. DHCP server on the bridge with a pool of 192.168.80.10 - 192.168.80.240. By default all IP’s in that subnet should have bandwidth limitations to reduced them down to .5Mb down/.25Mb up. However, I have two IPs in that same subnet that I need to set at 1.5Mb down/1Mb up, or possibly wide open if that would work better.
If anyone could point to me an existing sample that is written for RouterOS v6.5, or point me in the right direction, I’d appreciate it.
What I tried: I created an address list in IP->Firewall called “ExcludedIP” set to 192.168.80.240. Then I changed the mangle rules to only mark the packets if they are NOT on the ExcludedIP list. This didn’t seem to have any affect.
That worked great! Thank you. In testing that, I was reminded of a fact that I forgot to mention in my first post. The guide listed at http://wiki.mikrotik.com/wiki/Manual:Queues_-_PCQ_Examples indicates to use a Queue Tree, but I was unable to use the queue tree because it referenced “global-in” and “global-out” which doesn’t exist in v6.5. So instead of using a queue tree, I created a simple queue as such (this includes your code):
0 ;;; mark packets from ether1 client_upload
chain=prerouting action=mark-packet new-packet-mark=client_upload passthrough=yes in-interface=ether1-gw
1 ;;; mark packets from ether2 client_download
chain=prerouting action=mark-packet new-packet-mark=client_download passthrough=yes in-interface=ether2
What I end up with is my downloads are limited correctly, and 192.168.80.240 exclusion does work, but the uploads don’t get throttled except for 192.168.80.240, and then it seems like the limits for upload and download are reversed.