OPNsense Forum

English Forums => 24.7, 24.10 Legacy Series => Topic started by: amd.64 on December 19, 2024, 02:43:50 AM

Title: Only one port forward works
Post by: amd.64 on December 19, 2024, 02:43:50 AM
I have just installed OPNSense on a Lenovo Tiny PC with an Intel EXPI9404PTLBLK Pro/1000 Pt Quad Port NIC. This system will replace my older system also running OPNSense.

I backed up the config on the old system then restored the firewall settings on the new system. However, despite all port forwards working on the old FW, only one is working on the new FW. I have even deleted and recreated a couple, rebooted the system and installed available updates.

I have run Zenmap on the systems that these ports should forwarded to and all the ports I need on these systems are open. So the issue is with OPNSense
Title: Re: Only one port forward works
Post by: amd.64 on December 19, 2024, 03:30:25 AM
I am using version 24.7.11_2
Title: Re: Only one port forward works
Post by: amd.64 on December 19, 2024, 10:00:12 PM
I am using OPNSense and OpenWRT for a DMZ. OPNSense is the outer firewall and OpenWRT is the inner firewall. I have two servers in the DMZ. I discovered that neither server was able to ping past the gateway via IP4.

Digging into this it turns out I need to check the check box to "Deny service binding". Once I did everything started working, IP4 pinging and port forwards.
Title: Re: Only one port forward works
Post by: meyergru on December 19, 2024, 11:29:04 PM
Did you setup the routes from both ends or have NAT on the OpenWRT box? How would OpnSense know what lies behind your OpenWRT box?
Title: Re: Only one port forward works
Post by: amd.64 on December 20, 2024, 06:37:37 PM
No I did not configure routes.

Not sure why OPNSense would need to know what is on the private side of OpenWRT.

The only traffic that would need to go to the private side is for Exchange. That traffic I just forward to the WAN side of OpenWRT.
Title: Re: Only one port forward works
Post by: meyergru on December 20, 2024, 08:48:40 PM
To route the packets back to the source? There is only two ways to do that: setting a route or having the subnet NAT behind the OpenWRT WAN address.
Title: Re: Only one port forward works
Post by: amd.64 on December 21, 2024, 03:45:21 AM
Quote from: meyergru on December 20, 2024, 08:48:40 PMhaving the subnet NAT behind the OpenWRT WAN address.

Which is what I am doing, as I said in my previous comment.