ROS里将所有已知客户端MAC标记为其他对应名字后,然后再新建一个unknown不指定MAC放在最后。
每5分钟记录一次,发现蹭网客户这记录下相应MAC,信号,速度,在线时间。效果如图。
:foreach i in=[/interface wireless registration-table find comment="unknown"] do={
:local a [/interface wireless registration-table get $i mac]
:local b [:pick [/interface wireless registration-table get $i signal-str] 0 5]
:local c [/interface wireless registration-table get $i tx-rate]
:local d [/interface wireless registration-table get $i rx-rate]
:local e [/interface wireless registration-table get $i uptime]
:local f ("Found unknown wireless user" . " mac:" . $a . " signal:" . $b . " tx-rate:" . $c . " rx-rate:" . $d . " uptime:" . $e)
:log warning [:put $f]
}