LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: LVS-NAT/ configure problems

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: LVS-NAT/ configure problems
Cc: dfelznic@xxxxxxx
From: Joseph Mack <mack.joseph@xxxxxxx>
Date: Mon, 26 Mar 2001 09:12:51 -0500
"Douglas F. Elznic" wrote:
> I used
> the latest configure from the website. 

I assume it didn't complain when you ran the rc.lvs_nat output 
on the director AND the real-servers?


> 
> ***I think that this might be a symptom of my problem***
> the first entry of 128.230.102.100 does not make sense to me.
> [root@syru102-100 /root]# route -n
> Kernel IP routing table
> Destination     Gateway        Genmask         Flags Metric Ref Use Iface
> 128.230.102.100 0.0.0.0        255.255.255.255 UH    0      0    0 eth0

this is the VIP, this is the expected entry

> 128.230.102.0   0.0.0.0        255.255.255.0   U     0      0    0 eth0
> 192.168.1.0     0.0.0.0        255.255.255.0   U     0      0    0 eth1
> 127.0.0.0       0.0.0.0        255.0.0.0       U     0      0    0 lo
> 0.0.0.0         128.230.102.1  0.0.0.0         UG    0      0    0 eth0
> 
> [root@syru102-100 /root]# netstat -an|more
> Active Internet connections (servers and established)
> Proto Recv-Q Send-Q Local Address           Foreign Address         State
> tcp        0      0 0.0.0.0:1024            0.0.0.0:*               LISTEN
> tcp        0      0 0.0.0.0:587             0.0.0.0:*               LISTEN
> tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN
> tcp        0      0 0.0.0.0:113             0.0.0.0:*               LISTEN
> tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN
> tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN
> tcp        0      0 128.230.102.100:22      128.230.102.12:1023 ESTABLISHED

you have a connection from x.x.x.12 (the telnet instigator) to VIP:telnet.
The director should be forwarding this request to the real-server.

> [root@syru102-100 /root]# more lvs_nat.conf
> LVS_TYPE=VS_NAT
> INITIAL_STATE=on
> VIP=eth0 128.230.102.100 255.255.255.0 128.230.102.255


this should be
> VIP=eth0 128.230.102.100 255.255.255.255 128.230.102.100

I put a note in the perldocs so that people would get this
right, but my note isn't working. Everyone is changing the
template and getting it wrong. Do you have any suggestions
about this? A BIG NOTICE in the template conf files?

the entry you have doesn't match the one from route -n above.
Are the outputs from the same run?
The route -n output is correct.

I'll read the tcpdump stuff if it's still not working after
the next round

Joe



-- 
Joseph Mack PhD, Senior Systems Engineer, Lockheed Martin
contractor to the National Environmental Supercomputer Center, 
mailto:mack.joseph@xxxxxxx ph# 919-541-0007, RTP, NC, USA


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