I need to disconnect users
I need to disconnect users that in 1 month already have consumed 1gbyte of data. The NAS sends me the traffic of the network every 5 minutes. The question is: how to do that when I get the data that the user has already consumed the traffic that was assigned, the freeradius disconnect the user ?. I am using the RadiusDesk implementation, I have configured plans and they work, but the consumption check is when the user is going to log in only. -- ________________________________________________ Lic. Ariel García Reyes. GNU/Linux Registered User #357058
\On Aug 15, 2018, at 12:21 PM, Ariel García Reyes <ariel100cfg@gmail.com> wrote:
I need to disconnect users that in 1 month already have consumed 1gbyte of data.
Send a Disconnect-Request packet.
The NAS sends me the traffic of the network every 5 minutes. The question is: how to do that when I get the data that the user has already consumed the traffic that was assigned, the freeradius disconnect the user ?
You have to fork an external program: radclient. It will then send a Disconnect-Request packet for the user. Alan DeKok.
On Aug 15, 2018, at 12:23 PM, Alan DeKok <aland@deployingradius.com> wrote:
You have to fork an external program: radclient. It will then send a Disconnect-Request packet for the user.
No, that's wrong, sorry. See raddb/sites-available/originate-coa. You can send a Disconnect-Request packet directly from FreeRADIUS. Alan DeKok.
Alan DeKok <aland@deployingradius.com>
No, that's wrong, sorry.
You were right both times... :-) I have to do the former because we use a NAS client wildcard, and you can't originate-coa to a dynamically created NAS last time I checked. Works fine, even at a medium volume of users.
participants (3)
-
Alan DeKok -
Ariel García Reyes -
Brian Julin