LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

RE: iptun for http - not working - pls help I'm going mad!

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: RE: iptun for http - not working - pls help I'm going mad!
From: "Easytrans Systems (Laurie Baker)" <lvs@xxxxxxxxxxxxx>
Date: Sun, 13 Jul 2003 18:55:37 +0100
Sounds like a routing problem?

This was our RS TUN setup process:


# set up tunneling interface for load balancing
#
# Amend Tunnel Address as required
#
# /sbin/ifconfig tunl0 xxx.xxx.xxx.xxx netmask 255.255.255.255 broadcast
xxx.xxx.xxx.xxx up
# /sbin/route add -host xxx.xxx.xxx.xxx dev tunl0
#
/sbin/insmod ipip
/bin/echo 1 > /proc/sys/net/ipv4/ip_forward
/sbin/ifconfig tunl0 192.168.1.100 netmask 255.255.255.255 broadcast
192.168.1.100 up
/sbin/route add -host 192.168.1.100 dev tunl0
/bin/echo 1 > /proc/sys/net/ipv4/conf/all/hidden
/bin/echo 1 > /proc/sys/net/ipv4/conf/tunl0/hidden


Are you sure you followed all these steps?

Laurie.

-----Original Message-----
From: lvs-users-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:lvs-users-bounces@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Viperman
Sent: 13 July 2003 18:17
To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: iptun for http - not working - pls help I'm going mad!


Hello Everybody,

I'm going mad here with something I cannot figure out.

I'm trying to simply take 1 server I have and make an LVS using iptun to
another server, coz the servers are on different networks.

On both servers I have redhat 7.3 with re-compiled kernel 2.4.18 including
the pacthes needed, and also the hidden patch.
ipvsadm runs fine on both machines but I still cannot get what I need.

Here is what I did:

on director:
I have 2 nics, each one with 1 adsl line, so both nics have live internet
ips (pls note these ips are fixed ips, they never change)
I want to have 1 of the dsls to iptun to my real server, so I did the
following:

ipvsadm -A -t  ip_eth0_director:80  -s wlc -p
ipvsadm -a -t  ip_etho_director:80  -r  ip_eth0_real -i -w 3

and for sure I did echo 1 > /proc/sys/net/ipv4/ip_forward


on real server:
modprobe ipip
ifconfig tunl0 0.0.0.0 up
ifconfig tunl0 ip_eth0_director netmask 255.255.255.255 broadcast
ip_eth0_director up

echo 1 > /proc/sys/net/ipv4/conf/all/hidden
echo 1 > /proc/sys/net/ipv4/conf/tunl0/hidden

I setup http.conf on real server to use the Virtual IP (pls note the virtual
ip is the ip on eth0 on my director)

http is not working.
I could see on tcpdump that the packets arriving on port80 on my director
are being redirect to the correct ip on the real server, but I still get no
sites working.

Pls pls pls help me figuring out what I'm missing here and how to make this
work.

Thanks everybody.


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