rule script

Hello,
I want to create a MikroTik script that search for a rule in nat with comment “rule1” and delete it and add a new rule with order 4
so could you please help me :slight_smile:
thanks.

try this

/ip firewall nat remove [find comment=“rule1”];
/ip firewall nat add place-before=4 …