Adding firewall rules in a certain position without move command

Hi,


How can I add filter or nat rules without adding the rule in the last position then using ‘move’ to change the sequence?
Should be able to squeeze a new rule in-between other rules without using 2 commands instead of just one.

I want to use a script to regenerate 2 NAT rules once a tunnel goes up, these seem to always appear on the last 2 positions.

Strangely, nothing in the wiki…Should be just like Cisco ACL’s, easy, but it’s not.

When executing /ip firewall filter add, you can add parameter place-before= … which should place new rule before the one mentioned … ditto for nat rules. Documentation is somehow sparse, but I’m sure if you harass google (or any other favourite search engine), it’ll tell you how to use it.

Nicelly spotted, documented under https://wiki.mikrotik.com/wiki/Manual:Console#General_Commands