LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

wrong source ip address for packets from real servers

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: wrong source ip address for packets from real servers
From: Olivier Kaloudoff <kalou@xxxxxxxxx>
Date: Fri, 3 Oct 2003 17:18:27 +0200 (CEST)
Hi there,

        I'm facing the last problem before perfect
successfull installation of my LVS cluster:

        In my LAN, I have a NAT enabled Netgear router,
IP: 192.168.0.64 .

        One DR-LVS Director, with default gw= 192.168.0.64,
working perfectly.

        Three real servers, with default gw= 192.168.0.64,
sending their IP packets with source IP=VIP (192.168.0.69) ...
I don't understand why ..

        Here is the setup of one of my Real servers:

w2:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use 
Iface
192.168.0.69    0.0.0.0         255.255.255.255 UH    0      0        0 lo
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 
eth0
0.0.0.0         192.168.0.64    0.0.0.0         UG    0      0        0 
eth0

lo:69     Link encap:Local Loopback
          inet addr:192.168.0.69  Mask:255.255.255.255
          UP LOOPBACK RUNNING  MTU:16436  Metric:1

eth0      Link encap:Ethernet  HWaddr 00:0A:E6:8D:30:9C
          inet addr:192.168.0.71  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:980643 errors:0 dropped:45 overruns:0 frame:0
          TX packets:913780 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:369456736 (352.3 MiB)  TX bytes:630805374 (601.5 MiB)
          Interrupt:12 Base address:0xdc00

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:73 errors:0 dropped:0 overruns:0 frame:0
          TX packets:73 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:6308 (6.1 KiB)  TX bytes:6308 (6.1 KiB)



When I ask for a website from the real servers, here
is what the router sees:

Source:192.168.0.69
,39766 LAN - Destination:193.41.72.115,80[HTTP] WAN - [Outbound Default 
rule match]


(In fact, the IP of the machine, is 192.168.0.71)

The kernel for each real servers was patched sucessfully
with the ARP hidden patch.

Any tips ?



Kalou

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