From owner-freebsd-questions@FreeBSD.ORG Tue May 25 11:32:08 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9372816A4CE for ; Tue, 25 May 2004 11:32:08 -0700 (PDT) Received: from haggis.it.ca (haggis.it.ca [216.126.86.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3AC9D43D1F for ; Tue, 25 May 2004 11:32:08 -0700 (PDT) (envelope-from paul@haggis.it.ca) Received: from haggis.it.ca (paul@localhost [127.0.0.1]) by haggis.it.ca (8.12.11/8.12.11) with ESMTP id i4PIVRQT017458; Tue, 25 May 2004 14:31:27 -0400 (EDT) (envelope-from paul@haggis.it.ca) Received: (from paul@localhost) by haggis.it.ca (8.12.11/8.12.6/Submit) id i4PIVRR6017457; Tue, 25 May 2004 14:31:27 -0400 (EDT) (envelope-from paul) Date: Tue, 25 May 2004 14:31:27 -0400 From: Paul Chvostek To: Chuck Swiger Message-ID: <20040525183127.GA14325@it.ca> References: <40B377D4.5050303@mac.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <40B377D4.5050303@mac.com> User-Agent: Mutt/1.4.2.1i cc: Piotr Gnyp cc: questions@freebsd.org Subject: Re: 2 ISP on one FreeBSD router X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 May 2004 18:32:08 -0000 On Tue, May 25, 2004 at 12:44:04PM -0400, Chuck Swiger wrote: > > Piotr Gnyp wrote: > >My question is: > >Is there a way to configure FreeBSD, so the NATed workstations will use > >two ISP at once and in case of one ISP failure the whole traffic will be > >put on one connection? > > Sure, that's a standard multihoming scenario. > Get an AS number (www.arin.net) and set up BGP peering with your ISPs. That's a good answer, but not for this particular question. Piotr, if your FreeBSD router has an Ethernet interface bound to the IP assigned by each ISP, then the easiest way to transfer your NAT from one ISP to the other is probably simply to kill the existing natd and re-run it with a different -n option. This *will* have the effect of taking down your NAT for the transition period -- this is unavoidable. You could achieve the transition with a simple shell script that would ping the "active" connection, and if it fails, `killall natd`, wait for the process to die, and re-launch with the different command line opts. The exact mechanics are left as an exercise for the reader. Or the consultant he hires. ;) p -- Paul Chvostek Operations / Abuse / Whatever it.canada, hosting and development http://www.it.ca/