欢迎访问 生活随笔!

生活随笔

当前位置: 首页 > 编程资源 > 编程问答 >内容正文

编程问答

Reconfigure CentOS+freeradius+daloradius again

发布时间:2025/6/15 编程问答 47 豆豆
生活随笔 收集整理的这篇文章主要介绍了 Reconfigure CentOS+freeradius+daloradius again 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

Make some notes~  

http://www.haiyun.me/archives/centos-freeradius-daloradius-ros.html

参照上文进行配置首先是http服务,mysql服务的安装,然后是php,其中要加上php-pear(php扩展包)

httpd服务会被selinux搞一发,不关闭selinux的解决方案是,setroubleshoot /var/log/audit/audit.log 来获取解决方案, 存在权限问题


在于把daloradius文件夹时没有改变上下文权限?

 

反正就是需要改变一下**忘了..(*^__^*) 嘻嘻……

接着是安装freeradius服务1.修改文件让其支持sql  

2.配置sql.conf radius radpass 作为访问数据库验证(grant all on radius.* radius有关系..?)


此处出了点小问题,忘记打开radiusd服务,还是通过radiusd -X测试才发现


到这里就可以通过radtest命令来做测试,验证上述是否配置成功,man一下就知道怎么使用了


其中testing123应该是密钥 保存在 /etc/raddb/clients.conf中然后打开localhost/daloradius HTTP 500 Internal Server ???

网上介绍各种方法修改权限 用户组 失败 无奈关闭selinux

setenforce 1 设置SELinux 成为enforcing模式
setenforce 0 设置SELinux 成为permissive模式

成功访问daloradius/index.php  嗷嗷 但是登录不进去 数据库连接失败
仔细检查daloradius的config才发现数据库链接用户名打错啦 不是root 而是 radius 这里应该是为了安全着想?

 

OVER!还要摸索如何计费啦啦啦

转载于:https://www.cnblogs.com/gemmeg/p/3995597.html

总结

以上是生活随笔为你收集整理的Reconfigure CentOS+freeradius+daloradius again的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。