Using LVS to forward HTTP from port 80 to servers running onport81
Graeme Fowler
graeme at graemef.net
Thu Jul 13 23:02:31 BST 2006
Travis Melhiser wrote:
> yes, they are physically on the same subnet.
Voila.
Your realservers are responding direct to the client, and not via the
director. In a NAT system this causes the 3-way handshake to fail, thus
the client connections break.
There are several ways to get around it, but the easiest way is to
remove the route to the subnet from your realservers which forces them
to send all their traffic via their default gateway (which whould be the
director).
If your realservers, director and clients are all on a /24 network of
192.168.1.0/24, then do this on the realservers (preferably on the
console to save arm-chopping-off problems)...
route delete -net 192.168.1.0/24 dev eth0 (assuming only one network card).
Making sure, firstly, that they do have a default gateway!
Graeme
Search lvs-users Archives
More information about the lvs-users
mailing list