From mboxrd@z Thu Jan 1 00:00:00 1970 From: Muruganandam Subject: loadbalncer using iptables Date: Wed, 09 Mar 2005 16:53:01 +0530 Message-ID: Reply-To: muruganandam@softhome.net Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-admin-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: linux-admin@vger.kernel.org Dear all, 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. i wrote a script for the same using cron tab.but it is working. but what i need is i want to use the roundrobin fashion ,when http request comes.how to do that.