not logged in | [Login]
Always use radiusd -X
when debugging!
For the example we will be using local1 as the facility.
We will discuss the different priorities with regard to the types of messages that are produced.
Keep in mind that the file locations may be different for your distribution.
The process to get FreeRADIUS to start using syslog is fairly straight forward. The basic steps are:
/etc/syslog.conf
/etc/raddb/radiusd.conf
-l syslog and -g <facility>
Radius logging choices - Commented lines are not required:
# .=notice will log only authentication messages (L_AUTH) #local1.=notice /var/log/radius/radius-notice.log # .=err will log only module errors for radius #local1.=err /var/log/radius/radius-errors.log # .* will log all messages in the same log file local1.* /var/log/radius/radius.log
On the distro we use it is - services restart sysklogd * RedHat - service syslog restart * Ubuntu - ? * FreeBSD - /etc/rc.d/syslogd restart
/etc/raddb/radiusd.conf
Set the following options:
logdir = syslog log_destination = syslog
Because of the logdir entry above, you must locate all references to ${logdir}
, comment the line out and replace it with an absolute path. There must be better ways to do this, but it isn't immediately obvious.
Putting these options in the startup script is different for each distribution.
There are 8 different priorities for syslog - debug, info, notice, warning, err, crit, alert, emerg.
Last edited by Matthew Newton (mcnewton), 2018-02-26 10:21:50
Sponsored by Network RADIUS