From owner-freebsd-isp Fri Feb 2 20:24:24 1996 Return-Path: owner-isp Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id UAA18928 for isp-outgoing; Fri, 2 Feb 1996 20:24:24 -0800 (PST) Received: from phoenix.isn.net (ctassell@NS1.ISN.NET [199.45.127.1]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id UAA18922 for ; Fri, 2 Feb 1996 20:24:20 -0800 (PST) Received: (from ctassell@localhost) by phoenix.isn.net (8.6.9/8.6.9) id AAA20244; Sat, 3 Feb 1996 00:24:00 -0400 Date: Sat, 3 Feb 1996 00:23:59 -0400 (AST) From: Charles Tassell To: Tushar Patel cc: freebsd-isp@FreeBSD.org, tpatel@ecpi.com Subject: Re: Disconnect when idle time is > 20 min? In-Reply-To: <199602021622.QAA06721@ecpi.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-isp@FreeBSD.org Precedence: bulk This is just a quick hack off the top of my head, but you could write a perl script which uses's the who command to list users, then parses the data. If the idle time is greater than 20 minutes (or whatever) then the script kills the process. The script would be run by root as a cron job every 20 minutes or so. I'm no perl wizard, but it doesn't sound to complex a script to write if you know any perl. On Fri, 2 Feb 1996, Tushar Patel wrote: > > I am looking for some insight for tracking the activity on the > dial in ports (ttyd?). I wan't to see if the particular dial > in port has no activity for more then 15 min then I wan't to > disconnect user on that port. Is there any options you can > specify in FreeBSD which will allow you to do this? > > This problem is solved when user log's in with the PPP connection. > There is an option for setting timeout in the "ppp.conf" file to > do this. > > Please send your replay to > tpatel@ecpi.com > > Thanks for taking time. > > Tushar >