简体   繁体   中英

How to disconnect user from radius?

I want to disconnect user from radius but it is not working. i am using this command

echo User-Name=$loginId,Framed-IP-Address=$framedipaddress | /usr/local/bin/radclient -x $nasIp:$nasPort disconnect $naspass"

it showing a error like:

radclient: no response from server for ID 91 socket 3.I am using linux centos.

echo Command string should be in double quotes. You may not need the framed IP address rather you'd need the client's mac address and User-Name. The password specified should the Radius password that has been set in the clients.conf file.

echo "User-Name=radusertester,Calling-Station-ID=80-CE-B9-70-42-BD" | /usr/local/bin/radclient 127.0.0.1:3799 disconnect radpass

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM