Mikrotik Simple queue PCQ

hi can someone help.
Im trying to make a simple queue with Pcq to limit other traffic.
On my network ip from 192.168.1.1 through to 192.168.1.19 is my own private network and i dont want to limit anything.
From 192.168.1.20 to 192.168.1.254 are Ips i am giving to customers.
How can i write the Ip address so it starts from 192.168.1.19 to the rest of the network upwards so i can limit customers at the same time without writing each ip address in my self.


Thanks

You can’t refer to address lists or ranges in simple queues, so you have to write out all the addresses. Of course you could use a script to automate this. Something along these lines:

:local addresses; :for IP from=20 to=254 step=1 do={:set addresses ($addresses . "192.168.1.$IP,");}; :put $addresses;

You can copy the comma separated IP addresses from there and paste them into the target address property of an existing simple queue. I was too lazy to take out the last trailing comma, so don’t copy that.

Better practice, of course, would be to not put your private stuff on the same IP network as customers you’re selling services to. That would also make this easier as you could just refer to 192.168.1.0/24 as the customer network.