From owner-freebsd-questions@FreeBSD.ORG Wed Dec 17 09:38:47 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5ED181065673 for ; Wed, 17 Dec 2008 09:38:47 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from mail.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 269988FC08 for ; Wed, 17 Dec 2008 09:38:47 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from localhost (mail.rachie.is-a-geek.net [192.168.2.101]) by mail.rachie.is-a-geek.net (Postfix) with ESMTP id 2384CAFC201; Wed, 17 Dec 2008 00:38:46 -0900 (AKST) From: Mel To: freebsd-questions@freebsd.org, Polytropon Date: Wed, 17 Dec 2008 10:38:44 +0100 User-Agent: KMail/1.9.7 References: <20081215150931.dbc8ea64.freebsd@edvax.de> In-Reply-To: <20081215150931.dbc8ea64.freebsd@edvax.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200812171038.44902.fbsd.questions@rachie.is-a-geek.net> Cc: Subject: Re: Uptime logging with (maybe) ppp's log functionality X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Dec 2008 09:38:47 -0000 On Monday 15 December 2008 15:09:31 Polytropon wrote: > Hi! > > I'm going to setup a system with a dial-up modem for sporadic > Internet access; a provider that charges per second online time > is used. Is there a way ppp (which is used for dialing) can log > the online time (or at least the connection's start and stop time) > so the costs can be calculated? > > Furthermore, are there already tools that, for example, would use > the daily, weekly or monthly periodic jobs to inform via mail about > how much online time was spent? Or, in addition, how much money > this would mean (built-in calculation)? If it doesn't already exist, > I'm sure I'll code it. :-) Radius was created for this (accounting and authentication based on=20 accounting) and ppp supports it. Might as well use it ;) =46rom ppp(8): Supports RADIUS (rfc 2138 & 2548) authentication. An extension to PAP and CHAP, Remote Access Dial In User Service allows authentication inf= or- mation to be stored in a central or distributed database along with va= ri- ous per-user framed connection characteristics. If libradius(3) is available at compile time, ppp will use it to make RADIUS requests when configured to do so. =2D-=20 Mel Problem with today's modular software: they start with the modules and never get to the software part.