RB750GL upgraded ROS from 6.7 to 6.9 (firmware from 3.10 to 3.12). Script no longer works. Down grade to 6.7 and script works. I am not good at doing scripts. Can anyone quickly tell me what 6.9 found to be a problem. Note; value of > 330000 is only for testing,
PLEASE ANSWER in this thread http://forum.mikrotik.com/viewtopic.php?f=9&t=81722
:local traffic
:local nam
:local macblock
:local date
:local day
:local month
:local year
:local tim
:set date [system clock get date]
:set month [:pick $date 0 3]
:set day [:pick $date 4 6]
:set year [:pick $date 7 11]
:set tim [system clock get time]
/queue simple
:for i from=253 to=254 do={
:set traffic [get [find target="192.168.88.$i/32"] total-bytes]
:if ($traffic < 330000) do={
:set nam [get [find target="192.168.88.$i/32"] name ]
/ip dhcp-server lease
:set macblock [get [find address="192.168.88.$i/32" ] mac-address ]
/ip firewall filter add action=reject chain=forward out-interface=ether1-gateway protocol=tcp reject-with=tcp-reset src-mac-address=$macblock
/queue simple reset-counters $nam
/system scheduler add interval=1d name=$macblock on-event= test policy= ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive,api start-date="$month/$day/$year" start-time=$tim
/queue simple
}
}
EDIT - support fixed the problem. I had no queue for target=192.168.88.253/32
- 6.9 has better error checking then 6.7
- this was a test script and that is the reason the queue was not present