Hello World!
Just fiddling around with ldirectord and IPVS for a setup where a
firewall has two interfaces on two different external networks (lets
make it 172.16.23.0/24 and 192.168.23.0/24) and is used as a load
ballancer for httpd.
Right now, we need to distribute the traffic over both lines (DNS Round
robin), but I have to be sure that the client needs to end up on the
same (internal) server, no matter which external IP is used.
Any hints?
Richard
ldirectord.conf
# Global Directives
checktimeout=30
checkinterval=60
autoreload=yes
logfile="/var/log/ldirectord.log"
quiescent=no
# Port 80 httpd
virtual=172.16.23.166:80
real=10.5.1.21:80 masq weight 20
real=10.5.1.22:80 masq weight 20
real=10.5.1.23:80 masq weight 20
real=10.5.1.24:80 masq weight 20
service=http
request="testpage.php"
receive="ok"
virtualhost="testhost.com"
scheduler=wrr
persistent=1200
netmask=255.255.255.255
protocol=tcp
virtual=192.168.23.166:80
real=10.5.1.21:80 masq weight 20
real=10.5.1.22:80 masq weight 20
real=10.5.1.23:80 masq weight 20
real=10.5.1.24:80 masq weight 20
service=http
request="testpage.php"
receive="ok"
virtualhost="testhost.com"
scheduler=wrr
persistent=1200
netmask=255.255.255.255
protocol=tcp
_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/
LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://lists.graemef.net/mailman/listinfo/lvs-users
|