how to log Disconnects/Stop (Acct-Status-Type)
Hello Everyone, We recently moved from Merit Radius to Freeradius (1.0.4). Everything works great however we want to log Stop/Alive packets (the Acct-Status-Type request) to the radius.log as we did before. Right now this information is only logged to the detail file. With Merit Radius we were able to see when a client disconnected in the regular log file and with Freeradius we only see the Auth Login OK messages but no disconnects. Is there an easy way to log the Acct-Status-Type to the radius.log file also? Much appreciated, Adrian
Adrian wrote:
We recently moved from Merit Radius to Freeradius (1.0.4).
It's nice to move away from Merit (which has been dead for years), but why 1.0.4? Version 1.1.3 has been out for a while. I *strongly* recommend using 1.1.3.
Is there an easy way to log the Acct-Status-Type to the radius.log file also?
Add some code to src/main/acct.c. It's probably only 3-4 lines. But yes, the server doesn't do this by default. Alan DeKok. -- http://deployingradius.com - The web site of the book http://deployingradius.com/blog/ - The blog
On Mon 18 Dec 2006 18:56, Adrian wrote:
Hello Everyone,
We recently moved from Merit Radius to Freeradius (1.0.4). Everything works great however we want to log Stop/Alive packets (the Acct-Status-Type request) to the radius.log as we did before. Right now this information is only logged to the detail file.
With Merit Radius we were able to see when a client disconnected in the regular log file and with Freeradius we only see the Auth Login OK messages but no disconnects.
Is there an easy way to log the Acct-Status-Type to the radius.log file also?
We wrote a module to do this a couple of months ago, but due to other pressures I haven't had time to fully test it. (Its not yet in production on our servers). I have commited it to CVS HEAD (its called rlm_acctlog) but it could easily be used with 1.1.x Cheers -- Peter Nixon http://www.peternixon.net/ PGP Key: http://www.peternixon.net/public.asc
Hello Peter, I'm not very familiar with CVS. Can I grab the module from some ftp site? I tried ftp.freeradius.org however I can't find it anywhere there. :( Do I have to re-compile freeradius with this module or can I add it to the radius.conf file and I will be ready to go? Many Thanks Adrian -----Original Message----- From: Peter Nixon [mailto:listuser@peternixon.net] Sent: Monday, December 18, 2006 12:24 To: adrian@dsl4u.ca; FreeRadius users mailing list Subject: Re: how to log Disconnects/Stop (Acct-Status-Type) On Mon 18 Dec 2006 18:56, Adrian wrote:
Hello Everyone,
We recently moved from Merit Radius to Freeradius (1.0.4). Everything works great however we want to log Stop/Alive packets (the Acct-Status-Type request) to the radius.log as we did before. Right now this information is only logged to the detail file.
With Merit Radius we were able to see when a client disconnected in the regular log file and with Freeradius we only see the Auth Login OK messages but no disconnects.
Is there an easy way to log the Acct-Status-Type to the radius.log file also?
We wrote a module to do this a couple of months ago, but due to other pressures I haven't had time to fully test it. (Its not yet in production on our servers). I have commited it to CVS HEAD (its called rlm_acctlog) but it could easily be used with 1.1.x Cheers -- Peter Nixon http://www.peternixon.net/ PGP Key: http://www.peternixon.net/public.asc
On Thu 21 Dec 2006 17:58, Adrian wrote:
Hello Peter,
I'm not very familiar with CVS. Can I grab the module from some ftp site? I tried ftp.freeradius.org however I can't find it anywhere there. :(
Do I have to re-compile freeradius with this module or can I add it to the radius.conf file and I will be ready to go?
It needs to be compiled in, and is only available in the CVS version at present. Hopefully we will release 2.0 in the next few months which should include it. If you wish you could grab my freeradius-snapshot rpms from: http://software.opensuse.org/download/network:/aaa/ Cheers -- Peter Nixon http://www.peternixon.net/ PGP Key: http://www.peternixon.net/public.asc
participants (3)
-
Adrian -
Alan DeKok -
Peter Nixon