Skip to contentSkip to conversation

Balancing Web Traffic

DISCUSSION Miguel Amador 2 participants 2 messages Mar 29, 2005

lore
Share & tools
lore
#0 lore raw

Hi all

I have:

				      ___ WWW1 __
Inet <--> [Iptables/Netfilter Box ---|	         |- BD
				     |___ WWW2 __|

My question is, somebody know anyway to balanced the traffic to the Webservers with iptables ?
I know that if i repeat Nat's rules for different ip's (ip's of web
services) iptables does a primitive balanced... but anybody know other way ?

thank all and sorry for my english
Regards
Miguel Angel Amador L.

#1 lore raw
Quoted 7 lines · Miguel Amador

Hi all

I have:

				      ___ WWW1 __
Inet <--> [Iptables/Netfilter Box ---|	         |- BD
				     |___ WWW2 __|
Quoted 5 lines

My question is, somebody know anyway to balanced the traffic to the Webservers with iptables ?
I know that if i repeat Nat's rules for different ip's (ip's of web
services) iptables does a primitive balanced... but anybody know other way ?

you can do bone-headed round-robin load-balancing with "-j DNAT --to destination $WWW1_IP --to-destination $WWW2_IP"

for intelligent load-balancing, look at:

http://www.linuxvirtualserver.org/

-j

--
"I saw weird stuff in that place last night. Weird, strange, sick,
twisted, eerie, godless, evil stuff. And I want in."
--The Simpsons