freeradius2.1+mysql搭建简明教程
在RedHat6下以mysql搭建freeradius稍稍有些麻烦。在Debian上直接apt-get就行了,在redhat下缺少radius-mysql包。
下载编译freeradius需要mysql以及mysql-devel包
./configure --prefix=/makemake install
log { destination = files file = ${logdir}/radius.log syslog_facility = daemon stripped_names = yes auth = yes auth_badpass = yes auth_goodpass = yes}authorize { preprocess chap mschap digest suffix eap { ok = return } files sql expiration logintime pap}accounting { detail unix radutmp sql exec attr_filter.accounting_response}client 192.168.0.254 { secret = testing123 shortname = cisco nastype = cisco}radiusd -X
radtest fredf wilma localhost 0 testing123