I’m sure this is easier than it looks, but what is the command/script that will find an IP in the NAT rules and delete the rule?
Say I have a dst-nat rule for 10.20.20.24 set up and I want to delete that rule by searching for that IP, how is that done?
/ip firewall nat remove [/ip firewall nat find dst-address=10.20.20.24]
Be careful not to delete all your nat rules by ‘finding’ everything.
Sam
Cool, that is what I was looking for, thanks!
I use this to remove DYNAMIC NAT rules put there by UPnP.
The new syntax in v5 seems to include " " around the attribute:
/ip firewall nat remove [/ip firewall nat find dst-address=“10.20.20.24”]
Thank you.