LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

I can see the real server but it can't see me...

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: I can see the real server but it can't see me...
From: "Andy Harding" <andy.harding@xxxxxxxxxxxxxxxxxx>
Date: Thu, 21 Aug 2003 17:29:18 +0100 (BST)
Hi

This is the first time I have posted so go easy on me please :)

I have a question about my LVS setup...

1 Director running:
- RedHat 9 with a new 2.4.21 Kernel with the IPVS patch
- Keepalived

1 Real Server running:
- Standard RedHat 9
- Apache

The purpose of this setup is to test an LVS cluster on my private network.
This will then be expanded to 2 directors and 2 real servers to provide
total redundancy for a clients website.

---------------
|   Client    |
| (My Laptop) |
|192.168.1.100|
---------------
       |
----------------
| 192.168.1.50 | < Virtual IP 192.168.1.250
|   Director   |
| 192.168.2.50 | < Virtual IP 192.168.2.250
----------------
       |
---------------
| 192.168.2.1 |
| Real Server |
---------------

I have the director setup with 1 virtual server (192.168.1.250:80 =>
192.168.2.1:80) and the real server uses 192.168.2.250 as it's default
gateway.

If I go to http://192.168.1.250/ with my browser on the laptop I see the
http server on the real server and as far as I can tell my LVS setup is
working perfectly for incoming traffic.

The problem is that if I try to ping 192.168.1.100 (My Laptop) from the
real server a whole lot of nothing happens (no route to host).

I have solved the problem by setting up IP masquerading on the director
but I am unsure if this is the correct way to do it or weather the
director should provide a gateway by default for real servers.

Any comments would be much appreciated.

Thanks

Andy Harding


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