Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux Virtual Server: Users

[lvs-users] TUN setup problem

 

 

Linux Virtual Server users RSS feed   Index | Next | Previous | View Threaded


daniel at 34sp

Apr 22, 2008, 6:01 AM

Post #1 of 3 (523 views)
Permalink
[lvs-users] TUN setup problem

First up, I'm new to LVS. I've been reading about it for years but have
only just got round to trying it.

So far I've got one director and one real server up and running. I have
a IP tunnel working between them but the VIP isn't getting to apache on
the real server. Here are some details of the setup:

Director public IP 192.168.1.10

Real server public IP 192.168.1.12

VIP 192.168.1.20

Tunnel between the two 10.0.0.10 to 10.0.0.12

Pinging down the tunnel works.

director1:~# ipvsadm -l
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
TCP 192.168.1.20:www rr
-> 10.0.0.12:www Tunnel 1 0 0

Requesting port 80 down the tunnel works:
director1:~# telnet 10.0.0.12 80
Trying 10.0.0.12...
Connected to 10.0.0.12.
Escape character is '^]'.
GET /
<html><body><h1>It works!</h1><h2>real1</h2></body></html>
Connection closed by foreign host.

The VIP can be pinged from the wider network and is set up on eth0:0 on
the director.
director1:~# ifconfig eth0:0
eth0:0 Link encap:Ethernet HWaddr 00:10:5C:DC:01:98
inet addr:192.168.1.20 Bcast:192.168.1.255 Mask:255.255.255.255
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:11 Base address:0xec00

However a request to port 80 on the VIP doesn't give a response. The
InActConn count goes to 1 in ipvsadm -l. I'm sure I'm missing something
simple but I'm pretty stuck right now. Any clues or solutions?

--
Daniel

_______________________________________________
LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


jmack at wm7d

Apr 22, 2008, 7:11 AM

Post #2 of 3 (500 views)
Permalink
Re: [lvs-users] TUN setup problem [In reply to]

On Tue, 22 Apr 2008, Daniel Foster wrote:

> Tunnel between the two 10.0.0.10 to 10.0.0.12

for LVS-Tun you don't setup a tunnel. LVS makes its own ipip
packet and forwards it through the regular ethernet device
on the inside of the director to the tunl0 device on the
realserver.

Joe
--
Joseph Mack NA3T EME(B,D), FM05lw North Carolina
jmack (at) wm7d (dot) net - azimuthal equidistant map
generator at http://www.wm7d.net/azproj.shtml
Homepage http://www.austintek.com/ It's GNU/Linux!

_______________________________________________
LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


daniel at 34sp

Apr 22, 2008, 7:48 AM

Post #3 of 3 (486 views)
Permalink
Re: [lvs-users] TUN setup problem [In reply to]

> for LVS-Tun you don't setup a tunnel. LVS makes its own ipip
> packet and forwards it through the regular ethernet device
> on the inside of the director to the tunl0 device on the
> realserver.

Aha! Thanks Joe - all up and running now.

It now becomes clear that in
http://kb.linuxvirtualserver.org/wiki/LVS/TUN_mode_with_FreeBSD_and_Solaris_realserver
the instructions on tunnelling are jsut to demonstrate it and not
required in the actual setup. Pretty much as it say.

Thanks again - on to more playing with lvs!

--
Daniel

_______________________________________________
LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users

Linux Virtual Server users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.