hi everybody. this little script works perfect but only with the chain 0 when i try to enable/disable chain 1, doesnt work, i have only two chains in /ip firewall filter, remember WORKS perfect with chain 0 but dont with chain 1 simply doens nothing with chain 1
[admin@router-gelo] > /ip firewal filter pr
Flags: X - disabled, I - invalid, D - dynamic
0 X ;;; 208
chain=input action=drop protocol=icmp dst-address=192.168.208.1
1 X ;;; 209
chain=input action=drop protocol=icmp dst-address=192.168.209.1
THIS WORKS PERFECT
:global activa208 ([/interface get [/interface find name="ether1-aba208"] disabled]);
:log info "eth1-208 DOWN: $activa208";
:if ($activa208) do={/ip firewall filter enable numbers=0} else={
/ip firewall filter disable numbers=0};
THIS DOESNT WORK I ONLY CHANGE THE NUMBERS=0 FOR 1
:global activa208 ([/interface get [/interface find name="ether1-aba208"] disabled]);
:log info "eth1-208 DOWN: $activa208";
:if ($activa208) do={/ip firewall filter enable numbers=1} else={
/ip firewall filter disable numbers=1};
thanks