I want to print all my firewall rules to see which websites I'm rejecting
this is what I did :
Code: Select all
foreach i in=[ip firewall filter get value-name=content number=[find where action=reject]] do={:put $i}
Code: Select all
invalid internal item number
Code: Select all
:put [/ip firewall filter find where action=reject]
Code: Select all
*4a;*4b;*4c;*16;*17;*18;*19;*21;*22;*23;*24;*25;*26;*27;*28;*29;*2a;*2b;*2c;*2d;*2e;*2f;*30;*31;*32;*33;*34;*35;*36;*37;*38;*39;*3a;*3b;*3c;*3d;*3e;*3f;*40;*41
Thanks ,