From owner-freebsd-hackers Mon Feb 14 7:44:23 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from ppp142080.asahi-net.or.jp (ppp142080.asahi-net.or.jp [202.213.142.80]) by builder.freebsd.org (Postfix) with ESMTP id 0084E3ECB; Mon, 14 Feb 2000 07:44:03 -0800 (PST) Received: from localhost (localhost.tf.or.jp [127.0.0.1]) by galois.tf.or.jp (8.9.3/3.7W-Teddy-99050304) with ESMTP id AAA12908; Tue, 15 Feb 2000 00:40:54 +0900 (JST) To: mauzi@faber.poli.hu Cc: kris@freebsd.org, hackers@freebsd.org Subject: Re: accounting, ppp From: Tetsuro Teddy FURUYA (=?iso-2022-jp?B?GyRCOEVDKxsoQiAbJEJFL086GyhC?=) In-Reply-To: Your message of "Mon, 14 Feb 2000 10:37:31 +0100 (CET)" References: X-Mailer: Mew version 1.93 on Emacs 19.28 / Mule 2.3 (SUETSUMUHANA) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20000215004054I.tfuruya@galois.tf.or.jp> Date: Tue, 15 Feb 2000 00:40:54 +0900 X-Dispatcher: imput version 980905(IM100) Lines: 34 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, From: Egervary Gergely Subject: Re: accounting, ppp Date: Mon, 14 Feb 2000 10:37:31 +0100 (CET) mauzi> > > I'm running a PPP dialup server. (mgetty-autoppp) Is there any way to do mauzi> > > login accounting (like solaris' PAM modules, or linux pam_limits.so) mauzi> > mauzi> > A FreeBSD PAM module? ;) Did you see, `man 1 last` ? Here is a sample output list of last. tf051005.tf.or.jp is my ppp dial-up client. dhcp100.tf.or.jp is my dhcp client. tfuruya ttyp1 chba1132.ppp.inf Fri Dec 31 23:50 - 00:27 (00:36) dialout cuaa0 Fri Dec 31 23:45 - 00:18 (00:33) dialout cuaa0 Fri Dec 31 22:50 - 22:55 (00:05) tfuruya ftp tf051005.tf.or.j Fri Dec 31 21:07 - 21:22 (00:15) tfuruya ttyp1 tf051005.tf.or.j Fri Dec 31 21:05 - 21:12 (00:07) tfuruya cuaa0 Fri Dec 31 21:02 - 21:13 (00:10) dialout cuaa0 Fri Feb 11 16:20 - 16:24 (00:04) tfuruya ttyp1 dhcp100.tf.or.jp Fri Feb 11 13:02 - 15:19 (02:17) tfuruya ttyp2 localhost.tf.or. Fri Feb 11 12:55 - 12:55 (00:00) last uses /var/log/wtmp. Or, you cat get ppp information from /var/log/ppp.log directly. And from /var/db/dhcpd.leases for dhcp. ------------------------------------------------ Tetsuro Teddy Furuya To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message