I have a long series of firewall rules.
I would like to be able to add a new firewall rule, from the Terminal, to after a particular rule (with a specific comment) that I don't inherently know which position it will be in. My goal is creating a command line where it will work regardless of the specific rule configuration or order on the router. (really, I want the rule to be added after my established/related rule)
I know I can use
/ip firewall filter move x y
but to do that I need to know the values of x and y, which are the numbers from the print command.
I can use the "place-before" option, but that (unsurprisingly) places the new rule before the other rule, where I would like after.
I can use
[/ip firewall filter find comment="this comment"]
to determine the internal Id, but the internal Id doesn't work with the /ip firewall move command
What would be the command(s) to add a firewall rule _after_ a rule with a particular comment?