I have a machine for which I have assigned a floating IP address. That machine is also my load balancer. I can access my service easily using the IP address of load balancer.
However I am unable to access it using the floating IP address which was assigned to my load balancer machine.
sudo nano /etc/haproxy/haproxy.cfg
defaults
log global
mode http
option httplog
option dontlognull
timeout connect 5000
timeout client 50000
timeout server 50000
errorfile 400 /etc/haproxy/errors/400.http
errorfile 403 /etc/haproxy/errors/403.http
errorfile 408 /etc/haproxy/errors/408.http
errorfile 500 /etc/haproxy/errors/500.http
errorfile 502 /etc/haproxy/errors/502.http
errorfile 503 /etc/haproxy/errors/503.http
errorfile 504 /etc/haproxy/errors/504.http
#HAProxy for web servers
frontend web-frontend
bind IPADDRESSOFLOADBALANCER:80
mode http
default_backend web-backend
backend web-backend
balance roundrobin
server web-server1 IPADD1:80 check
server web-server2 IPADD2:80 check
server web-server3 IPADD3:80 check
server web-server4 IPADD4:80 check
Is there anything else I need to do apart from assigning the floating IP address. I am unable to access the service using floating IP address.