From owner-freebsd-questions Wed Jun 9 19:53:28 1999 Delivered-To: freebsd-questions@freebsd.org Received: from cc942873-a.ewndsr1.nj.home.com (cc942873-a.ewndsr1.nj.home.com [24.2.89.207]) by hub.freebsd.org (Postfix) with ESMTP id E4C6014BF6 for ; Wed, 9 Jun 1999 19:53:26 -0700 (PDT) (envelope-from cjc@cc942873-a.ewndsr1.nj.home.com) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.9.3/8.8.8) id WAA08656; Wed, 9 Jun 1999 22:54:43 -0400 (EDT) (envelope-from cjc) From: "Crist J. Clark" Message-Id: <199906100254.WAA08656@cc942873-a.ewndsr1.nj.home.com> Subject: Re: Firewall With 2 Gateways\ In-Reply-To: <000f01beb2df$7027cbe0$1e01a8c0@altronics.com> from Adam Breaux at "Jun 9, 99 09:20:33 pm" To: adam@idomains.net (Adam Breaux) Date: Wed, 9 Jun 1999 22:54:43 -0400 (EDT) Cc: freebsd-questions@FreeBSD.ORG Reply-To: cjclark@home.com X-Mailer: ELM [version 2.4ME+ PL40 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Adam Breaux wrote, > I need to setup a machine with the ability to switch between 2 different gateways automatically. > > The system would need 3 nics ( I assume ). > > LAN Interface: > ip: 192.168.1.1 > nm: 255.255.255.0 > > Cable Interface: > ip: 24.x.x.x > nm: 255.255.255.0 > gw: 24.x.x.254 @Home service, per chance? > Frame Interface: > ip: 205.x.x.x > nm: 255.255.255.224 > gw: 205.x.x.161 > > Some sort of script that pings a remote host...cable provider's router maybe... > > When it loses connect, change default gateway to frame. > When cable comes back up, change default gateway to cable. > > Any ideas on this? I have a pretty good idea of what is needed but a good how-to is > certainly in order. Thanks in advance. This kind of job is one of the things router daemons were created for. Have a look at the documentation for 'routed' or 'gated' for a start. Doing this as a script is not recommended when there are powerful tools like that built for jobs just like this. -- Crist J. Clark cjclark@home.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message