Hello All, I'm using freeradius 3.0.20 in ubuntu + MySQL, and I want to implement a solution to discconect users when I don't receive 2 Interim Update Packets for example. How can I do this? Someone can help? Aurélio
Interim-Update is not sent by user but by the NAS it is connected to..., in case the NAS is disconnected then the only issue you will need to resolve is to end the 'radacct' session in MySQL MKS PS: I either dictated to my device or I typed it clumsily. Expect typos and weirdness On Fri, Dec 13, 2019 at 1:50 AM Aurélio de Souza Ribeiro Neto < netolistas@mpc.com.br> wrote:
Hello All,
I'm using freeradius 3.0.20 in ubuntu + MySQL, and I want to implement a solution to discconect users when I don't receive 2 Interim Update Packets for example.
How can I do this? Someone can help?
Aurélio - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On Dec 12, 2019, at 3:19 PM, Aurélio de Souza Ribeiro Neto <netolistas@mpc.com.br> wrote:
I'm using freeradius 3.0.20 in ubuntu + MySQL, and I want to implement a solution to discconect users when I don't receive 2 Interim Update Packets for example.
How can I do this? Someone can help?
FreeRADIUS is a toolbox. It isn't a complete "product" with a button you can click that says "do what I want". The solution here is to realize that FreeRADIUS doesn't track users. FreeRADIUS just writes accounting information to a database. So really, the *database* tracks users. Which means all you need to do is write a database query that finds sessions which haven't seen updates. Then, use that information to send a CoA packet. If you have 3.0.20 installed, this is a lot easier. There's a sample virtual server in raddb/sites-available/coa-relay. You can send a CoA packet to FreeRADIUS with just an Acct-Session-Id attribute. FreeRADIUS will figure the rest out, and send a packet to the NAS. Alan DeKok.
participants (3)
-
Alan DeKok -
Aurélio de Souza Ribeiro Neto -
Mankomal Singh