Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
17.1 Legacy Series
»
Captive Portal login loop
« previous
next »
Print
Pages: [
1
]
Author
Topic: Captive Portal login loop (Read 8169 times)
ackahforson
Newbie
Posts: 15
Karma: 0
Captive Portal login loop
«
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
«
Last Edit: February 26, 2017, 07:15:22 pm by ackahforson
»
Logged
ackahforson
Newbie
Posts: 15
Karma: 0
Re: Captive Portal login loop
«
Reply #1 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?
Logged
fabian
Hero Member
Posts: 2769
Karma: 200
OPNsense Contributor (Language, VPN, Proxy, etc.)
Re: Captive Portal login loop
«
Reply #2 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.
Logged
franco
Administrator
Hero Member
Posts: 17605
Karma: 1603
Re: Captive Portal login loop
«
Reply #3 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
Logged
ackahforson
Newbie
Posts: 15
Karma: 0
Re: [SOLVED] Captive Portal login loop
«
Reply #4 on:
February 20, 2017, 06:02:11 pm »
thank you very much.
eagerly waiting for OPNsense 17.1.2 on Wednesday
Logged
fabian
Hero Member
Posts: 2769
Karma: 200
OPNsense Contributor (Language, VPN, Proxy, etc.)
Re: [SOLVED] Captive Portal login loop
«
Reply #5 on:
February 20, 2017, 09:16:40 pm »
if you need it faster you can use this command:
opnsense-patch 714bd18
Logged
franco
Administrator
Hero Member
Posts: 17605
Karma: 1603
Re: [SOLVED] Captive Portal login loop
«
Reply #6 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
Logged
ackahforson
Newbie
Posts: 15
Karma: 0
Re: [SOLVED] Captive Portal login loop
«
Reply #7 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?
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
17.1 Legacy Series
»
Captive Portal login loop