From owner-freebsd-isp Wed May 15 21:55:02 1996 Return-Path: owner-isp Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id VAA23508 for isp-outgoing; Wed, 15 May 1996 21:55:02 -0700 (PDT) Received: from bitbucket.edmweb.com (bitbucket.edmweb.com [204.244.190.9]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id VAA23495 for ; Wed, 15 May 1996 21:54:58 -0700 (PDT) Received: (from root@localhost) by bitbucket.edmweb.com (8.6.12/8.6.12) id VAA00754; Wed, 15 May 1996 21:54:17 -0700 Date: Wed, 15 May 1996 21:54:12 -0700 (PDT) From: Steve Reid To: Nate Williams cc: isp@freebsd.org Subject: Re: Logging pppd connect & disconnect In-Reply-To: <199605160420.WAA21638@rocky.sri.MT.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-isp@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > Is there any way to log when users connect and disconnect with pppd? > > Sure, it's a piece of cake. How do your users startup PPP? On my box > they run a little shell script which is customized for each system, so > it would be trivial to have it append start/stop entries to a file. Um, I'm not set up like that... The users don't log in like you'd expect, they don't even get a login prompt. They go straight into pppd. All authentication is done with PAP. It's done with a line in /etc/ttys: ttyd1 "/usr/sbin/pppd -detach 115200" unknown on secure This makes the winsock scripts extremely simple, but it doesn't leave much opertunity for customized logging. This is well-explained at http://www.ssimicro.com/~jeremyc/ppp.html. I knew this sort of setup (right into pppd, no login prompt) was possible, but I couldn't get it working until I read that web page. If necessary, I'll hack pppd to log connects and disconnects. But that's something I'd rather avoid if possible, as I have a hard time trying to grok other people's code. ===================================================================== | Steve Reid - SysAdmin & Pres, EDM Web (http://www.edmweb.com/) | | Email: steve@edmweb.com Home Page: http://www.edmweb.com/steve/ | | PGP (2048/9F317269) Fingerprint: 11C89D1CD67287E68C09EC52443F8830 | | -- Disclaimer: JMHO, YMMV, TANSTAAFL, IANAL. -- | ===================================================================:)