OPNsense Forum

English Forums => General Discussion => Topic started by: miclan on September 06, 2017, 12:02:16 PM

Title: Captive Portal sessions after reboot
Post by: miclan on September 06, 2017, 12:02:16 PM
Everytime I made an upgrade to a new Opnsense version that needs a reboot users connected to wifi network through Captive Portal (with Radius Authentication) needs to logout from Captive Portal and login again because network connection doesn't work.

Is it a normal behaviour of Captive Portal?
What can I do to keep users connected after a reboot?
Thanks
Title: Re: Captive Portal sessions after reboot
Post by: franco on September 06, 2017, 12:06:33 PM
Is this a Nano image and / or are you using the /var MFS option?


Cheers,
Franco
Title: Re: Captive Portal sessions after reboot
Post by: miclan on September 06, 2017, 12:11:51 PM
It's a full installation on HDD.
Title: Re: Captive Portal sessions after reboot
Post by: fabian on September 06, 2017, 12:58:53 PM
yes but using a tempfs as /var partition may lead to data loss on reboot. For example, the database may be deleted on reboot.
Title: Re: Captive Portal sessions after reboot
Post by: miclan on September 06, 2017, 01:57:48 PM
OK Fabian, thanks.
What can I do to change that?
Is it possible to avoid db deletion on reboot?
Title: Re: Captive Portal sessions after reboot
Post by: miclan on September 06, 2017, 02:04:17 PM
I found this settings called "Periodic Captive Portal Backup" on System-> Miscellaneous Menu
Now it's Disabled.
Could be a solution?
Title: Re: Captive Portal sessions after reboot
Post by: fabian on September 06, 2017, 02:11:04 PM
you can disable the ram disk on https://your-opnsense-host/system_advanced_misc.php (https://your-opnsense-host/system_advanced_misc.php)
Title: Re: Captive Portal sessions after reboot
Post by: franco on September 06, 2017, 02:15:19 PM
Not sure, but the option may only back up vouchers.

The real question still is: are you using /var MFS?
Title: Re: Captive Portal sessions after reboot
Post by: miclan on September 06, 2017, 02:21:29 PM
I'm sorry Fabian, I checked my actual RAM disk configuration here https://my-opnsense-host/system_advanced_misc.php and I can confirm that /var/RAM disk and /tmp RAM disk are both UNCHECKED (so I think disabled)
Do I need to check one?
Title: Re: Captive Portal sessions after reboot
Post by: franco on September 06, 2017, 02:30:09 PM
No, your setting are ok. It may just be a loss of state in the firewall because of the reboot.
Title: Re: Captive Portal sessions after reboot
Post by: miclan on September 06, 2017, 02:42:05 PM
Thanks Franco, so what can I do? It's very annoying for my users. If I need to reboot they lose wifi connection, I try to give you more informations: they keep connected to our wifi network, but there's no traffic. The only solution is Logout from Captive Portal and login again.
Title: Re: Captive Portal sessions after reboot
Post by: franco on September 06, 2017, 03:20:00 PM
Can you open a ticket at https://github.com/opnsense/core/issues so the author (Ad) can take a look at this?

Obviously reboots should be done when no users are around if that can be avoided, but I agree that it would be prettier if such info was kept and restored.

Maybe it even is but we are simply missing the restore, hence the ticket.


Thanks,
Franco
Title: Re: Captive Portal sessions after reboot
Post by: miclan on September 06, 2017, 03:36:13 PM
Thank Franco, I opened this ticket https://github.com/opnsense/core/issues/1807
Title: Re: Captive Portal sessions after reboot
Post by: franco on September 06, 2017, 05:19:26 PM
Thanks, I have it assigned for assessment and will follow up here when we know more. :)


Cheers,
Franco