OPNsense Forum

Archive => 17.1 Legacy Series => Topic started by: ackahforson on February 20, 2017, 12:52:05 am

Title: Captive Portal login loop
Post by: ackahforson on February 20, 2017, 12:52:05 am
Hello,
I am new to OPNsense. I had it setup with 2 NICs , everything was fine including my captive portal.
I enabled my wireless card, and created another network for wifi. Internet works great! Now when I created captive portal with voucher and local server auth. , the portal page opens when client pc connects, then the following happens After entering username and password / voucher details:

1. nothing happens, page doesnt redirect. when you try to browse from another Tab or window, it asks for credentials again.

2.  Client gets logged in and redirected, when a new tab is opened, it requests for credentials again.

3. The page redirects to the portal IP with an error.

in all three scenarios I can reach the web GUI via the LAN IP or WLAN IP address.

As soon as CP is deactivated, internet works perfectly. My setup looks like this:

ADSL modem=>OPNsense=>LAN (192.168.3.1) WLAN (192.168.4.1) with repeater.

your help is greatly appreciated. Thank you
Title: Re: Captive Portal login loop
Post by: ackahforson on February 20, 2017, 07:57:41 am
I dont know if this helps, but i realised after connecting to a new network, the sites the captive portal was redirecting to, takes very long to open or do not open at all, sometimes I see the captive portal url in the browser even though i am not behind the OPNsense firewall(http://192.168.4.1:8000/index.html?redirurl=google.com/).

Any help, pls?
Title: Re: Captive Portal login loop
Post by: fabian on February 20, 2017, 12:57:45 pm
This is a Bug which is already fixed (server sent the wrong status code) - flushing the browser cache helps.
Title: Re: Captive Portal login loop
Post by: franco on February 20, 2017, 01:41:21 pm
That's correct. This was recently reported and fixed. The fix will be in 17.1.2 on Wednesday.


Cheers,
Franco
Title: Re: [SOLVED] Captive Portal login loop
Post by: ackahforson on February 20, 2017, 06:02:11 pm
thank you very much.
eagerly waiting for OPNsense 17.1.2 on Wednesday

Title: Re: [SOLVED] Captive Portal login loop
Post by: fabian on February 20, 2017, 09:16:40 pm
if you need it faster you can use this command:
opnsense-patch 714bd18
Title: Re: [SOLVED] Captive Portal login loop
Post by: franco on February 21, 2017, 07:19:45 am
Make sure to post the according commit so people know what they install. It could be anything from our repo ;)

https://github.com/opnsense/core/commit/714bd18
Title: Re: [SOLVED] Captive Portal login loop
Post by: ackahforson on February 26, 2017, 07:15:08 pm
Hello,
Unfortunately the issue is not resolved.
My current OPNsense install is 17.1.2

Setup is as follows:
Internet =>OPNsense => (2 NICS 1. cable 192.168.3.1  2. wifi 192.168.4.1 + repeaters )

Issue:
Upon opening a page, client PC is presented with portal page (as expected),
upon login the client is successfully logged in and redirected to the page requested. BUT any other tab or page opened presents the portal page again or no response with the browser attempting to establish a connection!

On captive portal sessions, I observe the client successfully logged in with mac address "   h0_wlan1 expires in 1113 sec" . sometimes 30 sec.

Any help pls?