加入收藏 | 设为首页 | 会员中心 | 我要投稿 云计算网_泰州站长网 (http://www.0523zz.com/)- 视觉智能、AI应用、CDN、行业物联网、智能数字人!
当前位置: 首页 > 服务器 > 搭建环境 > Unix > 正文

radius+httpd+php+mysql+dialupadmin总结

发布时间:2016-01-13 17:42:38 所属栏目:Unix 来源:网络整理
导读:RADIUS是一种C/S结构的协议,它的客户端最初就是NAS(Net Access Server)服务器,现在任何运行RADIUS客户端软件的计算机都可以成为RADIUS的客户端。RADIUS协议

7.[root@localhost raddb]# cat sql.conf//查看sql配置文件

sql {

database = "mysql"

driver = "rlm_sql_${database}"

server = "localhost"

login = "root"//修改数据用户名为root

password = "123456"//密码为123456

radius_db = "radius"//数据库名字叫radius

acct_table1 = "radacct"

acct_table2 = "radacct"

postauth_table = "radpostauth"

authcheck_table = "radcheck"

authreply_table = "radreply"

groupcheck_table = "radgroupcheck"

groupreply_table = "radgroupreply"

usergroup_table = "radusergroup"

       deletestalesessions = yes

sqltrace = no

sqltracefile = ${logdir}/sqltrace.sql

num_sql_socks = 5

connect_failure_retry_delay = 60

lifetime = 0

max_queries = 0

       nas_table = "nas"

$INCLUDE sql/${database}/dialup.conf

}

8.[root@localhost raddb]# cat clients.conf//客户端配置文件

client localhost {

ipaddr = 127.0.0.1

secret          = testing123

require_message_authenticator = no

}

client 192.168.40.39 {

secret =testing123

shortname =test

nastype =other

}

//为你NAS的相应值

192.168.40.39为NAS要地址

secret      = testing123为密钥

shortname   = test任意

nastype     = other为你NAS设备的类型

(编辑:云计算网_泰州站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

推荐文章
    热点阅读