Load Balance http and picking the correct gateway
goodi last edited by
I have two external interfaces WAN and DMZ and one internal LAN (172.16.1.1).
WAN is a router port, has the IP 188.8.131.52 and is the default gateway.
DMZ is connected to a switch and has the IP 184.108.40.206.
The DMZ interface also has the virtual IP 220.127.116.11.
I want to load balance incoming traffic on 18.104.22.168 to other servers in the LAN to 172.16.1.5, 172.16.1.6. The traffic flows kindly from 22.214.171.124 to 172.16.1.5 and .6 - but the repsonse packets never reaches their destinies.
I think I understand why: the default LAN GW is 172.16.1.1 - so the traffic from 172.16.1.5 and .6 reaches pfSense, but since the default gateway for the pfSense is 126.96.36.199, this 188.8.131.52 will be used to send the response, but it should use 184.108.40.206 - the incoming DMZ interface. I'm unsure how to solve this problem, anyone got a hint/tip?