LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Using LVS to forward HTTP from port 80 to servers running onport81

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: Using LVS to forward HTTP from port 80 to servers running onport81
From: Graeme Fowler <graeme@xxxxxxxxxxx>
Date: Thu, 13 Jul 2006 23:02:31 +0100
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

<Prev in Thread] Current Thread [Next in Thread>