From owner-freebsd-questions@FreeBSD.ORG Wed Jun 17 18:14: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 7D1E31065670 for ; Wed, 17 Jun 2009 18:14: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 D9D3F8FC0C for ; Wed, 17 Jun 2009 18:14: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 n5HIDxJZ036011; Wed, 17 Jun 2009 20:13:59 +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 n5HIDxFA036008; Wed, 17 Jun 2009 20:13:59 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Wed, 17 Jun 2009 20:13:59 +0200 (CEST) From: Wojciech Puchar To: Gary Gatten In-Reply-To: <70C0964126D66F458E688618E1CD008A0793EFEE@WADPEXV0.waddell.com> Message-ID: References: <70C0964126D66F458E688618E1CD008A0793EFEE@WADPEXV0.waddell.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="1626729238-13365985-1245262439=:35972" Cc: freebsd-questions@freebsd.org, raulbecette@unp.edu.ar 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:14:08 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --1626729238-13365985-1245262439=:35972 Content-Type: TEXT/PLAIN; charset=utf-8; format=flowed Content-Transfer-Encoding: 8BIT > Adding 2 more default routes with same weight to each dsl line won't work? No, because you have to route things beginning from connection 1 subnet through connection 1, connection 2 subnet through connection 2 etc. Your idea will result in routing all outgoing traffic randomly through 3 lines. At least with polish telecom it will not work. If you have connection with say 12.34.56.72/29 subnet, you have to send packets from that subnet. And that's proper behaviour, as it blocks spoofing. > > ----- Original Message ----- > From: owner-freebsd-questions@freebsd.org > To: FreeBSD Users > Sent: Wed Jun 17 12:18:07 2009 > Subject: Gateway load balance > > 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 > _______________________________________________ > 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" > > > > > > >
>
> "This email is intended to be reviewed by only the intended recipient > and may contain information that is privileged and/or confidential. > If you are not the intended recipient, you are hereby notified that > any review, use, dissemination, disclosure or copying of this email > and its attachments, if any, is strictly prohibited. If you have > received this email in error, please immediately notify the sender by > return email and delete this email from your system." >
--1626729238-13365985-1245262439=:35972--