pfSense Load Balancer and Virtual IP

Posted by jshin47 on Server Fault See other posts from Server Fault or by jshin47
Published on 2012-02-26T05:07:48Z Indexed on 2012/03/25 11:33 UTC
Read the original article Hit count: 284

Filed under:
|
|
|

I have two identical web servers on 10.2.1.13 and 10.2.1.113. I would like to set up pfSense load balancer to balance requests to both of these.

I set up pools that included HTTP and HTTPS for both of these hosts, then set up virtual servers that responded on HTTP and HTTPS and referred traffic to its respective pool. However, I set up the virtual server to listen on 10.2.1.213, a LAN IP rather than a WAN IP, because I want LAN traffic to be able use the load balancer virtual server as well.

So, I set up a Virtual IP for 10.2.1.213 on LAN IP, and a NAT port forwarding rule for HTTP and HTTPS traffic on a WAN IP to forward to 10.2.1.213. It seems like this should work, but it fails.

What eventually happens is that when I try to access the page from WAN, I am directed to the login page for my pfSense device rather than the page I am expecting. When I try to access 10.2.1.213 from LAN, the request times out.

What is going wrong here? I have tried it with and without NAT reflection to no avail. Please advise

© Server Fault or respective owner

Related posts about nat

Related posts about port-forwarding