From owner-freebsd-net@FreeBSD.ORG Thu Dec 16 20:56:38 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EA95516A4CE for ; Thu, 16 Dec 2004 20:56:38 +0000 (GMT) Received: from bigass1.bitblock.com (ns1.bitblock.com [66.199.170.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1DC9643D45 for ; Thu, 16 Dec 2004 20:56:38 +0000 (GMT) (envelope-from mitch@bitblock.com) Received: from dc1 ([66.199.170.122]) (AUTH: LOGIN mitch@bitblock.com) by bigass1.bitblock.com with esmtp; Thu, 16 Dec 2004 20:56:31 +0000 X-Abuse-Reports: Visit http://www.bitblock.com/abuse.php X-Abuse-Reports: and submit a copy of the message headers X-Abuse-Reports: or review our policies and procedures X-Abuse-Reports: ID= 41C1F67F.00007B57.bigass1.bitblock.com,dns; dc1 ([66.199.170.122]),AUTH: LOGIN mitch@bitblock.com From: "Mitch (Bitblock)" To: "'Elton Machado'" , freebsd-net@freebsd.org Date: Thu, 16 Dec 2004 12:56:32 -0800 Organization: Bitblock Systems Inc. MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 In-Reply-To: <41C0AB8E.6040805@norteglobal.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.181 Thread-Index: AcTi7HsuTPLoA6qQQAm/0k6j68AvxwAxPr/w Message-ID: Subject: RE: Load Balancing X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Dec 2004 20:56:39 -0000 > NiY wrote: > > >Greetings! I have yet to find a definitive answer on this subject, so > >I was hoping someone would let me know the official way to go about > >this, or if it's even possible. > > > >We have two ADSL services coming into out building. We would like to > >use them both on one network, using a multi-homed FreeBSD box, if > >possible. So the scenario would like this. > > > > > >ADSL1----\ / > -- Host > > Freebsd Load Balancer / NATD ---- Switch -- Host > >ADSL2----/ \ - > -Host > > > >Can it be done? > > I have the same problem, in my case i have this scenario > > > ADSL (Cisco 837) ------ > | ------ OpenBSD Gateway or > FreeBSD -- Switchs -- LAN > CABLE (USR) ------- > > > Problem is... I'm using diferent providers in eachlink, I would like to > to jump from one connection to another when one fails, > in best case, I would like to share traffic between then and in case of > one fail all the traffic goes by only one of then. > > How can you get this thing woring fine? and does it is possible? ;) > > Tia. > > Elton [Mitch says:] Short answer is "Yes". For basic failover, I've used a script which monitors link status and function (by pinging or connecting to a remote host). Failover is accomplished by switching the default route. Using ipfw fwd statements, you can make both links function at the same time, using pf, you can supposedly do some sort of load sharing, but I havne't used pf yet. m/