[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freeradius-users
Subject:    Re: Script
From:       Alan DeKok <aland () deployingradius ! com>
Date:       2019-12-13 12:38:20
Message-ID: 9DCC8CAB-FB9C-4F1E-AE69-7B9423243A14 () deployingradius ! com
[Download RAW message or body]

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.


-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic