LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: ipvsadm and kernel 2.2.22 and apache load balancing

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: ipvsadm and kernel 2.2.22 and apache load balancing
From: Romeo Benzoni <rb@xxxxxx>
Date: Thu, 24 Oct 2002 12:08:20 +0200
hi

setup of client and realserver should be obvious.

on the director the commands (for telnet) would be:

# ipvsadm -A -t 192.168.0.2:23 -s rr
# ipvsadm -a -t 192.168.0.2:23 -r 172.16.0.2 -m
# echo "1" >/proc/sys/net/ipv4/ip_forward


I think that you also need to add an iptables rule so that return
packets from the realservers are demasqueraded.

iptables -t nat -A POSTROUTING -j MASQUERADE -s 172.16.0.2/24


as of 2.4 you don't need that
for 2.2 I don't know.

cu

romeo



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