Freeradius accounting
hello. I use freeradius 2.1.12-5 with postgresql. I want to check every 10 minutes state of account? and if it's not valid disconnect it, but if it's valid to keep connection alive. How could I do this with freeradius. Wich parameter I have to use?
Павел Сорокин wrote:
hello. I use freeradius 2.1.12-5 with postgresql. I want to check every 10 minutes state of account? and if it's not valid disconnect it, but if it's valid to keep connection alive.
You want to check *what* ?
How could I do this with freeradius. Wich parameter I have to use?
There is no magic parameter saying "do exactly what I want". You have to understand how the server works. You need to create the solution yourself. Alan DeKok.
Ok. I want to check user's balance every 5 minutes. If user's balance less then zero I want to disconnect user. Balance could be changed while users's sessions is established. Is there any way to terminate user's session when balance is =< then zero? Balance is a number of minutes. 2012/6/18 Alan DeKok <aland@deployingradius.com>
Павел Сорокин wrote:
hello. I use freeradius 2.1.12-5 with postgresql. I want to check every 10 minutes state of account? and if it's not valid disconnect it, but if it's valid to keep connection alive.
You want to check *what* ?
How could I do this with freeradius. Wich parameter I have to use?
There is no magic parameter saying "do exactly what I want". You have to understand how the server works. You need to create the solution yourself.
Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Павел Сорокин wrote:
Ok. I want to check user's balance every 5 minutes. If user's balance less then zero I want to disconnect user. Balance could be changed while users's sessions is established. Is there any way to terminate user's session when balance is =< then zero? Balance is a number of minutes.
$ man radzap This is documented. Alan DeKok.
And what if NAS is bihind NAT and RAdius server could not access it. How could NAS know about client termination? 2012/6/18 Alan DeKok <aland@deployingradius.com>
Павел Сорокин wrote:
Ok. I want to check user's balance every 5 minutes. If user's balance less then zero I want to disconnect user. Balance could be changed while users's sessions is established. Is there any way to terminate user's session when balance is =< then zero? Balance is a number of minutes.
$ man radzap
This is documented.
Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Павел Сорокин wrote:
And what if NAS is bihind NAT and RAdius server could not access it. How could NAS know about client termination?
You can use CoA packets, if the NAS supports it. See "man radclient". See also the FAQ for how to disconnect users. The answer often is "you can't". Blame the NAS. Alan DeKok.
participants (2)
-
Alan DeKok -
Павел Сорокин