Using 2 Transparent HAProxy for load balancing
- by Nyxynyx
We can configure HAProxy to be a transparent proxy by using the guide here, where one of the steps says
...to put the backend servers in a different subnet to the front end clients and make sure that the default gateway points back at the HAProxy load balancer.
However when we need to have 2 transparent HAProxy in front of our balanced servers (for redundancy), it seems like this wont work as we can only set one gateway for our balanced servers.
What will be the correct way to setup the system such that we can have 2 transparent HAProxy infront of the balanced servers? The main reason for having transparent proxies is the need to find the client's IP addresses over TCP.