OPNsense Forum

Archive => 21.7 Legacy Series => Topic started by: BoogaBooga on December 28, 2021, 10:50:45 PM

Title: Always hitting the Default deny rule.
Post by: BoogaBooga on December 28, 2021, 10:50:45 PM
Hi Everyone, I'm hoping to figure out whats going on here.
I want to allow http traffic from one subnet 192.168.2.0/24 to another 192.168.10.0/24.
The OPNSense firewall is part of 192.168.10.0/24
The gateway to 192.168.2.0 is 192.168.10.5
I can ping host 192.168.10.10 from 192.168.2.15 successfully. There's a floating rule for ICMP that allows this.
When I clone/modify the ICMP floating rule to allow http, the firewall log shows the packets as dropped by the default deny rule (see attachment).

I've tried creating rules that match the info in the log, but it always gets denied. I cant understand what makes port 80 special in this case.

Any help would be appreciated.

Title: Re: Always hitting the Default deny rule.
Post by: chemlud on December 28, 2021, 11:21:13 PM
as you cloned the ICMP rule, did you allow UDP, TCP or both for port 80?
Title: Re: Always hitting the Default deny rule.
Post by: BoogaBooga on December 29, 2021, 06:41:35 PM
Yes, I tried setting the port to 80 or 'any' and the packets were still being dropped.

I wonder if its dropping due to some connection state issues.
Title: Re: Always hitting the Default deny rule.
Post by: BoogaBooga on December 29, 2021, 06:45:29 PM
Fixed it by disabling firewall rules on the same interface. I am not sure what the downside of this is, however.
Title: Re: Always hitting the Default deny rule.
Post by: chemlud on December 29, 2021, 06:49:58 PM
Quote from: BoogaBooga on December 29, 2021, 06:41:35 PM
Yes, I tried setting the port to 80 or 'any' and the packets were still being dropped.

I wonder if its dropping due to some connection state issues.

It's not about the port, but the type of packages (UDP/TCP) allowed for port 80...
Title: Re: Always hitting the Default deny rule.
Post by: BoogaBooga on December 29, 2021, 07:16:58 PM
Sorry, yes I did also try TCP/UDP.
Title: Re: Always hitting the Default deny rule.
Post by: lfirewall1243 on December 29, 2021, 09:31:08 PM
Please provide a network plan
Title: Re: Always hitting the Default deny rule.
Post by: BoogaBooga on January 01, 2022, 04:01:42 PM
Unfortunately I updated to the latest release and I can no longer ssh into opnsense.