LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Problem - packets not reaching real servers

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Problem - packets not reaching real servers
Cc:
From: e.hogg@xxxxxxxxxxxxxxxx
Date: Mon, 25 Mar 2002 14:56:35 GMT
FAO lvs-users

I have installed The IPVS Netfilter module for kernel 2.4 - Version 1.0.0
on a (slackware) linux 2.4.18 kernel box.  When connecting to the director
box (port 80) no traffic is natted to the real servers.  Below is some data
from my setup.

Any help is most appreciated.

Euan Hogg

----------------------------------------

Linux 2.4.18
ipvsadm v1.20 2001/11/04 (compiled with getopt_long and IPVS v1.0.0)

client 192.168.2.17
VIP 192.168.2.15
DIP 192.168.1.3
realservers 192.168.1.12 192.168.1.14 (default route DIP)

Output from /var/log/debug (level 12)

Mar 25 13:06:04 web kernel: IPVS: lookup/in TCP
192.168.2.17:1722->192.168.2.15:80 not hit
Mar 25 13:06:04 web kernel: IPVS: lookup service: fwm 0 TCP 192.168.2.15:80
hit
Mar 25 13:06:04 web kernel: IPVS: ip_vs_wlc_schedule(): Scheduling...
Mar 25 13:06:04 web kernel: IPVS: WLC: server 192.168.1.14:80 activeconns 0
refcnt 1 weight 1 overhead 0
Mar 25 13:06:04 web kernel: IPVS: Bind-dest TCP c:192.168.2.17:1722
v:192.168.2.15:80 d:192.168.1.14:80 fwd:M s:NONE flg:100 cnt:0 destcnt:2
Mar 25 13:06:04 web kernel: IPVS: Schedule fwd:M s:NONE c:192.168.2.17:1722
v:192.168.2.15:80 d:192.168.1.14:80 flg:140 cnt:2
Mar 25 13:06:04 web kernel: IPVS: Incoming TCP
192.168.2.17:1722->192.168.2.15:80
Mar 25 13:06:04 web kernel: IPVS: TCP input  [S...]
192.168.1.14:80->192.168.2.17:1722 state: NONE->SYN_RECV cnt:2
Mar 25 13:06:04 web kernel: Enter: ip_vs_nat_xmit, ip_vs_conn.c line 673
Mar 25 13:06:04 web kernel: IPVS: new dst 192.168.1.14, refcnt=2, rtos=0
Mar 25 13:06:04 web kernel: IPVS: NAT to 192.168.1.14:80
Mar 25 13:06:04 web kernel: Leave: ip_vs_nat_xmit, ip_vs_conn.c line 806

IPVSADM script

$IPVS="/sbin/ipvsadm"
$IPVS -C
$IPVS -A -t 192.168.2.15:80 -s wlc
$IPVS -a -t 192.168.2.15:80 -r 192.168.1.12:80 -m -w 1
$IPVS -a -t 192.168.2.15:80 -r 192.168.1.14:80 -m -w 1
$IPVS -Ln


IP Virtual Server version 1.0.0 (size=4096)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  web.orchard.local:www wlc
  -> web1.orchard.local:www       Masq    1      0          0
  -> web2.orchard.local:www       Masq    1      0          0




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