Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
How to re-order firewall rules?
« previous
next »
Print
Pages: [
1
]
Author
Topic: How to re-order firewall rules? (Read 3225 times)
obay.abdelgadir
Newbie
Posts: 3
Karma: 0
How to re-order firewall rules?
«
on:
May 11, 2022, 12:59:25 pm »
Since firewall rules are matched from top to bottom, how can I re-order them?
I have this questoin because I want to make a policy based routing (the host 172.16.1.73 should use a different gateway), but according to the log, the matched rule is the default one (probably because it is listed first). That is why I want to pull the last rule to the top. Screenshots attached.
Edit:
I just found out how to do it,
apparenty you select the rule that you want to move, then find the other rule that should be below the selected one, and press the button in the right which looks like a back arrow.
«
Last Edit: May 11, 2022, 01:07:45 pm by obay.abdelgadir
»
Logged
Patrick M. Hausen
Hero Member
Posts: 6820
Karma: 572
Re: How to re-order firewall rules?
«
Reply #1 on:
May 11, 2022, 01:08:34 pm »
If you hover with your mouse pointer over the small left pointing arrows at the right of each line, it will probably become evident.
In case it doesn't:
1. check the small check box at the left for the rule you want to move to the top.
2. click the left pointing arrow at the right for the first rule.
HTH,
Patrick
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
EdwinKM
Full Member
Posts: 155
Karma: 5
Re: How to re-order firewall rules?
«
Reply #2 on:
May 11, 2022, 08:13:38 pm »
i agree, they have a really weird/confusing re-ordering system.
Logged
Patrick M. Hausen
Hero Member
Posts: 6820
Karma: 572
Re: How to re-order firewall rules?
«
Reply #3 on:
May 11, 2022, 08:51:27 pm »
I don't think it's confusing at all. Just tried to help the OP.
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
zerwes
Full Member
Posts: 125
Karma: 8
Re: How to re-order firewall rules?
«
Reply #4 on:
May 12, 2022, 06:34:30 am »
Quote
I don't think it's confusing at all.
I agree ... You just have to get used to it. So pointing the OP to the right direction it the way to help.
I just realized this is really missing in the docs ...
And regarding the confusing reordering: I think it is still better then those just allowing to push lines only step by step up and down one position ...
Logged
zerwes
Full Member
Posts: 125
Karma: 8
Re: How to re-order firewall rules?
«
Reply #5 on:
May 12, 2022, 07:26:28 am »
To give a broad hint here: if you miss something from the documentation fell free to complete it and create a pull request. Those who use the opnsense firewall regularly will find things obviously and will newer miss it from the documentation. Those who just start using it now are the people who should are not yet blind by habit and fill realize some things are missing ... everyone can help ...
https://github.com/opnsense/docs/pull/402
Logged
EdwinKM
Full Member
Posts: 155
Karma: 5
Re: How to re-order firewall rules?
«
Reply #6 on:
May 12, 2022, 06:38:06 pm »
Although it is not a real major issue. It is not as intuitive as it could be. Every other application i know just has "handles" to drag/drop rows to the right place. That said, i think this should
not
a high priority issue to improve.
Logged
zerwes
Full Member
Posts: 125
Karma: 8
Re: How to re-order firewall rules?
«
Reply #7 on:
May 12, 2022, 06:46:29 pm »
Quote
It is not as intuitive as it could be
... at least the docs are updated.
Logged
obay.abdelgadir
Newbie
Posts: 3
Karma: 0
Re: How to re-order firewall rules?
«
Reply #8 on:
May 15, 2022, 01:10:24 pm »
This is not intuitive, what was wrong with the anchor from the open source version? Anyways thanks.
Logged
Patrick M. Hausen
Hero Member
Posts: 6820
Karma: 572
Re: How to re-order firewall rules?
«
Reply #9 on:
May 15, 2022, 01:54:30 pm »
What do you mean by "from the open source version"? I
am
referring to the open source version.
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: How to re-order firewall rules?
«
Reply #10 on:
May 16, 2022, 08:17:12 am »
Maybe he meant pfSense?
Cheers,
Franco
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
How to re-order firewall rules?