I want to use script to remove all rules which have dst-addresss MyList..Cant figure out how to pick that address list, so i can write a command for deleting those rules in NATadd action=dst-nat chain=dstnat dst-address-list=MyList protocol=tcp \
to-addresses=1.2.3.4 to-ports=4444
i tried like this
Code: Select all
:local NAT4Remove [/ip firewall nat get number=[find where dst-address-list=MyList]]
Idea is when i have numbers, just to use with ip firewall nat remove numbers=$NAT4Removeno such file