LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Newbie redirect/tunneling question

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Newbie redirect/tunneling question
From: harlan@xxxxxxxxxxxxx
Date: Tue, 28 Dec 1999 23:41:54 -0600 (CST)
Hi,

We're moving our web server to a distant location, and I would like to
set up the old web server to tunnel its web requests to the new web
server during the DNS propagation period.

It sounds simple enough, but I'm tearing my hair out.

I'm using telnet rather than www, for testing.  So I want this:

  +--------------+
  |Client a.b.c.d|<.
  +--------------+  \
         |               \
         v                \
  +--------------+     +----------------+
  |Router 1.2.3.4|---->|Server 5.6.7.214|
  +--------------+     +----------------+

I've read and reread the docs, including the list archives and the
NET3-4-HOWTO on tunneling, and I can get the tunneled packets
redirected from the router (the old web server) to the server, but the
server doesn't respond with the telnet prompt to my client.

I'm using kernel 2.2.13 with lvs 0.9.7.  Appropriate kernel options
enabled (including tunneling, which wasn't specifically listed in the
docs; was that intentional?)

Reading the docs on www.linuxvirtualserver.org, I didn't see a way to
telnet to my router, exactly, but rather to a virtual address on
eth0:0.  In my case I chose 1.2.3.5.  Here's the setup:

ROUTER
        # My usual config.
        ifconfig eth0 1.2.3.4 netmask 255.255.255.192 \
                        broadcast 1.2.3.63
        route add default gw 1.2.3.8 metric 1

        # Set up tunneling.
        ifconfig eth0:0 1.2.3.5 netmask 255.255.255.255 \
                        broadcast 1.2.3.5 up

        route add -host 1.2.3.5 dev eth0:0

        ipvsadm -A -t 1.2.3.5:23 -s rr
        ipvsadm -a -t 1.2.3.5:23 -r 5.6.7.214 -i

SERVER
        # Usual config.
        ifconfig eth0 5.6.7.214 netmask 255.255.255.240 \
                        broadcast 5.6.7.223
        route add default gw 5.6.7.209 metric 1

        # Tunneling.
        ifconfig tunl0 1.2.3.5 netmask 255.255.255.255 broadcast 1.2.3.5 up
        route add -host 1.2.3.5 dev tunl0

I believe this is what it suggests, and the commands execute without
error, but when I telnet to 1.2.3.5, the server sees packets from the
router, but sends none to my client.

This must be tunneling 101, but I'm at wit's end.  Any help would be
most appreciated (in the form of my contributing to the docs to help a
future me.)

Thanks,

--
Pete Harlan
harlan@xxxxxxxxxxxxx

----------------------------------------------------------------------
LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
To unsubscribe, e-mail: lvs-users-unsubscribe@xxxxxxxxxxxxxxxxxxxxxx
For additional commands, e-mail: lvs-users-help@xxxxxxxxxxxxxxxxxxxxxx

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