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

Re: Load Balance with iptables



Hi Pablo!

On Thursday 08 September 2005 18:41, paa-listas@argentina.com wrote:
> Hello,
>
> I am using this line as a squid load balancer, but it only redirects
> clients to the first IP and never to the second??
>
> iptables -t nat -A PREROUTING -p tcp -s 10.0.0.0/8 --dport 80 -j DNAT
> --to-dest 101.100.100.9:3128 --to-dest 101.100.100.10:3128

I'm using this:

$IPT -t nat -A PREROUTING -p tcp -i $ext --destination-port 80 -j DNAT --to 
192.168.112.240-192.168.112.250
 $IPT -A INPUT -p tcp -i $ext --destination-port 80 -j ACCEPT

Greetings, Dominik

-- 
This mail is digitally signed and/or encrypted.
Diese Mail ist digital signiert und/oder verschluesselt.
KeyID: 0x2F0F4A3B
Die Key-ID lautet: 0x2F0F4A3B

What's this switch for anyways? 

Attachment: pgpq_LJZl58Ii.pgp
Description: PGP signature


Reply to: