Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
"QUICK" and "SLOW" firewall rules brought me here
« previous
next »
Print
Pages: [
1
]
Author
Topic: "QUICK" and "SLOW" firewall rules brought me here (Read 3413 times)
iask
Newbie
Posts: 19
Karma: 0
"QUICK" and "SLOW" firewall rules brought me here
«
on:
February 05, 2021, 11:17:23 am »
What the heck is QUICK rule? pls help me out
Logged
iask
Newbie
Posts: 19
Karma: 0
Re: "QUICK" and "SLOW" firewall rules brought me here
«
Reply #1 on:
February 05, 2021, 11:27:00 am »
BTW I have never seen such a childish explanation :
"When a rule does not have quick enabled, the last matching rule wins."
Wins what? Do I play some kind of a game or what? Where is my prize?
Logged
Patrick M. Hausen
Hero Member
Posts: 6842
Karma: 574
Re: "QUICK" and "SLOW" firewall rules brought me here
«
Reply #2 on:
February 05, 2021, 11:32:34 am »
If a quick rule matches, processing of rules is stopped and the rule is applied to the packet in question.
For slow rules the last rules that matches the packet is applied.
So "quick" is the way packet filtering firewalls traditionally work. Apply rules in order, first match wins, stop rule processing for that packet.
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
iask
Newbie
Posts: 19
Karma: 0
Re: "QUICK" and "SLOW" firewall rules brought me here
«
Reply #3 on:
February 06, 2021, 09:54:01 am »
I learned from Docs that QUICK rules are preferable.
What if I have automatically created set of rules (not defined as quick) glued to the top of the list and I can't put anything else before these rules ?
Should I create "SLOW" rule on the bottom of the list to override all existing rules?
Logged
Patrick M. Hausen
Hero Member
Posts: 6842
Karma: 574
Re: "QUICK" and "SLOW" firewall rules brought me here
«
Reply #4 on:
February 06, 2021, 03:25:35 pm »
I think the documentation explains the processing order quite well:
https://wiki.opnsense.org/manual/firewall.html#processing-order
Automatic rules come first, so they are set to "slow". This means that a later rule provided by you can override them. Whether you set your own to slow or quick depends on if you want additional rules to be checked
after
this particular one or not.
Slow and quick are not separate rule sets. They are an attribute of the single rule in question. Quick means "if match, terminate rule processing immediately and use this one". Slow means "remember that rule, but examine all following ones if they match, too".
So the rule processing will alway use
the first quick rule that matches
only if there is no matching quick rule, then the last slow rule that matches
only if there is no matching rule at all it's "default deny"
«
Last Edit: February 06, 2021, 03:28:17 pm by pmhausen
»
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
alexroz
Newbie
Posts: 43
Karma: 0
Re: "QUICK" and "SLOW" firewall rules brought me here
«
Reply #5 on:
February 06, 2021, 04:41:56 pm »
https://youtu.be/kYFNa_zpeII?t=790
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
"QUICK" and "SLOW" firewall rules brought me here