|
發表於 2021-4-11 23:16:19
|
查看: 1143 |
回復: 0
自動刪除RouterOS上無效的IP位置
---------------------------------------------------------------------------------------------------------
# 把無效的IP位置資料全部讀出來 然後移除
:foreach i in=[/ip address find invalid=yes] do={/ip address remove $i }
#五分鐘執行一次
/system scheduler
add disabled=no interval=5m name=AutoDeleteIP on-event=\
"/system script run DeleteInvalidIP" policy=\
ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive,api start-date=\
aug/19/2011 start-time=02:08:36
|
|