From owner-freebsd-questions Sun Mar 24 6:25: 9 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mail.XtremeDev.com (xtremedev.com [216.241.38.65]) by hub.freebsd.org (Postfix) with ESMTP id D274137B400 for ; Sun, 24 Mar 2002 06:25:04 -0800 (PST) Received: from xtremedev.com (xtremedev.com [216.241.38.65]) by mail.XtremeDev.com (Postfix) with ESMTP id F3CB170601; Sun, 24 Mar 2002 07:24:58 -0700 (MST) Date: Sun, 24 Mar 2002 07:24:58 -0700 (MST) From: FreeBSD user To: Joel Dinel Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Basic load balancing with IPFW In-Reply-To: <20020322084026.A21439@sunder.touchtunes.com> Message-ID: <20020324071313.J6195-100000@Amber.XtremeDev.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Don't know about ipfw, but ipfilter does basic round-robin port forwarding with ipnat. Example rules would be: rdr xl0 0/0 port 80 -> 192.168.1.10,192.168.1.11 port 80 tcp round-robin rdr xl0 0/0 port 80 -> 192.168.1.12,192.168.1.13 port 80 tcp round-robin This would have all requests coming in to public nic xl0 port 80 redirected first to 192.168.1.10, second connect to .11, third to .12, fourth to .13, and cycle back to .10 and so on for succeeding connections. I don't know if this would help you any, or even if you want to use ipf/ipnat over ipfw versus a 3rd party app from ports/packages. On Fri, 22 Mar 2002, Joel Dinel wrote: > I've been googling and reading man pages all morning, and I can't find > out if I can do some very basic load balancing with IPFW. > > Basically, I have four servers with the exact same config. I want to > equally (or not) distribute traffic across them. Suppose I get 200 > connections, I'd want to be able to distribute them like so : > > Server1 : 50 connections > Server2 : 50 connections > Server3 : 50 connections > Server4 : 50 connections > > Or, > > > Server1 : 80 connections > Server2 : 20 connections > Server3 : 50 connections > Server4 : 50 connections > > And so on. I can't really cluster the machine themselves (actually, I > can't touch them at all). I'm *thinking* that this is done at the > firewall level, since the Linux box that currently does this job does it > with IPChains. Actually, as long as I can 'round robin' or 'ration' my > traffic across those 4 servers from a IPFW gateway, I'll be happy. > > Thanks in advance for any info. > > -- > Joel Dinel > System Administrator > TouchTunes Digital Jukebox, Inc. > GnuPG key : http://lysander.mine.nu/~kint/mykey.asc > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message