LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [lvs-users] LVS SNAT problem.

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [lvs-users] LVS SNAT problem.
From: Joseph Mack NA3T <jmack@xxxxxxxx>
Date: Tue, 26 Feb 2008 07:56:02 -0800 (PST)
On Tue, 26 Feb 2008, Andy Ashley wrote:

> Hi Joseph,
>
> My understanding was that I was using LVS-NAT, not LVS-DR..
>
> If I use -g (gateway/DR) the load balancer does not attempt to forward
> the packets. I get "No route to host" on the client using this method.
> The load balancer just gets requests from the client and nothing
> happens, no replies or forwards.

look in the mini-HOWTO on setting up LVS-DR

> "I also have the following SNAT rule to change the source address of
> packets leaving the load balancer
>
> why?"
>
> Because, as I understand it, if the realserver attempts to initiate the
> return connection directly (bypassing the loadbalancer), the client will
> assume this is a new tcp connection, not the reply to it's original
> request. Perhaps Im missing something..

yes. look some more in the HOWTOs

> "can you make the director the default gw for the packets
> from the RIPs?"
>
> Possibly. But I had an idea that a the realservers would not take a
> default gateway located on another LAN (as the loadbalancer is).
> I would like to avoid this if possible as I dont know if the servers
> (Windows 2003 Server) or firewall (Cisco ASA5510) can do this..

to get LVS-NAT to work you'll have to do it.

Joe
-- 
Joseph Mack NA3T EME(B,D), FM05lw North Carolina
jmack (at) wm7d (dot) net - azimuthal equidistant map
generator at http://www.wm7d.net/azproj.shtml
Homepage http://www.austintek.com/ It's GNU/Linux!


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