Script

Alan DeKok aland at deployingradius.com
Fri Dec 13 13:38:20 CET 2019


On Dec 12, 2019, at 3:19 PM, Aurélio de Souza Ribeiro Neto <netolistas at 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.




More information about the Freeradius-Users mailing list