User Tools

Site Tools


radius

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
radius [2008/09/30 11:39]
kaiab
radius [2011/04/07 18:24]
faltin [Use cases]
Line 1: Line 1:
-This page is a work in progress+====== The Radius Accounting tool ======
  
-====== ​Radius ​======+{{:​tools:​radius.png}} The Radius ​accounting tool is a NAV-tool that collects accounting-data from a [[http://​www.freeradius.org/​|Freeradius-server]] and makes them available to the user through a web-frontend. The goal is to make a more accessible and user-friendly interface to the accounting data instead of having to manually look through logfiles. The frontend is divided into three tabs where you can browse different sets of data from the radius-server.
  
-Radius is a NAV-tool that collects accounting-data from a [[http://​www.freeradius.org/​|Freeradius-server]] and makes them available to the user through a web-frontend. The goal is to make a more accessible and userfriendly interface to the accounting data instead of having to manually look through logfiles. The frontend is divided into three tabs where you can browse different sets of data from the radius-server.+===== Use cases =====
  
 +  * If you have an [[http://​eduroam.org|eduroam]] wireless network all you wireless users will log in based on their radius credentials. The NAV radius accounting tool is useful for searching eduroam users.
 +  * If you use IEEE 802.1X in your wired network and thus requires users to log in to get access, the NAV radius accounting tool can track these users as well.
 ===== Accounting Log ===== ===== Accounting Log =====
  
Line 59: Line 61:
 === radiusd.conf === === radiusd.conf ===
 This is a configuration file that you will find on your Freeradius-server. For details see the INSTALL document in the radius-directory. This is a configuration file that you will find on your Freeradius-server. For details see the INSTALL document in the radius-directory.
 +
 +You will probably want to change <​code>​$INCLUDE ​ ${confdir}/​sql.conf</​code>​ to <​code>​$INCLUDE ​ ${confdir}/​postgresql.conf</​code>​
 +
 +Add a line that says <​code>​sql</​code>​ last in the ''​accounting{}''​ section.
 +
 +This small script needs to be defined in the ''​main{}''​ section and called from the ''​preacct{}''​ section before the ''​acct_unique''​ script. See examples in the file for where to put it.
 +<​code>​
 +attr_rewrite modify_acctsessionid {
 +            attribute = Acct-Session-Id
 +            searchin = packet
 +            searchfor = "​[0-3][0-9]\/​[0-3][0-9]\/​[0-9]{2}\ [0-2][0-9]\:​[0-5][0-9]\:​[0-5][0-9]"​
 +            replacewith = ""​
 +            append = no
 +    }
 +</​code>​
  
 === postgresql.conf === === postgresql.conf ===
Line 143: Line 160:
  
 </​code>​ </​code>​
 +
 +====== Known Issues ======
 +
 +We've had one report where the Freeradius-server crashes when it loses connection with the postgresql-database and can no longer push accounting-messages to it. The reason for this is currently unknown, but it seems to be connected with the ''​rlm_sql''​ and ''​rlm_sql_postgresql''​ modules for freeradius.
radius.txt ยท Last modified: 2011/04/07 18:24 by faltin