Freeraadius stale sessions (no SQL scenario)

Alan DeKok aland at
Thu Nov 3 16:31:01 CET 2016

> On Nov 3, 2016, at 7:18 AM, Roman <romeo.r at> wrote:
> Sometimes I do some networking downtimes and during these periods I'm
> getting pretty much stale sessions in radwho output. I understand why it
> happens, but all I want to do is to clear them automatically, when user
> logs in.
> So what I've done is added this line:
>   *exec("/usr/bin/radzap", "-u", $ARGV[3], "", "secret");*
> to this part of checkrad code for mikrotik sub.

  Please don't do that.  It's not necessary.

  The purpose of checkrad is to tell the server if the session is still up.  If it isn't the server will automatically create a "zap" packet, and remove the session.

  Alan DeKok.

More information about the Freeradius-Users mailing list