Page 1 of 1

Script failing after upgrade 175.3

Posted: Tue Sep 24, 2024 5:39 am
by yabdali
Hi,
I am having an issue after upgrading my router. I keep getting errors in the logs, below are the two scripts that are failing. Would someone be kind and suggest what should be fixed? Thanks alot...
:foreach indirizzoTest in=[ /ip firewall address-list find where list="dns_list" ] do={
 /ip firewall address-list set $indirizzoTest address=[:resolve [/ip firewall address-list get $indirizzoTest comment]];
};
:foreach i in [/ip firewall address-list find list=port_scanners_list] do={ /tool e-mail send to=myemail@gmail.com subject="port_scanners_list" body=("IP added " . [/ip firewall address-list get $i  address])}

Re: Script failing after upgrade 175.3

Posted: Tue Sep 24, 2024 6:03 am
by Amm0
:foreach I in=[/ip firewall address-list find list=port_scanners_list] do={ /tool e-mail send to=myemail@gmail.com subject="port_scanners_list" body=("IP added " . [/ip firewall address-list get $i address])}

Re: Script failing after upgrade 175.3

Posted: Tue Sep 24, 2024 9:33 pm
by yabdali
Thanks alot... Would you be able to suggest what could be wrong with the first one? Thanks again