From owner-freebsd-questions@FreeBSD.ORG Wed Jun 17 18:12:07 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3FD04106564A for ; Wed, 17 Jun 2009 18:12:07 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id 3D7B38FC08 for ; Wed, 17 Jun 2009 18:12:05 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.14.3/8.14.3) with ESMTP id n5HIBw1Z035998; Wed, 17 Jun 2009 20:11:58 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.3/8.14.3/Submit) with ESMTP id n5HIBwn2035995; Wed, 17 Jun 2009 20:11:58 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Wed, 17 Jun 2009 20:11:58 +0200 (CEST) From: Wojciech Puchar To: "Raul I. Becette" In-Reply-To: <4A39254F.6000603@unp.edu.ar> Message-ID: References: <4A39254F.6000603@unp.edu.ar> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: FreeBSD Users Subject: Re: Gateway load balance X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Jun 2009 18:12:07 -0000 > > I am a long time Linux user (desktop and server) and started with FreeBSD a > year ago. > Thanks to the book Absolute FreeBSD 2nd Edition I learned a lot about the OS > and how to configure different services I used in Linux (Slackware). very rare case today - someone that read books FIRST :))) > > I had a proxy server (Squid + Dansguardian) under Slackware on the LAN which, > via 'ip route' I make it use 3 gateways connected each one to an ADSL line > and balance the requests. > Unfortunately my server crashed and I took the oportunity to install a new > one under FreeBSD 7.0-RELEASE. Squid and Dansguardian are working fine. My > problem is that I don't know how to make the server use the other 2 gateways > I have left and balance the requests on all ADSL lines. use ipfw and fwd command. for example with output section add 10000 fwd gw1_IP from DSL1_subnet to any via gw1_ethernet add 10001 fwd gw2_IP from DSL2_subnet to any via gw2_ethernet add 10002 fwd gw3_IP from DSL3_subnet to any via gw3_ethernet please do treat above as an example of course. Of course use right squid commands so it will select right source IP based on the rules you want, but as you already did id under linux i assume you have this practiced already. i had 5+2 Polish Telecom links connected to one server - worked fine.