OPNsense Forum

English Forums => General Discussion => Topic started by: vivekmauli14 on August 05, 2024, 10:17:19 AM

Title: Captive Portal: Issues, User logout not working
Post by: vivekmauli14 on August 05, 2024, 10:17:19 AM
Hi,

recently I upgraded my opnsense 24.1 firewall to 24.7, few issues I noticed while using the Captive portal are:

1. The user is logged in after submitting the form, though you must refresh the page manually. Otherwise, you wont see the logged-in user and logout button

2.  Logout button not working. When I tried to logout the user from the UI of <IP>:8000, The logout button doesn't work. User sessions remains continue.


Am I the only one facing these issues? Looking for a resolution.

Thanks,
Vivek
Title: Re: Captive Portal: Issues, User logout not working
Post by: kfaehnders on August 07, 2024, 10:56:46 AM
Moin,
ich habe das gleiche Problem.
Im JSON Objekt steht die richtige IP-Adresse zur der Session + ClientState = "unknown".
Im default Template geht es bei mir ebenfalls nicht mehr mit der neuen Version.
Ich befürchte hier gibt es Probleme mit der PHP Funktion.

Falls jemand eine Lösung kennt, dann wäre ich auch interessiert.
Title: Re: Captive Portal: Issues, User logout not working
Post by: vivekmauli14 on August 07, 2024, 08:56:24 PM
Hi there,

I was debugging the problem from the backend and found some issues that, the actions.d commands for captive portal, particularly the disconnect command which runs with configdprun, has mismatched parameter values
So you can debug and solve the disconnect parameters in actions.d or you can just remove the zoneid from the configdprun of accesscontroller of captive portal API.

here https://github.com/opnsense/core/pulls/7740 (https://github.com/opnsense/core/pulls/7740)

Be careful though, I haven't tested it with multiple zones.

cheers,
VivekSP
Title: Re: Captive Portal: Issues, User logout not working
Post by: franco on August 08, 2024, 09:21:09 AM
Thanks a lot, we'll ship this in 24.7.1 today.


Cheers,
Franco