LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

RE: LVS on RedHat 7.2

To: <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: RE: LVS on RedHat 7.2
From: "Adam: Kurzawa" <adam@xxxxxxxxxxxxx>
Date: Fri, 2 Nov 2001 05:16:21 -0500
Hi,
 
I am glad to see you have it working, any suggestions what I did wrong?  Please have a look at my setup below.
 
LVS on RedHat 7.2, here is my setup:
 
 
                       ________
                      |        |
                      | client |
                      |________|
                      CIP=10.1.1.90
                           |
                           |
                           |
                      VIP=10.1.1.1 (eth0)
                      __________ 
                     |          |
                     | director |
                     |__________|
                      DIP=192.168.4.128 (eth1)
                           |
                           |
          -----------------------------------  
          |                |                |
          |                |                |
  RIP1=192.168.4.1     N/A (yet)        N/A (yet)
   _____________     _____________    _____________
  |             |   |             |  |             |
  | realserver  |   | realserver  |  | realserver  |
  |_____________|   |_____________|  |_____________|
mask on the local net /24,
default gateway on realserver 192.168.4.128
 
 
=======
content of: /etc/sysctl.conf
# Disables packet forwarding, 0 is disabled, 1 endabled
net.ipv4.ip_forward=1
# Enables source route verification
net.ipv4.conf.default.rp_filter = 1
# Disables the magic-sysrq key
kernel.sysrq = 0
# Enable automatic defragmentation (needed for masquerading, LVS)
net.ipv4.ip_always_defrag = 1
=======
 
here is my experimental setup that I am trying to get to work,
firewall WIDE open
 
===========
iptables -P INPUT   ACCEPT
iptables -P OUTPUT  ACCEPT
iptables -P FORWARD ACCEPT
 
iptables -F INPUT
iptables -F OUTPUT
iptables -F FORWARD
 
iptables -t nat -F
iptables -t nat -A POSTROUTING -s 192.168.4.0/255.255.255.0 -j
MASQUERADE
 
ipvsadm -C
ipvsadm -A -t 10.1.1.1:80 -s wlc
ipvsadm -a -t 10.1.1.1:80 -r 192.168.4.1:80 -m
===========
 
Here is what happens:
 
1. I send an http request from client (10.1.1.90) to 10.1.1.1.
2. the packet is accepted by the LVS and a request is sent to the real
web server, ip:192.168.4.1.
3. The real web server DOES send a response back to the box running
the LVS server.  I can see it on eth1 with "tcpdump -i eth1"
4. I never see the packet again, somehow it gets lost on the machine
and never returns to the Client.
 
There is obviously something I missed.  Any suggestions?
 
Kind regards,

 

-----Original Message-----
From: lvs-users-admin@xxxxxxxxxxxxxxxxxxxxxx [mailto:lvs-users-admin@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Aymeric BLAZY
Sent:
Friday, November 02, 2001 2:34 AM
To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx; lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: LVS on RedHat 7.2

 

Hi,

I ve got a LVS setup on a redhat 7.2 server, i was trying 2.4.9 and 2.4.12 kernel.
At this time i haven't been able to got a stable configuration. Server freeze, kernel panic ...
(see kernel panic on this list last days...).
I am planning now to downgrade to redhat-7.1 and kernel-2.2.19.

Regards,

At 04:53 01/11/2001 -0500, Adam: Kurzawa wrote:


Hi,

 

I am looking on some advice on how to setup LVS on RedHat 7.2.

 

From what I have noticed, this version of linux has all the required modules already available in the distribution.  Does anyone have any advice on how to implement LVS on this distribution?  It appears that all the documentation and HOWTOs reference the old ipchains (am am using iptables on the server) and old kernels.

 

Kind regards,

Adam

_______________________________________________ LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx or go to http://www.in-addr.de/mailman/listinfo/lvs-users
<Prev in Thread] Current Thread [Next in Thread>