Re: load balancing?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



if you want load balancing, you should look at http://www.keepalived.org
and/or http://www.linuxvirtualserver.org/

--
Forster


Joel Newkirk <netfilter@xxxxxxxxxx>@lists.netfilter.org on 06/14/2003
12:36:55 PM

Sent by:    netfilter-admin@xxxxxxxxxxxxxxxxxxx


To:    Jean-Yves Simon <lethalwp@xxxxxxxxxx>
cc:    netfilter@xxxxxxxxxxxxxxxxxxx
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








[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux