From owner-freebsd-questions Tue Jun 18 7:26:26 2002 Delivered-To: freebsd-questions@freebsd.org Received: from smtp1.amigo.net (smtp1.amigo.net [209.94.64.30]) by hub.freebsd.org (Postfix) with ESMTP id 34DFA37B409 for ; Tue, 18 Jun 2002 07:26:21 -0700 (PDT) Received: from stalker.amigo.net (billing.amigo.net [209.94.67.250]) by smtp1.amigo.net (8.11.4/8.11.4) with ESMTP id g5IESQk87873; Tue, 18 Jun 2002 08:28:30 -0600 (MDT) (envelope-from randys@amigo.net) Date: Tue, 18 Jun 2002 08:26:11 -0600 (MDT) From: Randy Smith X-X-Sender: randy@stalker.amigo.net To: Alexander V Zubchenko Cc: "freebsd-questions@freebsd.org" Subject: Re: IPFW as load balancer In-Reply-To: <20020618085310.H12511-100000@server.hermes-comp.zp.ua> Message-ID: <20020618082248.G6594-100000@stalker.amigo.net> 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 On Tue, 18 Jun 2002, Alexander V Zubchenko wrote: > Date: Tue, 18 Jun 2002 08:54:52 +0300 (EEST) > From: Alexander V Zubchenko > To: Randy Smith > Cc: "freebsd-questions@freebsd.org" > Subject: Re: IPFW as load balancer > > Greetings! > > On Mon, 17 Jun 2002, Randy Smith wrote: > > > Hi, > > > > 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? > Mayb 'ipfw add pipe N... && ipfw pipe N config....' may help. Look at > manpage ipfw(8) for details on 'traffic shaping' (as this feature > called in man). Thank you for your reply but I don't see how pipes are going to help here. (I use them to do traffic shaping in other places.) It is my understanding, and ipfw(8) doesn't change it, that pipes cannot send packets to another ip address. Please givev me an example if I'm wrong. -- Randy Smith Amigo.Net Systems Administrator 1-719-589-6100 x 4185 http://www.amigo.net/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message