coova / coova-chilli

CoovaChilli is an open-source software access controller for captive portal hotspots.
Other
516 stars 258 forks source link

Sometime chilli send wrong timestamp #459

Open irongomme opened 5 years ago

irongomme commented 5 years ago

Everything in the title ! Chilli send a timestamp to radius servers for each connections and for every acct interim interval. But sometimes and with some nas, after one day of nas uptime, every acctstarttime and acctstoptime connections are in late. It can be shifted by several days (4 or 5 days). I'm using freeradius, and I know that it records datetime as they are emited, without any processing. So I think there is a Chilli issue, or a system configuration issue, but I don't really know what it is ...

Has someone met the same situation ?

Tarunno commented 4 months ago

I have faced this issue whenever my device is powered off for a while. I restart the chilli after booting to sync the time.

goto to: /etc/rc.local change it to:

#!/bin/sh
/bin/sleep 80 && /etc/init.d/firewall restart && /etc/init.d chilli restart
exit 0