I am building out a new high availability environment with 2 HAProxy load balancing servers and 2 NGINX web servers all on CentOS 7. I have everything setup and working with both load balancers but am not sure how to route incoming WAN traffic so that if one HAProxy server is down, the other will take over. I have read a few articles about setting up HAProxy HA but they all refer to setting up a Virtual IP. Is this something I need to setup in CentOS or is this something that should be setup in my PfSense firewall.
My Setup:
pfSense Firewall (192.168.1.1)
--
LB01 (192.168.1.5)
LB02 (192.168.1.6)
--
NGINX01 (192.168.1.20)
NGINX02 (192.168.1.21)