OPNsense Forum

Archive => 24.1, 24.4 Legacy Series => Topic started by: Mirio on April 26, 2024, 10:52:23 AM

Title: Firewall Block traffic after some data
Post by: Mirio on April 26, 2024, 10:52:23 AM
Hi all,
I am encountering a particular behavior, specifically the traffic between two nodes is first allowed and shortly after various data is blocked by the default deny. I would like to point out that there is a specific permit rule for this traffic.

More specifically:

Lan50:
(https://i.imgur.com/EVqkWo0.png)

Lan150:
(https://i.imgur.com/Bjfhg6I.png)

Step to replicate:

Below the image of firewall log:
(https://i.imgur.com/bnECVWH.png)

Any tips?
Thanks
Title: Re: Firewall Block traffic after some data
Post by: Mirio on April 26, 2024, 02:11:44 PM
Thanks to Monviech on IRC
Quote
Try to set "State Type" in the Advanced Features of the firewall rule that allows the traffic to "Sloppy State" and TCP flags to "Any flags.

And now it works!
Thank you
Title: Re: Firewall Block traffic after some data
Post by: Monviech (Cedrik) on April 26, 2024, 02:22:46 PM
Though I have to add that this solution circumvents some safety of a proper "keep state". So the root cause of needing this should be fixed in the long run.