Does freeradius support considering a session as ended if enough accounting packets are missed?

Arran Cudbard-Bell a.cudbardb at freeradius.org
Wed Sep 17 20:38:15 CEST 2014


On 17 Sep 2014, at 14:26, Erik Andersen <eandersen at eoni.com> wrote:

> I'm running FreeRADIUS Version 2.1.12.
> 
> I've searched online, and haven't found anything on the subject that definitively says. Does freeradius support marking a session as ended/stopped if enough accounting packets are missed?
> 
> One thing I did consider is that if not, I could try building a script that runs frequently, looking for sessions that have no accounting in the last X minutes, and changes the session to being ended (I think radzap is the tool for this, but I could be wrong). Of course, the less weird scripts I make (and have to come back and figure out what "clever" thing I did in 3 years), the better.

No radzap isn't the tool, that's for kicking users off via SNMP.

There's no bundled utility to do this, and it's not supported directly by the SQL module.

In v3.0.x the default schema does include an acctupdatetime which records the last time a
start or interim was received for the session.

That can be used to identify stale sessions if you know what the interim interval should be.

If you want to get really fancy you can write something to create something that calls
radclient to generate fake stop packets, but most people just use an sql UPDATE query to
close out stale sessions periodically, and just run that with cron.

Arran Cudbard-Bell <a.cudbardb at freeradius.org>
FreeRADIUS development team

FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 881 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20140917/be737dc1/attachment.pgp>


More information about the Freeradius-Users mailing list