Community discussions

MUM Europe 2020
just joined
Topic Author
Posts: 2
Joined: Tue Nov 27, 2018 10:19 am

Limit user/IP by volume

Tue Nov 27, 2018 11:04 am

I want to limit queue IP when he reaching 1Gb
DHCP Pool Range

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

Who is online

Users browsing this forum: No registered users and 18 guests