LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [lvs-users] Ldirectord won't forward

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [lvs-users] Ldirectord won't forward
From: "Brandon Hilkert" <bhilkert@xxxxxx>
Date: Thu, 20 Nov 2008 11:35:45 -0500
I have tried both Debian Etch r5 and Etch-and-a-half and both required that 
I do the following:

#echo ip_vs_dh >> /etc/modules
#echo ip_vs_ftp >> /etc/modules
#echo ip_vs >> /etc/modules
#echo ip_vs_lblc >> /etc/modules
#echo ip_vs_lblcr >> /etc/modules
#echo ip_vs_lc >> /etc/modules
#echo ip_vs_nq >> /etc/modules
#echo ip_vs_rr >> /etc/modules
#echo ip_vs_sed >> /etc/modules
#echo ip_vs_sh >> /etc/modules
#echo ip_vs_wlc >> /etc/modules
#echo ip_vs_wrr >> /etc/modules
#modprobe ip_vs_dh
#modprobe ip_vs_ftp
#modprobe ip_vs
#modprobe ip_vs_lblc
#modprobe ip_vs_lblcr
#modprobe ip_vs_lc
#modprobe ip_vs_nq
#modprobe ip_vs_rr
#modprobe ip_vs_sed
#modprobe ip_vs_sh
#modprobe ip_vs_wlc
#modprobe ip_vs_wrr

I thought IPVS was built into the kernel. why will is not work without this?

Thanks,
Brandon


----- Original Message ----- 
From: <bhilkert@xxxxxx>
To: <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, November 18, 2008 12:10 PM
Subject: [lvs-users] Ldirectord won't forward


> I'm using Debian Etch and installed Ldirectord using:
>
> aptitude install ldirectord-2
>
> My cf file is:
>
> # Global Directives
> checktimeout=5
> checkinterval=20
> autoreload=no
> logfile="/var/log/ldirectord.log"
> quiescent=yes
>
> # Virtual Server for HTTP
> virtual=10.10.5.1:80
> fallback=10.10.5.3:80
> real=10.10.5.2:80 masq
> service=http
> request="index.htm"
> receive="10.10.5.2"
> scheduler=rr
> protocol=tcp
> checktype=negotiate
>
> I start is using: ldirectord -d start
>
> and the page is proper checked for the keyword and found successful.
>
> IP Virtual Server version 1.2.1 (size=4096)
> Prot LocalAddress:Port Scheduler Flags
>  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
> TCP  10.10.5.1:80 rr
>  -> 10.10.5.2:80                 Masq    1      0          2
>
> Each time i refresh the broswer, the InActConn increases
>
>
> ntop:/# tcpdump -n -i any port 80
> 11:31:37.797723 IP 10.10.10.101.4813 > 10.10.5.1.80: S 
> 3075972850:3075972850(0)
> win 65535 <mss 1460,nop,nop,sackOK>
> 11:31:37.797736 IP 10.10.10.101.4813 > 10.10.5.2.80: S 
> 3075972850:3075972850(0)
> win 65535 <mss 1460,nop,nop,sackOK>
>
> So it forwards it to the right place, but the browser never sees the 
> connection.
> I can go straight to 10.10.5.2 and the page loads fine.
>
> So why does the broswer not see the forwarded connection?
>
>
> 



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