Dears, i have to configure a HTTP load balancing distributed
geographically
with Tun, but it doesn't work for me and i dont know where is my problem. My
tools used are ipvsadm 1.24+1.21-1.4,
ldirectord 1.2.5-3, and kernel 2.6.x (x86) all this under Debian Etch for
the Real Server and Director. The machines
are located in diferent physical places and diferents Internet Service
Providers, obviously.
So here are some interesting details:
* For the director
- IP: 190.194.1.1/24 (eth1) (Public)
- OS: Debian 4.0 (kernel 2.6.18-6)
- interface tunl0 up (ifconfig tunl0 0.0.0.0 up)
ldirectord.cf
-------------------------------------------
# Global Directives
checktimeout=3
checkinterval=10
fallback=127.0.0.1:80
autoreload=no
logfile="/var/log/ldirectord.log"
#logfile="local0"
quiescent=yes
# A sample virual with a fallback that will override the gobal setting
virtual=190.194.1.1:80
real=164.4.4.1:80 ipip
fallback=127.0.0.1:80
service=http
request="hola.html"
receive="chango"
#virtualhost=some.domain.com.au
scheduler=sed
#persistent=600
#netmask=255.255.255.255
protocol=tcp
B) Realserver.
- Apache2 Working OK.
- OS Debian 4.0 (kernel 2.6.18-6)
- IP: 164.4.4.1/24 (eth0) (Public)
- Apache2 working OK.
$cat /proc/sys/net/ipv4/conf/all/arp_ignore
1
$cat /proc/sys/net/ipv4/conf/all/arp_announce
2
$cat /proc/sys/net/ipv4/ip_forward
0
$cat /proc/sys/net/ipv4/conf/all/rp_filter
0
when browsing IP http://190.194.1.1 this stay for a while and then show me
an timeout.
if i see ipvsadm state show this:
ipvsadm -L -n -c
IPVS connection entries
pro expire state source
virtual destination
TCP 00:55 SYN_RECV 190.196.22.13:56082 190.194.1.1:80
164.4.4.1:80
tcpdump in the realserver show:
-------------------------------------------------
$tcpdump -ln -i tunl0 -vv
tcpdump: WARNING: tunl0: no IPv4 address assigned
tcpdump: listening on tunl0, link-type RAW (Raw IP), capture size 96
bytes
12:16:04.369755 IP (tos 0x0, ttl 63, id 9422, offset 0, flags [DF],
proto: TCP (6), length: 48) 190.196.22.13.64798 > 190.194.1.1.80:
cksum 0xf5f1 (correct), 3037338149:3037338149(0) win 5840 <mss
1460,nop,nop,sackOK>
I can made this work only in LVS NAT/DR without problemas,
but i dont need this locally, well any clue has been received :)
Greetings
--
Victor Vargas B.
Latitud: -33.439177,-70.625267
Santiago, Chile.
|