Thursday, April 29, 2021

forward authentication log on freeradius to syslog server

enable: authen log on radius.log

edit /etc/freeradius/radiusd.conf


#  Log authentication requests to the log file.

#

#  allowed values: {no, yes}

#

auth = yes 

#  Log passwords with the authentication requests.

#  auth_badpass  - logs password if it's rejected

#  auth_goodpass - logs password if it's correct

#

#  allowed values: {no, yes}

#

auth_badpass = yes

auth_goodpass = yes


restart services freeradius:

/etc/init.d/freeradius restart


create file rc.capture


#!/bin/bash

tail -F /var/log/freeradius/radius.log | logger -t freeradius -p local3.info &


chmod a+x /etc/init.d/rc.capture


add line in /etc/rc.local file

/etc/init.d/rc.capture


set remote syslog server

local3.* @10.10.31.71:514

# @ udp

# @@ tcp

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.

ALCATEL 6900

write memory copy running certified reload from working no rollback-timeout