Community discussions

MikroTik App
 
kleber
just joined
Topic Author
Posts: 16
Joined: Thu Jan 05, 2006 12:15 am

Script not work

Mon Jan 23, 2006 8:36 pm

I need delete all firewall rules that it is equal to ips of address list


:foreach i in=[/ip firewall address-list find] \
do={\
:global rm [/ip firewall address-list get $i address]; \
:global rm2 [/ip firewall filter find src-address=$rm]; \
/ip firewall filter remove=$rm2 };

> invalid argument name

Whats the problem?

Thanks,

Sorry for bad English