LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Problems setting up LVS-NAT

To: "'lvs-users@xxxxxxxxxxxxxxxxxxxxxx'" <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Problems setting up LVS-NAT
From: Thomas Lamy <Thomas.Lamy@xxxxxxxxxx>
Date: Fri, 2 Nov 2001 10:23:52 +0100
Hi,
I spent some days now trying to build a simple LVS-NAT balancer based on
Linux 2.4.13.
All machines are SuSE 7.3 based, and do what they should as long as ipvs is
not loaded.

Here's my setup:
RS1 192.168.10.1---                    --------
                   +---192.168.10.100 |Director| 194.xx.xx.xx-----
RS2 192.168.10.2---                    --------

The director has a stock 2.4.13 plus ipvs-{0.8.2,0.9.5} patch applied.
I did "iptables -t nat -A POSTROUTING -s 192.168.10.0/24 -j MASQUERADE",
from this point I am able to do anything (outbound) on the real servers.
Apache is running on the real servers, and nothing is listening on the
director's port 80 (telnet VIP 80 => connection refused).

Then I enter:
 ipvsadm -A -t 194.xx.xx.xx:80 -s rr
 ipvsadm -a -t 194.xx.xx.xx:80 -r 192.168.10.1:80 -m
 ipvsadm -a -t 194.xx.xx.xx:80 -r 192.168.10.2:80 -m

From now on I can't connect to the VIP (no "connection refused", no
connection). I can't even see any packet coming when using tcpdump for the
external NIC - it seems the packet has gone /dev/null before landing in
userland.

I'm sure I've missed something simple - it must be something related to
ipvs, and it doesn't seem to be a bug, as it occurs with 0.8.2 _and_ 0.9.5.

Any help out there ?

Thomas


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