[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ip-{up,down} scripts



Edward Betts writes:
> I would like to see some clever logging facilities. I would like a log
> with a single line for each connection, recording the name of the
> connection, user who connected, the time of connection, the length of the
> call, and the reason for disconnecting (user killed pppd, root killed
> pppd, modem hangup), and the cost.

That might be doable by some clever parsing of the log.

> Maybe include the number of bytes transfered in each direction.

Pppd already logs that.

> I think to be done properly it needs pppd to be hacked about a bit, or
> can it be done in the ip-up/down scripts?

I don't think it needs any pppd hacking.  A similar project is on my todo
list, but it doesn't look like I'll get to it soon.  If you want to take it
on be my guest.  
-- 
John Hasler                This posting is in the public domain.
john@dhh.gt.org            Do with it what you will.
Dancing Horse Hill         Make money from it if you can; I don't mind.
Elmwood, Wisconsin         Do not send email advertisements to this address.


Reply to: