Freeradius incorrect acctstoptime

Brian Candler b.candler at pobox.com
Sat Dec 10 17:07:56 CET 2016


On 10/12/2016 07:22, Sachin Yadav wrote:
> We have a large deployment of about 600 NAS (mixed openwrt/mikrotik/others). I have noticed that for some records, incorrect acctstoptime was marked while user session was still going on and accounting was happening.

What you should do is look at the raw incoming packets and see what is 
actually happening. There are several ways to do this: e.g. you can 
configure the "detail" module to log the accounting packets as they come 
in to a text file, or at worst use tcpdump (e.g. tcpdump -i eth0 -nn -s0 
-v udp port 1813)

As a guess: maybe the NAS is sending an Interim-Update but your SQL 
configuration treats it as Stop?

An Interim-Update packet gives usage so far on a still-active session.


More information about the Freeradius-Users mailing list