From owner-freebsd-questions Tue Sep 11 10:46: 8 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail.the-i-pa.com (mail.the-i-pa.com [151.201.71.132]) by hub.freebsd.org (Postfix) with SMTP id 65B3E37B409 for ; Tue, 11 Sep 2001 10:46:05 -0700 (PDT) Received: (qmail 85867 invoked from network); 11 Sep 2001 17:55:50 -0000 Received: from unknown (HELO sqltest) (151.201.71.153) by mail.the-i-pa.com with SMTP; 11 Sep 2001 17:55:50 -0000 Content-Type: text/plain; charset="iso-8859-1" From: Bill Moran To: rene@xs4all.nl, questions@freebsd.org Subject: Re: dual-setup modem + ADSL? Date: Tue, 11 Sep 2001 17:39:43 +0000 X-Mailer: KMail [version 1.2] References: <20010911140408.D28231@xs4all.nl> In-Reply-To: <20010911140408.D28231@xs4all.nl> MIME-Version: 1.0 Message-Id: <01091117394301.10054@sqltest> Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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