LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

LVS_NAT Problem

To: <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: LVS_NAT Problem
From: "xgao" <xgao@xxxxxxxxxxxxxxx>
Date: Tue, 16 Apr 2002 19:00:55 +0800
Hi,
 
I get some problems in LSV_NAT.
I have three servers,  one is router, one as real server and the third is client.
The router has one nic with two ip address eth0 192.168.1.68 eth0:0 192.168.1.10
one real server is 192.168.1.1 which is win2k
client is 192.168.1.5
 
I use  LVS config scripts to set lsv_net.conf
#192.168.1.10 lvs
#
#DIP
#192.168.1.68 dip
#
#GW, an IP on my client machine
#192.168.1.5 client
#
#real-servers
#192.168.1.11 rip1
 
 
LVSCONF_FORMAT=1.1
LVS_TYPE=VS_NAT
INITIAL_STATE=on 
CLEAR_IPVS_TABLES=yes
VIP=eth0:0 lvs 255.255.255.0 lvs
DIP=eth0 dip 192.168.1.0 255.255.255.0 192.168.1.255
DIRECTOR_GW=192.168.1.5
SERVICE=t www rr rip1:www
SERVER_NET_DEVICE=eth0
 
Above script can be compiled if I run ./config lsv_net.conf , and after I run rc.lsv_net, I run ipvsadm
I can see
director:/lvs/conf# ipvsadm
IP Virtual Server version 1.0.2(size=4096)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port          Forward Weight ActiveConn InActConn
TCP  192.168.1.10:www rr
  -> 192.168.1.11:www             Masq    1      0          0       
 
but when I am on client server to visit the 192.168.1.10, my broswer can not show the html page. at the same time I run ipvsadm on router I find InActConn has been counted to 1, if I refresh the browser InActConn will be 2. ...
 
And I find I can not use the router to access the internet. I open the netscape on the rounter, it can not connect to the internet. It seems iptables on the router block all the ports on it.
 
Can anyone tell me what is going on?
 
Regards
xiao
<Prev in Thread] Current Thread [Next in Thread>