I want to limit queue IP when he reaching 1Gb
DHCP Pool Range 192.168.8.10-192.168.8.20
Using Router OS 6
Get Syntax error when running script try to add $ variable then syntax error goes away but limit does not apply to target.
:local traffic
/queue simple
:for i from=1 to=254 do={
:set traffic [get [find target-addresses=“192.168.8.$i/32”] total-bytes]
:if ($traffic > 1000000000) do={
set [find target-addresses=“192.168.8.$i/32”] max-limit=128000/128000
}
}