I am having a strugle with removing some rules from NAT, where i have rules with some named address list inside rule, like
add action=dst-nat chain=dstnat dst-address-list=MyList protocol=tcp
to-addresses=1.2.3.4 to-ports=4444
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 NAT
i tried like this
:local NAT4Remove [/ip firewall nat get number=[find where dst-address-list=MyList]]
but i get
no such file
Idea is when i have numbers, just to use with ip firewall nat remove numbers=$NAT4Remove