Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Jun 1999 22:54:43 -0400 (EDT)
From:      "Crist J. Clark" <cjc@cc942873-a.ewndsr1.nj.home.com>
To:        adam@idomains.net (Adam Breaux)
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Firewall With 2 Gateways\
Message-ID:  <199906100254.WAA08656@cc942873-a.ewndsr1.nj.home.com>
In-Reply-To: <000f01beb2df$7027cbe0$1e01a8c0@altronics.com> from Adam Breaux at "Jun 9, 99 09:20:33 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
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




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