Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Feb 1998 20:06:55 +1100 (EST)
From:      "Daniel O'Callaghan" <danny@panda.hilink.com.au>
To:        Jason McKay <jasonm@barney.webace.com.au>
Cc:        questions@FreeBSD.ORG, isp@FreeBSD.ORG
Subject:   Re: Please help - session limits
Message-ID:  <Pine.BSF.3.91.980209200120.294D-100000@panda.hilink.com.au>
In-Reply-To: <Pine.BSF.3.96.980209150733.3098A-100000@barney.webace.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help

On Mon, 9 Feb 1998, Jason McKay wrote:

> We are running FreeBSD 2.2.2-RELEASE and are about to setup an ISP.  We

Upgrade to 2.2-980208-SNAP or similar.

> want our users to have a limit of 2 hours per day.  Therefore, we need a
> program that will disconnect members of a group after 2 hours and
> leave them off until the next day.

You need to do this in /etc/ppp/ip-up, if you are using PAP 
authentication, or intend to.  A perl script ip-up can take the ppp tty, 
look up the user who is logged in, run some other program (ac(1)??) to 
see if they have been on too long today, and boot them off if so.

A similar perl script can be run from cron to see if any users need to be 
disconnected.

You'll probably need to use pppd from 2.2.5 or later.  

Danny

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.980209200120.294D-100000>