使用mysql的nas表格代替clients.conf

使用mysql的nas表格代替client.conf进行客户端配置

这里,也可以将radiusd.conf的clients.conf注释掉
#$INCLUDE clients.conf

并将sql.conf的readclients反注释

sql    {
 ...
 readclients = yes
 ...
 }

这样就不会使用配置文件clients.conf,而使用数据库里的nas表读取客户端信息。

在nas表插入值、nasname为localhost、shortname为localhost、type为other、secret为迩设置迩的客户端密钥、记得一定要设置shortname、这个应该对应的就是客户端自定义的IP地址

原文地址:https://www.cnblogs.com/klobohyz/p/2339017.html