From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Antonio Paulo Salgado Forster" Subject: Re: load balancing? Date: Sat, 14 Jun 2003 22:28:16 -0300 Sender: netfilter-admin@lists.netfilter.org Message-ID: Mime-Version: 1.0 Return-path: Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Joel Newkirk Cc: Jean-Yves Simon , netfilter@lists.netfilter.org if you want load balancing, you should look at http://www.keepalived.org and/or http://www.linuxvirtualserver.org/ -- Forster Joel Newkirk @lists.netfilter.org on 06/14/2003 12:36:55 PM Sent by: netfilter-admin@lists.netfilter.org To: Jean-Yves Simon cc: netfilter@lists.netfilter.org Subject: Re: load balancing? On Sat, 2003-06-14 at 07:54, Jean-Yves Simon wrote: > Hello, > > I'm curious if load balancing can be done with iptables, like for > example forwarding incoming web requests to one of the multiple web > servers behind the firewall. > > Or is a third party software needed? If all you need is to distribute requests evenly across a range of IPs you can use the rule: iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to 10.10.10.1-10.10.10.16 This example would attempt to distribute incoming HTTP requests evenly across the specified range of 16 IPs. j