Execute Logout Command on FreeRADIUS.
*Hello Guys,I am using radclient to logout users with the command belowecho "User-Name='{username}'" | radclient -x {localhost}:{port} disconnect radiusSecret this works fine except that the port number changes from time to time and i have to manually edit the port number for the logout mechanism to work everytime.Could you please tell, if its possible to set a static port number or if that is not possible, a better way to execute logout command on FreeRADIUS to logout user. I will appreciate it. * *RM --**Thanks*
Greetings, Anyone ? On Tue, Apr 22, 2014 at 4:51 PM, Russell Mike <radius.sir@gmail.com> wrote:
*Hello Guys,I am using radclient to logout users with the command belowecho "User-Name='{username}'" | radclient -x {localhost}:{port} disconnect radiusSecret this works fine except that the port number changes from time to time and i have to manually edit the port number for the logout mechanism to work everytime.Could you please tell, if its possible to set a static port number or if that is not possible, a better way to execute logout command on FreeRADIUS to logout user. I will appreciate it. *
*RM --**Thanks*
On Thu, Apr 24, 2014 at 5:32 PM, Russell Mike <radius.sir@gmail.com> wrote:
Greetings,
Anyone ?
First of all, the big fonts (and the italic one previously) is annoying. For me anyway. I'd suggest using plain-text mode for easier readability. Second, if I understand correctly, the only part of FR you're using is the "radclient" program. What is the NAS running on localhost? The port for disconnect request is determined by the NAS. http://wiki.freeradius.org/protocol/Disconnect-Messages should give you more information. -- Fajar
On Tue, Apr 22, 2014 at 4:51 PM, Russell Mike <radius.sir@gmail.com> wrote:
Hello Guys,
I am using radclient to logout users with the command below
echo "User-Name='{username}'" | radclient -x {localhost}:{port} disconnect radiusSecret
this works fine except that the port number changes from time to time and i have to manually edit the port number for the logout mechanism to work everytime.
Could you please tell, if its possible to set a static port number or if that is not possible, a better way to execute logout command on FreeRADIUS to logout user.
I will appreciate it.
RM --Thanks
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Russell Mike wrote:
this works fine except that the port number changes from time to time and i have to manually edit the port number for the logout mechanism to work everytime.
Use a "database".
Could you please tell, if its possible to set a static port number or if that is not possible, a better way to execute logout command on FreeRADIUS to logout user.
Information about users ports gets sent in Access-Request and Accounting-Request packets. Store that in a database. Then, look up the ports, and use that to send disconnect packets. Alan DeKok.
participants (5)
-
A.L.M.Buxey@lboro.ac.uk -
Alan DeKok -
Arran Cudbard-Bell -
Fajar A. Nugraha -
Russell Mike