Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
Captive Portal sessions after reboot
« previous
next »
Print
Pages: [
1
]
Author
Topic: Captive Portal sessions after reboot (Read 7485 times)
miclan
Newbie
Posts: 27
Karma: 1
Captive Portal sessions after reboot
«
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
Logged
franco
Administrator
Hero Member
Posts: 17665
Karma: 1611
Re: Captive Portal sessions after reboot
«
Reply #1 on:
September 06, 2017, 12:06:33 pm »
Is this a Nano image and / or are you using the /var MFS option?
Cheers,
Franco
Logged
miclan
Newbie
Posts: 27
Karma: 1
Re: Captive Portal sessions after reboot
«
Reply #2 on:
September 06, 2017, 12:11:51 pm »
It's a full installation on HDD.
Logged
fabian
Hero Member
Posts: 2769
Karma: 200
OPNsense Contributor (Language, VPN, Proxy, etc.)
Re: Captive Portal sessions after reboot
«
Reply #3 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.
Logged
miclan
Newbie
Posts: 27
Karma: 1
Re: Captive Portal sessions after reboot
«
Reply #4 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?
Logged
miclan
Newbie
Posts: 27
Karma: 1
Re: Captive Portal sessions after reboot
«
Reply #5 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?
Logged
fabian
Hero Member
Posts: 2769
Karma: 200
OPNsense Contributor (Language, VPN, Proxy, etc.)
Re: Captive Portal sessions after reboot
«
Reply #6 on:
September 06, 2017, 02:11:04 pm »
you can disable the ram disk on
https://your-opnsense-host/system_advanced_misc.php
Logged
franco
Administrator
Hero Member
Posts: 17665
Karma: 1611
Re: Captive Portal sessions after reboot
«
Reply #7 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?
Logged
miclan
Newbie
Posts: 27
Karma: 1
Re: Captive Portal sessions after reboot
«
Reply #8 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?
Logged
franco
Administrator
Hero Member
Posts: 17665
Karma: 1611
Re: Captive Portal sessions after reboot
«
Reply #9 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.
Logged
miclan
Newbie
Posts: 27
Karma: 1
Re: Captive Portal sessions after reboot
«
Reply #10 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.
Logged
franco
Administrator
Hero Member
Posts: 17665
Karma: 1611
Re: Captive Portal sessions after reboot
«
Reply #11 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
Logged
miclan
Newbie
Posts: 27
Karma: 1
Re: Captive Portal sessions after reboot
«
Reply #12 on:
September 06, 2017, 03:36:13 pm »
Thank Franco, I opened this ticket
https://github.com/opnsense/core/issues/1807
Logged
franco
Administrator
Hero Member
Posts: 17665
Karma: 1611
Re: Captive Portal sessions after reboot
«
Reply #13 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
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
Captive Portal sessions after reboot