LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Installation problem

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Installation problem
From: Jan Schlüter <jan.schlueter@xxxxxxxxxxxxxxxxxxxx>
Date: Sun, 25 Dec 2005 20:55:36 +0100
Hi,

I am having some problem with the first setup of IPVS. Currently I am just trying out some diffrent possibilities for load balancing web- servers, which work better than simple dns-balancing.

My situation:

I have 2 servers in diffrent subnets (at the same provider with a goog connection). Those 2 servers are having one nic (each) and a running Apache on Port 8080. Because of not having the possibility to build in a second nic and do a NAT-Masquerade I tried to setup an tunnel:

> modprobe ipip
> echo 1 >/proc/sys/net/ipv4/ip_forward
> ip tunnel add $IFACENAME$ mode ipip remote $REMOTEIP$ local $LOCALIP$ ttl 255
> ifconfig $IFACENAME$ 192.168.1.1
> route add -host 192.168.1.2 $IFACENAME$

and on the other side the opposite.
Pinging is possible now:

> node01:~ # ping 192.168.1.2
> PING 192.168.1.2 (192.168.1.2) 56(84) bytes of data.
> 64 bytes from 192.168.1.2: icmp_seq=1 ttl=64 time=0.293 ms

and:

> node02:~ # ping 192.168.1.1
> PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
> 64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.271 ms

at this moment I thought I did the hardest and used ipvsadm to configure my load-balancing:

> node01:~ # ipvsadm -l
> IP Virtual Server version 1.2.1 (size=4096)
> Prot LocalAddress:Port Scheduler Flags
>  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
> TCP  $HOSTNAME$: rr
>  -> 192.168.1.1:http             Local   1      0          0
>  -> 192.168.1.2:http             Tunnel  1      0          0

as you see my node01 ist also the load-balancer - but I do not think that this is the problem.

node01 can access the webserver on node02; node02 can access the webserver on node01 - everything fine so far.


But when I try to access node01 from an external PC nothing happens. The connection is established, but I do not get a response:

> telnet node01 80
> Trying $IP$...
> Hello Echo
> Huhu?

The apache at the node does not receive a request (as to see in the logs).

I simply do not know what to do now? Where might be the problem?

Thank you and excuse my bad english,

Jan


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