Bug #2752
closedCaptive Portal Last Activity isn't update anymore --> idle timeout just after login
0%
Description
Since version 2.0.2 some of our captive portal users are logged out suddenly after login. In radius accounting i saw an idle timeout. We have activated idle timeout of 1800 sec.
I analyzed the code of captiveportal.inc. Within the function "captiveportal_prune_old" idle timeout is checked by comparing last activity ($lastact) with current time ($pruning_time). I entred two log lines showing last activity, current time, login time and ip-address of user.
I found out that last activity (entrystats in table 1) isn't updated respective not deleted during logout. A restart of pfsense deletes the table but few minutes later next idle timeout is recurring.
The attached pdf shows the captive portal status page and two log entries of such idle timeouts (own analyze within timeout code).
Version 2.0.1 was OK. It must be something new. I updated via automatic update function. As quick measurement I had to disable ide-timeout.
Regards,
Erik
Files