Hi, I am not a programmer and have never attempted any script in my entire life. I don't know how to do it correctly. Combining the scripts from others, will the following work???
Scripts
______________________
add name=shapingRate source={
:local traf;
/queue simple
:for i from=1 to= 254 do = {
:if ([/queue simple find target-addresses=("192.168.1." . $i)] != "") do={
:set traf [get [find target-addresses=("192.168.1." . $i)] total-bytes]
:if ($traf > 104857600) do = {
set [find target-addresses=("192.168.1." . $i)] max-limit= 32000/64000
}
}
}
}
add name=resetCounter source={/que simple reset-counters}
Schedules
______________________
add name=run-1h interval=1h on-event=shapingRate
add name=run-24h interval=24h on-event=resetCounter