Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Jan 2001 21:14:32 +0100
From:      Cliff Sarginson <cliff@raggedclown.net>
To:        Christoph Sold <christoph.sold@server.i-clue.de>
Cc:        G D McKee <freebsd@gdmckee.com>, freebsd-questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: PPP
Message-ID:  <20010117211432.C898@raggedclown.net>
In-Reply-To: <3A65DFB9.C46DA6B5@i-clue.de>; from christoph.sold@server.i-clue.de on Wed, Jan 17, 2001 at 07:08:57PM %2B0100
References:  <001d01c07fbe$1d8bf840$0500a8c0@gdmckee.local> <3A65DFB9.C46DA6B5@i-clue.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <n> sets the stay alive period to <n> seconds.
> 
> The line is dropped after there is NO traffic for <n> 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




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