From owner-freebsd-isp Wed May 15 22:23:39 1996 Return-Path: owner-isp Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id WAA25262 for isp-outgoing; Wed, 15 May 1996 22:23:39 -0700 (PDT) Received: from mail.barrnet.net (mail.barrnet.net [131.119.246.7]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id WAA25257 for ; Wed, 15 May 1996 22:23:37 -0700 (PDT) Received: from rocky.sri.MT.net (rocky.sri.MT.net [204.182.243.10]) by mail.barrnet.net (8.7.5/MAIL-RELAY-LEN) with SMTP id WAA02712 for ; Wed, 15 May 1996 22:23:05 -0700 (PDT) Received: (from nate@localhost) by rocky.sri.MT.net (8.6.12/8.6.12) id XAA21763; Wed, 15 May 1996 23:19:14 -0600 Date: Wed, 15 May 1996 23:19:14 -0600 From: Nate Williams Message-Id: <199605160519.XAA21763@rocky.sri.MT.net> To: Steve Reid Cc: Nate Williams , isp@freebsd.org Subject: Re: Logging pppd connect & disconnect In-Reply-To: References: <199605160420.WAA21638@rocky.sri.MT.net> 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. Ugh, I like keeping things 'simple' so I can debug them easier, and provide for greater flexibility. My modems can be used for *any* reason, including PPP accounts. But, I'm a young 'old-timer'. :) > 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. It's *really* not that bad, and the best programmers I know are folks that have learned to gork other people's code. You learn more that way than in writing your own. (It's kind of like learning a musical instrument. You learn alot more and become a more rounded musician when playing with other people than in trying to do everything on your own.) FreeBSD code is generally pretty easy to hack on. Nate