Yeah, using the DNAT target, connections can be routed in a round-robin
system. Its at pretty basic way to do things and I think iptables might
have more advanced support for this kind of stuff, its detailed in the
NAT-HOWTO. Something like this would suffice:
iptables -A PREROUTING -t nat -d 192.168.1.1 -j DNAT --to
192.168.1.1-192.168.1.10
That would route all connections to 192.168.1.1 to the machines
192.168.1.1 through to 192.168.1.10.
On Mon, Feb 19, 2001 at 01:09:33PM +0000, Dave Airlie wrote:
>> I think iptables can do this .. (kernel firewall stuff in 2.4)
>> someone else mentioned this a while back I think ...
>> Dave.
>> On Mon, 19 Feb 2001, Adrian Flynn wrote:
>> > Hi all
> >
> > Has anybody come across any extensions to rinetd (the TCP redirector) which
> > allows round-robin or other type of load balancing? or are there any other
> > packages which might do this? I have come across a few load balancers but
> > they appear to work with the HTTP protocol only. My data stream is in
> > FastCGI format, and I want to spread the load over several servers.
> >
> > Thanks in advance for any help
> >
> > Adrian Flynn
> > World Travel Centre, Dublin
> > ---
> > Outgoing mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.231 / Virus Database: 112 - Release Date: 12/02/2001
> >
> >
> >
> >
>> --
> David Airlie, Software Engineer
>http://www.skynet.ie/~airlied / airlied at skynet.ie> pam_smb / Linux DecStation / Linux VAX / ILUG person
>>>> --
> Irish Linux Users' Group: ilug at linux.ie>http://www.linux.ie/mailman/listinfo/ilug for (un)subscription information.
> List maintainer: listmaster at linux.ie
--
Martin
--
Bother, said Kes, as she field dressed Cthulhu of Borg.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!