OPNsense Forum

Archive => 23.7 Legacy Series => Topic started by: MS78M on January 28, 2024, 10:55:40 AM

Title: A ‘catch all’ Firewall rule is being intermittently bypassed
Post by: MS78M on January 28, 2024, 10:55:40 AM
On my LAN interface I have a firewall rule that allows 'Access to Anything' . This allows any device on the LAN interface to connect to anything on the internet as well as all the internal VLANs.

The next rule on the LAN interface blocks everything.  This rule is for debugging/logging purposes and should not normally be reached.

The issue is that the 'Access to Anything' rule is being bypassed occasionally which should not be possible.

I have no idea why this is happening and would appreciate some guidance.

See the attached screen shots:
* Log showing bypassing of  the rule
* Overview of the firewalls rule
* Full details of the 'Access to Anything' rule that is occasionally failing.

Thanks.
Title: Re: A ‘catch all’ Firewall rule is being intermittently bypassed
Post by: Fright on January 28, 2024, 03:36:49 PM
Hi, try to search for "out of state packet" (or something like that iirc). most likely this is it..
Title: Re: A ‘catch all’ Firewall rule is being intermittently bypassed
Post by: chemlud on January 28, 2024, 04:42:16 PM
The "default deny" rule (first in "automatic rules" for an interface, with option "last match" set) nowadays reads in the description:

Default deny / state violation rule

The second part most likely applies here...
Title: Re: A ‘catch all’ Firewall rule is being intermittently bypassed
Post by: MS78M on January 28, 2024, 04:57:57 PM
Thank you both for the quick and helpful responses.  :)