From owner-freebsd-questions Wed Jan 17 12:30:23 2001 Delivered-To: freebsd-questions@freebsd.org Received: from post.mail.nl.demon.net (post-10.mail.nl.demon.net [194.159.73.20]) by hub.freebsd.org (Postfix) with ESMTP id 53E7E37B707 for ; Wed, 17 Jan 2001 12:29:59 -0800 (PST) Received: from [212.238.77.116] (helo=willow.raggedclown.intra) by post.mail.nl.demon.net with smtp (Exim 3.14 #2) id 14IzDQ-0003uT-00; Wed, 17 Jan 2001 20:29:57 +0000 Received: from buffy.raggedclown.net (btvs.demon.nl [192.168.1.2]) by willow.raggedclown.intra (Postfix) with ESMTP id 9CEED5DA4; Wed, 17 Jan 2001 21:28:48 +0100 (CET) Received: by buffy.raggedclown.net (Postfix on SuSE Linux 7.0 (i386), from userid 500) id 95F4A12C3D; Wed, 17 Jan 2001 21:14:32 +0100 (CET) Date: Wed, 17 Jan 2001 21:14:32 +0100 From: Cliff Sarginson To: Christoph Sold Cc: G D McKee , freebsd-questions Subject: Re: PPP Message-ID: <20010117211432.C898@raggedclown.net> References: <001d01c07fbe$1d8bf840$0500a8c0@gdmckee.local> <3A65DFB9.C46DA6B5@i-clue.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3A65DFB9.C46DA6B5@i-clue.de>; from christoph.sold@server.i-clue.de on Wed, Jan 17, 2001 at 07:08:57PM +0100 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Jan 17, 2001 at 07:08:57PM +0100, Christoph Sold wrote: > > > G D McKee schrieb: > > > > Hi > > > > I have read it somewhere that there is a way if telling ppp (user mode ppp) > > to stay live for a given period of time and the timeout after this. I can't > > remember where I read it and would like to set it up. > > > > For example, the min call charge is 5min, so I might as well be connected > > for this period of time as you get billed for it anyway, and then drop it > > there is, lets say 60sec of inactivity. > > on the ppp command line, or in the configuration file: > > set timeout 0 deactivates the stay alive period, > set timeout sets the stay alive period to seconds. > > The line is dropped after there is NO traffic for seconds. This may > not be what you looked for, depending on your setup. No i think he is looking for a way of limiting the length of connect time, whatever. Not a simple timeout. I dont think PPP has this facility inbuilt. The easiest way is probably to write a script to set off in ppp.linkup that sleeps for the desired time and then hangs PPP up... #!/bin/sh # sleep 300 killall -HUP ppp Or something like that.. Cliff To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message