Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Sep 2001 17:39:43 +0000
From:      Bill Moran <wmoran@iowna.com>
To:        rene@xs4all.nl, questions@freebsd.org
Subject:   Re: dual-setup modem + ADSL?
Message-ID:  <01091117394301.10054@sqltest>
In-Reply-To: <20010911140408.D28231@xs4all.nl>
References:  <20010911140408.D28231@xs4all.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday 11 September 2001 12:04, rene@xs4all.nl wrote:
> Hi. I'm looking for strategies on how to implement a system that can
> dial-in with ADSL (.nl, isp=XS4ALL, method=PPTP + ipf), but can
> *automagically* fallback to modem-dialin, on-demand, with a possiblity for
> scheduling and control of dialing-in..
>
> I'm mainly looking for clues/HOWTOs on how to approach this....

I've never seen a procedure or HOWTO on this kind of thing, but I've discussed
it with others and come up with a strategy. Keep in mind, that I've yet to actually
TRY it, so I can't be 100% sure it would work.

The basic idea is to have a regular cron job that pings the remote gateway (through
the ADSL) If the ping is successful,the script just exits.
However, if the ping fails, the assumption is that the ADSL is down, and the script
then starts up ppp, reconfigures interfaces and routes and does anything else necessary
to get the connection working over the phone line. It also emails the administrator to
alert him that the system is now in fallback mode.

We had decided that (if we did this) returning the usage to the ADSL line would simply
be done manually, by rebooting the computer and allowing the default settings to
reassert themselves. It wouldn't be to hard to make this step fairly automatic as well.

Depending on how much down time you can tolerate, you simply have the script
run from cron every X number of minutes.

-Bill

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?01091117394301.10054>