From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thornton Prime Subject: Re: loadbalncer using iptables Date: Wed, 9 Mar 2005 05:35:29 -0800 Message-ID: <2d7eccf505030905356231091b@mail.gmail.com> References: Reply-To: thornton@yoyoweb.com Mime-Version: 1.0 Content-Transfer-Encoding: 7bit In-Reply-To: Sender: linux-admin-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii" To: muruganandam@softhome.net Cc: linux-admin@vger.kernel.org > I build a loadbalancer using DNAT. > iptables -t nat -A PREROUTING -s 10.10.10.254 -d 192.168.0.3 -p tcp > --dport 80 -j DNAT --to-destnation 172.18.10.1 > i need to use anonther real server 172.18.10.2 for the next request in a > round robin fashion. You can add a match like "-m nth --every 2", but you probably want to look at LinuxVirtualServer.org, which implements a real load balancer using netfilter. There is support for peristent connections, weights, adding in health checks, and all sorts of other features. thornton