Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 May 2004 14:31:27 -0400
From:      Paul Chvostek <paul+fbsd@it.ca>
To:        Chuck Swiger <cswiger@mac.com>
Cc:        questions@freebsd.org
Subject:   Re: 2 ISP on one FreeBSD router
Message-ID:  <20040525183127.GA14325@it.ca>
In-Reply-To: <40B377D4.5050303@mac.com>
References:  <Pine.BSF.4.58.0405251144150.83141@discordia.pl> <40B377D4.5050303@mac.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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                                             <paul@it.ca>
  Operations / Abuse / Whatever
  it.canada, hosting and development                   http://www.it.ca/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040525183127.GA14325>