freeradius用户控制 支持多少用户

freeradius 多nas用户拨入问题
[问题点数:20分,结帖人q0713h]
freeradius 多nas用户拨入问题
[问题点数:20分,结帖人q0713h]
不显示删除回复
显示所有回复
显示星级回复
显示得分回复
只显示楼主
匿名用户不能发表回复!|下次自动登录
现在的位置:
& 综合 & 正文
freeradius,使用radclient断开用户连接
Freeradius Terminate a User Session using Radclient
Sometimes a user session must be terminated. A lot of reason to do it and I leave it to you to choose what the reason is but I know someday you want to kill his session not for nothing. If you use icradius there is tools name as
radkill to do it. You also can use snmp protocol to kill him but there is an easier way for Freeradius user through radclient command.
root@salji:# radclient -hUsage: radclient [options] server[:port] &command& [&secret&]&command& One of auth, acct, status, coa, or disconnect.-c count Send each packet ‘count’ times.-d raddb Set dictionary directory.-f file Read packets from file, not stdin.-i id Set request id to ‘id’. Values may be 0..255-n num Send N requests/s-p num Send ‘num’ packets from a file in parallel.-q Do not print anything out.-r retries If timeout, retry sending the packet ‘retries’ times.-s Print out summary information of auth results.-S file read secret from file, not command line.-t timeout Wait ‘timeout’ seconds before retrying (may be a floating point number).-v Show program version information.-x Debugging mode.
If the chillispot server is on the same machine as freeradius, we can run this command:
# echo “User-Name = raihan” | radclient -x 127.0.0.1:3779 disconnect theradiussecret
If the command is accepted by server, you can get this output.
# echo “User-Name = raihan” | radclient -x 127.0.0.1:3779 disconnect theradiussecretSending Disconnect-Request of id 63 to 127.0.0.1 port 3779User-Name = “raihan”rad_recv: Disconnect-ACK packet from host 127.0.0.1:3779, id=63, length=20
But firstly, You must starts chillispot server with this option, –coaport=3779 (or any port you desire) to make chillispot server accept your command.
# chilli –fg –coaport 3779
If the chillispot is separated from freeradius, the NAS wont have radclient command to do the job. But we can allow the chillispot to accept kill request from other nodes using –coanoipcheck option. Meaning, you can run the command from any machine, but with some security issue emerge. Well, some iptables rules
can fix it.
chilli –fg –coaport 3779 –coanoipcheck
【上篇】【下篇】架设基于FreeRADIUS带有认证计费功能的OpenVPN
<span type="1" blog_id="1736459" userid='
分享到朋友圈
关注作者,不错过每一篇精彩freeradius配置_百度文库
两大类热门资源免费畅读
续费一年阅读会员,立省24元!
freeradius配置
&&radius配置
阅读已结束,下载本文需要
想免费下载本文?
定制HR最喜欢的简历
下载文档到电脑,同时保存到云知识,更方便管理
&#xe64e;加入VIP
还剩1页未读,
定制HR最喜欢的简历
你可能喜欢

我要回帖

更多关于 freeradius 的文章

 

随机推荐