Help with NAT rules
-
I am trying to test out load balancing in the home lab and am running into issues. I haven't tried to do this before on pfsense and am lost. I have an incoming NAT rule to forward port 8080 to the load balancer. The load balancer then sends the data to the correct server. The server then tries to connect directly to the source IP bypassing the load balancer on the way out. The traffic is hitting pfsense fine but if I do not have an outbound NAT rule it changes the source port from 8080 to something else. Then when the client IP receives the data it gets dropped because the port does match what the client firewall is expecting. I tried setting outbound NAT to hybrid and adding a rule but can't get it to work. I have tried several different setting for the rule, but the traffic in a packet capture shows the internal address and it doesn't rewrite it so it never makes it through pfsense. Any ideas? I'm sure I missed something. Thanks!