From owner-freebsd-questions Tue Jun 18 7:56:41 2002 Delivered-To: freebsd-questions@freebsd.org Received: from infinity.aesredfish.net (ns1.aesredfish.net [65.168.0.12]) by hub.freebsd.org (Postfix) with ESMTP id 7F33C37B410 for ; Tue, 18 Jun 2002 07:56:38 -0700 (PDT) Received: from potentialtech.com (mhope-dhcp-65-168-1-181.dashfast.com [65.168.1.181]) by infinity.aesredfish.net (8.11.6/8.11.0) with ESMTP id g5IEtjr15839; Tue, 18 Jun 2002 10:55:45 -0400 Message-ID: <3D0F4B58.4030009@potentialtech.com> Date: Tue, 18 Jun 2002 11:01:44 -0400 From: Bill Moran User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.0rc1) Gecko/20020502 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Randy Smith Cc: Alexander V Zubchenko , "freebsd-questions@freebsd.org" Subject: Re: IPFW as load balancer References: <20020618082248.G6594-100000@stalker.amigo.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 Randy Smith wrote: >>>Is it possible to use IPFW to do load balancing? I want to do create a >> >>Yes it is. >> >> >>>trasparent proxy to a cluster of Squid caches. I was thinking of something >>>along the lines of: >>> >>>add prob .33 fwd ,3128 tcp from to any 80 >>>add prob .50 fwd ,3128 tcp from to any 80 >>>add fwd ,3128 tcp from to any 80 >>> >>>Does this make sense or is there a better solution? I doubt this will work, since individual requests can take up more than a single IP packet, the transmission could get broken up and rendered incoherent. Something more plausable would bet to break up your internal traffic by subnets. i.e.: add fwd ,3128 tcp from 192.168.0.0/24 to any 80 add fwd ,3128 tcp from 192.168.1.0/24 to any 80 add fwd ,3128 tcp from 192.168.2.0/24 to any 80 On the one hand, this isn't "dynamic" load-balancing, so a single proxy could easily be overloaded, while another is idle. It is better than simply configuring each client seperatly, though, since you can manually adjust the balancing at the server. -- Bill Moran Potential Technologies http://www.potentialtech.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message