Firewall blocks traffic coming from Linux NAT

  • My pfSense firewall has WAN/LAN/DMZ_INT/DMZ_EXT interfaces. The DMZ interfaces are vlans and they host internal or external services. By default all traffic coming to the DMZ interfaces is blocked.

    I want to allow access to a service in DMZ_INT from another vlan ( The vlan is not configured on pfSense. The traffic comes from a server from the LAN interface which also has the vlan configured as a separate interface. The server is running Linux and is configured with iptables NAT.

    pfSense will block all traffic coming from the hosts even though the firewall is configured to allow this traffic. In the firewall logs I can see the blocked packet and it seems that pfSense attempts to reply using the IP address instead of the Linux NAT server address.

    Basically, the traffic flows as follows:

    |Client -| ---> |Linux NAT -| ---> |pfSense -| -> |Server -|

    LAN clients can access this server. Also clients from the vlan can access other services in LAN through NAT.

    I believe this is FreeBSD related but I can't seem to find an answer online. My opinion is the traffic from the client should get back on the Linux NAT address not on the source IP of the client, which pfSense can't access directly.

    Can someone please help me find out the answer to this and if there's a way to solve it?

    Many thanks!

Log in to reply