LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: LVS-NAT [Local Loopback Problem]

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: LVS-NAT [Local Loopback Problem]
From: Horms <horms@xxxxxxxxxxxx>
Date: Wed, 24 Dec 2003 11:35:54 +0900
On Wed, Dec 24, 2003 at 10:18:15AM +0900, dae gow kim wrote:
> Hello guys, merry christmas~ 
> 
> Here is my simple setup...
> 
> [LVS-NAT setup]
> Director : 
> - IP : 10.0.0.71
> - VIP : 10.0.0.72
> - LAN IP : 192.168.0.1
> 
> Real Server1:
> - IP : 192.168.0.2
> - GW : 192.168.0.1
> 
> Below is ipvsadm command message...
> --------------------------------------------------------------------
> IP Virtual Server version 1.0.10 (size=4096)
> Prot LocalAddress:Port Scheduler Flags
>   -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
> TCP  10.0.0.72:www rr
>   -> 192.168.0.2:www              Masq    1      0          0         
> --------------------------------------------------------------------
> 
> My problem is that web connection from the director is not working...
> For example...
> The web connection from 10.0.0.30(external host) to 192.168.0.2 is well 
> done...
> (when lynx 10.0.0.72 at 10.0.0.30)
> However, when I try web connection from director(10.0.0.71 host)...
> It is always connected to 10.0.0.71 instead of 192.168.0.2...
> I want to connect to 192.168.0.2 at 10.0.0.71...
> How can I solve this problem...?

LVS does not typically work for localy generated packets.
You will probably need to modify the LVS source so that
it does not explicitly ignore Local packets if you want this to work.

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