Using 2 Transparent HAProxy for load balancing

Posted by Nyxynyx on Server Fault See other posts from Server Fault or by Nyxynyx
Published on 2014-08-19T19:00:23Z Indexed on 2014/08/19 22:22 UTC
Read the original article Hit count: 342

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.

© Server Fault or respective owner

Related posts about networking

Related posts about nginx