From owner-freebsd-isp Thu May 16 08:46:12 1996 Return-Path: owner-isp Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id IAA13096 for isp-outgoing; Thu, 16 May 1996 08:46:12 -0700 (PDT) Received: from xs1.simplex.nl (xs1.simplex.NL [193.78.46.10]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id IAA13088 for ; Thu, 16 May 1996 08:46:06 -0700 (PDT) X-Organisation-1: Simplex Networking Amsterdam X (Inter)Network X-Organisation-2: Kruislaan 419-38a 1098 VA Amsterdam X Solutions & X-Organisation-3: tel:+31(20)-6932433 fax:+31(20)-6685486 X Access Provider Received: (from rob@localhost) by xs1.simplex.nl (8.7.5/8.7.3-RS) id RAA16776; Thu, 16 May 1996 17:46:08 +0200 (MET DST) Date: Thu, 16 May 1996 17:46:08 +0200 (MET DST) From: Rob Simons Message-Id: <199605161546.RAA16776@xs1.simplex.nl> To: root@edmweb.com Subject: Re: Logging pppd connect & disconnect Cc: isp@freebsd.org 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. Funny setup, but it limits the possibilities for dialup lines a bit .. Anyways, can't you use /etc/ppp/ip-up and /etc/ppp/ip-down for it ? #!/bin/sh # # interface tty speed localip remoteip echo `date`: machine $5 on tty $2 >> /etc/ppp/ppp-log Or whatever. I suppose that this is quite useless when you're using dynamic ip assignment, and want the 'user' name from the pap-secrets file. Maybe it's easier to hack in the 'user' name as an argument to ip-up than completely hack in a log function in pppd .. - Rob. /*--------------------------------------------------------------*\ /* Rob Simons | rob@simplex.nl *\ /* ------------ | ------------- | -------- | ------- *\ /* Novell Netware System Operator | UNIX system operator *\ /*--------------------------------------------------------------*\