From owner-freebsd-questions@FreeBSD.ORG Thu Jun 18 17:41:11 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 7831A1065674 for ; Thu, 18 Jun 2009 17:41:11 +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 C0DD18FC16 for ; Thu, 18 Jun 2009 17:41:10 +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 98556653FE; Thu, 18 Jun 2009 14:40:36 -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 OqKps5HJ3rWC; Thu, 18 Jun 2009 14:40:31 -0300 (ART) Received: from [192.168.10.3] (unknown [170.210.88.11]) by unpata.unp.edu.ar (Postfix) with ESMTP id 79D596545B; Thu, 18 Jun 2009 14:40:31 -0300 (ART) Message-ID: <4A3A7BDC.1010106@unp.edu.ar> Date: Thu, 18 Jun 2009 14:39:40 -0300 From: "Raul I. Becette" User-Agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103) MIME-Version: 1.0 To: Wojciech Puchar References: <4A39254F.6000603@unp.edu.ar> In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit 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: Thu, 18 Jun 2009 17:41:12 -0000 >> 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 for my scenario I asume gwX_IP the IP address of my dsl gateways. What would be DSLX_subnet and gwX_ethernet? The proxy has only 1 NIC. Just to be sure: gateway_enable="YES" must be set in /rtc.rc.conf and the kernel must be recompiled with ip forwarding capabilities? > > 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. Under Linux I didn't used squid commands to do the balancing. Only defining the 3 gateways with ip route command. Is it possible to do the same with ipfw as you mentioned above? > > i had 5+2 Polish Telecom links connected to one server - worked fine. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > >