Need help with Loadbalancer Config
-
Hi,
currently I'm trying to setup a simple loadbalancing for two web servers through pfSense. My problem is that when I create a virtual server the WAN IP I specify doesn't come up.
Example:
My own IP: 192.168.1.100 /24
pfSense external (WAN) IP: 192.168.1.30 /24
pfSense internal (LAN) IP: 172.16.10.254 /24Webserver1 IP: 172.16.10.100, Port 80,
Webserver2 IP: 172.16.10.101, Port 80,I put both web servers in one pool and set the 172.16.10.100 to be the fallback server. I verified that the health check on both servers was successful. Then I defined a virtual server with the IP address of 192.168.1.8 and Port 80 and I applied the change. Now when I try to access the virtual server on 192.168.1.8 it is not reachable. When I look at the communication with Wireshark I see that not even the ARP requests for that IP are answered.
I also tried via console of the pfSense itself. It can ping its own WAN IP, but not 192.168.1.8, so I am pretty certain it doesn't offer that IP at all.
Here's what the log says:
slbd[3800]: TCP poll succeeded for 172.16.10.101:80, marking service UP
TCP poll succeeded for 172.16.10.100:80, marking service UP
VIP 192.168.1.8:80 added real service 172.16.10.101:80
VIP 192.168.1.8:80 added real service 172.16.10.100:80
VIP 192.168.1.8:80 sitedown at 172.16.10.100:80
VIP 192.168.1.8:80 configured as "192.168.1.8"
Using configuration file /var/etc/slbd.conf
Using r_refresh of 5000 millisecondsDoes anyone have any idea how to get this sort of configuration to work? Maybe my understanding of the loadbalancer configuration is wrong. Can I have a virtual server IP that is different from the pfSense WAN IP, or does it have to be the WAN IP address of the pfSense?
Thank you!