LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

IP Tunneling configuration issue

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: IP Tunneling configuration issue
From: Thomas Pillot <music2030@xxxxxxxxx>
Date: Wed, 15 Jan 2003 16:18:40 +0100 (CET)
Hi !
I'm trying to configure a cluster with IP Tunneling.
I've been successfull with NAT and Direct Routing, but
I don't understant how to manage IP Tunneling.

I'm just using a LVS Director and one RealServer.
 
I'm using Linux Debian with kernel 2.4.18.
I've applied the ipvs patch on the Director's kernel
and the hidden patch on the Real Server's kernel.
 
LVSDirector :
eth0 : 192.168.1.10 (netmask 255.255.255.0)
eth0:0 128.96.224.120 (VIP) (netmask 255.255.0.0)
lo: 127.0.0.1

ipvsadm -A -t 128.96.224.120 -s rr -p 300
ipvsadm -a -t 128.96.224.120 -r 192.168.1.13 -i
echo 1 > /proc/sys/net/ipv4/ip_forward

RealServer
eth0 : 192.168.1.13 (netmask 255.255.255.0)
eth0:0 128.96.225.15 (netmask 255.255.0.0) (to
communicate with other machines over the network)
tunl0 : 128.96.224.120 (VIP) (netmask 255.255.255.255
broadcast 128.96.224.120)
echo 1 > /proc/sys/net/ipv4/conf/tunl0/hidden
echo 1 > /proc/sys/net/ipv4/ip_forward
echo 1 > /proc/sys/net/ipv4/conf/all/hidden

I'm trying to use this with a web server, installed on
the Real Server, listening on port 9673.
I've ran my tests from 128.96.231.121 (a machine on
the network 128.96.0.0). When I ask for a web page,
ipvsadm -Lcn claims that he has received a request and
that he has transmitted this request to 192.168.1.13. 
According to my sniffer, an IPIP packet is sent from
 192.168.1.10 to 192.168.1.13 with inside an IP
encapsulated packet from 128.96.231.121 to
128.96.224.120. Up to this point everything seem to be
OK.

I've used the LOG target of iptables on the Real
Server and I've seen an incoming packet from
192.168.1.10 (DIP) to 192.168.1.13. The RX field of
the tunl0 device on the RS given by ifconfig tunl0
increases by 1 but nothing comes out from the machine.

Have I made a mistake in my configuration ?
What should I do to get my web page on my browser ?
(I've tested my server, it's OK that's not the
point...)

Thank you for helping me

Thomas Pillot
music2030@xxxxxxxxx


___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com


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