From owner-freebsd-questions Wed Aug 9 17:25:22 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mta02-svc.ntlworld.com (mta02-svc.ntlworld.com [62.253.162.42]) by hub.freebsd.org (Postfix) with ESMTP id 1ECA837B7F0; Wed, 9 Aug 2000 17:25:10 -0700 (PDT) (envelope-from mark@ukug.uk.freebsd.org) Received: from parish.my.domain ([62.253.84.152]) by mta02-svc.ntlworld.com (InterMail vM.4.01.02.27 201-229-119-110) with ESMTP id <20000810012412.IEGP3760.mta02-svc.ntlworld.com@parish.my.domain>; Thu, 10 Aug 2000 01:24:12 +0000 Received: (from mark@localhost) by parish.my.domain (8.9.3/8.9.3) id BAA06880; Thu, 10 Aug 2000 01:25:03 +0100 (BST) (envelope-from mark) Date: Thu, 10 Aug 2000 01:25:02 +0100 From: Mark Ovens To: justin Cc: freebsd-current@freebsd.org, freebsd-questions@freebsd.org Subject: Re: USER PPP Message-ID: <20000810012502.B6678@parish> References: <000801c00260$657d4b80$668df9d0@hernandez> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5i In-Reply-To: <000801c00260$657d4b80$668df9d0@hernandez>; from jwpauler@jwpages.com on Wed, Aug 09, 2000 at 07:17:37PM -0500 Organization: Total lack of Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Aug 09, 2000 at 07:17:37PM -0500, justin wrote: > Hey fellas... > > Allright, here is the situation. I just had a second phone line installed in my house, a POTS (plain old telephone service) line. I have plugged it directly into my FreeBSD 4.1-STABLE workstation/server. I allready have PPP setup and when I execute it, it runs fine. Now then, what I would eventually like to do is have all of my windows based machines connect to this one and use it as a gateway for internet traffic. However, that will come later. > > What I would like to do right now, however, is guarantee that anytime, anyday, barring a problem with my ISP, that my box is connected to the internet. I have it currently setup to dial the internet when it boots and that seems, so far to work ok. My problem you ask? My ISP implements a 5 minute no transfer policy, they disconnect my connection after 5 minutes of 'idling'. What I would like to do is have some kind of check to verify if I am still connected to the internet and if not, execute it. I was thinking some type of script running from crontab every 5 minutes. If I am not connected, then automatically reconnect to the internet. > > Now there is another possible solution I cannot find an answer to. Is there a BSD option to 'keep-alive' the connection so I do not time out? I would prefer not to leave an X session opening refreshing CNN every five minutes :P > Firstly, please set your mailer to wrap lines at ~70 chars please. Add `` set reconnect'' to /etc/ppp/ppp.conf. From the manpage: set reconnect timeout ntries This command tells ppp to re-establish the connection ntries times on loss of carrier with a pause of timeout seconds before each try.For example, > Your help and/or scripts are welcome :) > > Justin W. Pauler > JWPages Web Development > jwpauler@jwpages.com > > -- 4.4 - The number of the Beastie ________________________________________________________________ 51.44°N FreeBSD - The Power To Serve http://www.freebsd.org 2.057°W My Webpage http://ukug.uk.freebsd.org/~mark mailto:marko@freebsd.org http://www.radan.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message