So I want to run a script that almost listens(?) for a port knock on the log (yet to be added, if possible)
But I'm having problems getting my find comment then remove to work whats wrong with my script?
Code: Select all
:local "address-list" "Knocked-LO"
:local "address-list" "Kick-lo"
:local "Kick-lo" [ /ip firewall get [/ip firewall address-list find list="Knocked-LO"]]
:if ( [/ip firewall address-list find list=$"Kick-lo" ] = "" ) do={
[/ip firewall address-list remove [/ip firewall address-list find list="Knocked-LO"]]
} else={
:log warning "no ones there"
}
:log warning "kicked all current added IPS"