OPNsense Forum

English Forums => General Discussion => Topic started by: andrew0401 on September 20, 2023, 04:46:41 PM

Title: Confused
Post by: andrew0401 on September 20, 2023, 04:46:41 PM
Looking to migrate from pfsense to opnsense - primarily for the mail filtering and other functionality - think I have a firewall setup problem but might be due to approaching it from a pfsense view of how to set things up?

Network

Have a simple (?) EE supplied router/modem and looking to insert opnsense between it and the local lan (very small 5 clients, couple of servers - email,, VPN...) to exactly replace pfsense.

Setup the VPN and and email filtering,, put another client onto the network between the modem and opnsesne  and it shows all ports closed - pfsense shows the relevant ports as open.  If I disable the firewall opnsense shows the open ports correctly - rules are basically copied from pfsense.

Suspect I have missed something bl..dy obvious or a key difference between pfsense and opnsense - any clues on where to start much appreciated.

Thanks
Title: Re: Confused
Post by: Maurice on September 20, 2023, 09:12:26 PM
Might be caused by default reply-to behaviour. Did you try testing from the Internet instead of the WAN subnet?

Cheers
Maurice
Title: Re: Confused
Post by: andrew0401 on September 21, 2023, 10:44:39 AM
Tried from internet as well as wan subnet - no ports seem to be open on the WAN side - even tried with a pass everything rule and no luck

Am wondering if I have missed something in the change from pfsense to opnsense with regards to the rules - pfsense does not have all these default rules )why they include ipv6 when I have disabled ipv6??)
Modified the pass rule to log TCP/25 - it is being passed by the firewall but not received by postfix - postfix listening to all ips and responds correctly from the LAN interface.  So I have missed something linking WAN traffic to postfix?
Title: Re: Confused
Post by: andrew0401 on September 21, 2023, 11:29:54 AM
If I turn the firewall off then the port on the WAN is visible and postfix responds  as expected- but I lose the other protection....

Must be something in the rules
Title: Re: Confused
Post by: andrew0401 on September 21, 2023, 05:19:00 PM
Totally confused.

Changed WAN from DHCP from the modem to a fixed IP - and it works perfectly.