随笔 - 32  文章 - 1 评论 - 0 阅读 - 13471
< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

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!还要摸索如何计费啦啦啦

posted on   Gemmeg  阅读(266)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示