From owner-freebsd-questions Fri Mar 22 6:13:23 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mail.happcontrols.com (mail.happcontrols.com [12.15.19.237]) by hub.freebsd.org (Postfix) with ESMTP id 5E1CE37B41B for ; Fri, 22 Mar 2002 06:13:20 -0800 (PST) Received: from CONDOR.happcontrols.com (sniper.happcontrols.com [12.15.19.193]) by mail.happcontrols.com (8.12.1/8.12.1) with ESMTP id g2MEACJm002172; Fri, 22 Mar 2002 08:10:12 -0600 (CST) Message-Id: <5.1.0.14.0.20020322075153.02ce8b60@mail.happcontrols.com> X-Sender: ben@mail.happcontrols.com X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Fri, 22 Mar 2002 08:02:11 -0600 To: Joel Dinel , freebsd-questions@FreeBSD.ORG From: Ben Kadish Subject: Re: Basic load balancing with IPFW In-Reply-To: <20020322084026.A21439@sunder.touchtunes.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed 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 I'm not sure about doing this with ipfw, but perhaps you should check out pen in the ports collection. It's a TCP proxy that listens on a given port and load balances based on number of connections to each of the backend servers. If you're using it for HTTP, it's nice because it will remember which backend machine a client was last on, and try to send them to the same machine (good for preserving context). The algorithm is also smart enough to not bother with dead backend servers. Hope that helps. Ben To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message