* load balancing?
@ 2003-06-13 4:51 Jean-Yves Simon
2003-06-17 19:00 ` Garcia Ruiz
2003-06-18 13:39 ` Fabrice MARIE
0 siblings, 2 replies; 6+ messages in thread
From: Jean-Yves Simon @ 2003-06-13 4:51 UTC (permalink / raw)
To: netfilter
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?
Maybe it is this planned for the future (pkttables or don't know what
name it will have)?
PS: can you please crosscopy to my email address, since i'm not a member
of this mailing list.
--
Jean-Yves Simon <lethalwp@tiscali.be>
^ permalink raw reply [flat|nested] 6+ messages in thread
* load balancing?
@ 2003-06-14 11:54 Jean-Yves Simon
2003-06-14 15:36 ` Joel Newkirk
0 siblings, 1 reply; 6+ messages in thread
From: Jean-Yves Simon @ 2003-06-14 11:54 UTC (permalink / raw)
To: netfilter
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?
Maybe it is this planned for the future (pkttables or don't know what
name it will have)?
--
Jean-Yves Simon <lethalwp@tiscali.be>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: load balancing?
2003-06-14 11:54 load balancing? Jean-Yves Simon
@ 2003-06-14 15:36 ` Joel Newkirk
0 siblings, 0 replies; 6+ messages in thread
From: Joel Newkirk @ 2003-06-14 15:36 UTC (permalink / raw)
To: Jean-Yves Simon; +Cc: netfilter
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: load balancing?
@ 2003-06-15 1:28 Antonio Paulo Salgado Forster
0 siblings, 0 replies; 6+ messages in thread
From: Antonio Paulo Salgado Forster @ 2003-06-15 1:28 UTC (permalink / raw)
To: Joel Newkirk; +Cc: Jean-Yves Simon, netfilter
if you want load balancing, you should look at http://www.keepalived.org
and/or http://www.linuxvirtualserver.org/
--
Forster
Joel Newkirk <netfilter@newkirk.us>@lists.netfilter.org on 06/14/2003
12:36:55 PM
Sent by: netfilter-admin@lists.netfilter.org
To: Jean-Yves Simon <lethalwp@tiscali.be>
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: load balancing?
2003-06-13 4:51 Jean-Yves Simon
@ 2003-06-17 19:00 ` Garcia Ruiz
2003-06-18 13:39 ` Fabrice MARIE
1 sibling, 0 replies; 6+ messages in thread
From: Garcia Ruiz @ 2003-06-17 19:00 UTC (permalink / raw)
To: Jean-Yves Simon, netfilter
Hello,
When nating a dest port to a server, if you tell iptables that there are two
dest servers instead of one, it sends requests to them in a round-robin
fashion (it sends one request -one TCP/IP connection- to the first server,
another to the second, etc. -you can even tell iptables that there are 3, 4
or even more servers).
The problem is that you don't have failure support, so I suggest you to look
for other products if you have time (in any case it is true that with
iptables you only need to set up one rule -easy- and there is no third party
software so problems and performance OK). Be careful also if session track
needed because the next connection that the external browser stablishes with
the http server may be done to the other server.
Regards.
JBGR
----- Original Message -----
From: "Jean-Yves Simon" <lethalwp@tiscali.be>
To: <netfilter@lists.netfilter.org>
Sent: Friday, June 13, 2003 6:51 AM
Subject: load balancing?
> 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?
>
>
> Maybe it is this planned for the future (pkttables or don't know what
> name it will have)?
>
>
>
>
> PS: can you please crosscopy to my email address, since i'm not a member
> of this mailing list.
>
>
>
> --
> Jean-Yves Simon <lethalwp@tiscali.be>
>
>
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: load balancing?
2003-06-13 4:51 Jean-Yves Simon
2003-06-17 19:00 ` Garcia Ruiz
@ 2003-06-18 13:39 ` Fabrice MARIE
1 sibling, 0 replies; 6+ messages in thread
From: Fabrice MARIE @ 2003-06-18 13:39 UTC (permalink / raw)
To: Jean-Yves Simon, netfilter
Hello Jean-Yves,
On Friday 13 June 2003 12:51, 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?
> Maybe it is this planned for the future (pkttables or don't know what
> name it will have)?
> PS: can you please crosscopy to my email address, since i'm not a member
> of this mailing list.
You'll find everything you need here:
http://www.linuxvirtualserver.org/
Have a nice day,
Fabrice.
--
Fabrice MARIE
"Silly hacker, root is for administrators"
-Unknown
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2003-06-18 13:39 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-14 11:54 load balancing? Jean-Yves Simon
2003-06-14 15:36 ` Joel Newkirk
-- strict thread matches above, loose matches on Subject: below --
2003-06-15 1:28 Antonio Paulo Salgado Forster
2003-06-13 4:51 Jean-Yves Simon
2003-06-17 19:00 ` Garcia Ruiz
2003-06-18 13:39 ` Fabrice MARIE
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.