info_i_25x25.png Due to unforeseen weather conditions we are experiencing higher chat wait times. Remember you can also submit a ticket and one of our support representatives will get back to you as soon as possible. We apologize for the inconvenience.

EdgeRouter - How do I reorder firewall/NAT rules ?

Answer


Reordering/moving most firewall/NAT rules can be done via the GUI. However, some rules like firewall modify rules can only be reordered via the CLI.

In this example, we have one firewall modify rule (Rule #1) and want to move it down to Rule 10.

[email protected]:~$ configure
[edit]
[email protected]# show firewall modify
modify WLB {
rule 1 {
action modify
modify {
lb-group WLB
}
}
}
[edit]

All we need to do is "edit" the desired firewall chain and rename rule 1 to rule 10.

[email protected]# edit firewall modify WLB
[edit firewall modify WLB]
[email protected]# rename rule 1 to rule 10
[email protected]# commit; save

Now you can see that rule 1 have been moved down to rule 10.

[email protected]# show firewall modify
modify WLB {
rule 10 {
action modify
modify {
lb-group WLB
}
}
}
[edit]
[email protected]#