From owner-freebsd-questions@FreeBSD.ORG Wed Jun 17 17:39:23 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 776491065672 for ; Wed, 17 Jun 2009 17:39:23 +0000 (UTC) (envelope-from raulbecette@unp.edu.ar) Received: from unpata.unp.edu.ar (unpata.unp.edu.ar [170.210.88.3]) by mx1.freebsd.org (Postfix) with ESMTP id 23BFA8FC12 for ; Wed, 17 Jun 2009 17:39:23 +0000 (UTC) (envelope-from raulbecette@unp.edu.ar) Received: from localhost (localhost [127.0.0.1]) by unpata.unp.edu.ar (Postfix) with ESMTP id 024F064666 for ; Wed, 17 Jun 2009 14:19:09 -0300 (ART) X-Virus-Scanned: amavisd-new at unp.edu.ar Received: from unpata.unp.edu.ar ([127.0.0.1]) by localhost (unpata.unp.edu.ar [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id B0MYfmY3Vxyu for ; Wed, 17 Jun 2009 14:19:02 -0300 (ART) Received: from [192.168.10.3] (unknown [170.210.88.11]) by unpata.unp.edu.ar (Postfix) with ESMTP id 9335F645E2 for ; Wed, 17 Jun 2009 14:19:02 -0300 (ART) Message-ID: <4A39254F.6000603@unp.edu.ar> Date: Wed, 17 Jun 2009 14:18:07 -0300 From: "Raul I. Becette" User-Agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103) MIME-Version: 1.0 To: FreeBSD Users Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Subject: 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 17:39:23 -0000 Hi all First time posting. 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). My post is regarding something I couldn't find information on how to implement it. Here's the situation: 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. 192.168.10.9/16 proxy 192.168.10.2/16 1st gateway (1 NIC to LAN - 2 NIC to ADSL modem) 192.168.30.100/16 2nd gateway 192.168.30.1/16 3rd gateway I found it could be done with PF (also read most of The Book of PF) but I am quite lost about how to do it. Any information would be greatly appreciated. Thanks in advance Raśl I. Becette