Well as i can see, from script there's no way to add something to address list permanently. Which would be nice in some cases, atm when you set timeout to infinite it still goes away on reboot.
Could this be fixed?
Best Regards
Carl
If you run it inside a script it'll be marked with a D, which means it'll go away once restarted. From terminal it stays forever.Not sure what you mean
/ip firewall address-list add list=test address=1.1.1.1
address will stay there forever unless configuration is removed, router is reset, reinstalled or NAND destroyed.
/ip firewall address-list add address=1.2.3.4 list=My-List
/ip firewall address-list add address=1.2.3.4 list=My-List timeout=30d
:foreach i in=[/ip firewall address-list find list=SSH_Blocklist] do={
:local ipaddress [/ip firewall address-list get $i address]
:local dynamic [/ip firewall address-list get $i dynamic]
if ($dynamic = true) do={
/ip firewall address-list remove $i
/ip firewall address-list add list=SSH_Blocklist address=$ipaddress
}
}