core icon indicating copy to clipboard operation
core copied to clipboard

Captive Portal not redirecting to login page

Open aledalla opened this issue 4 years ago • 11 comments

Important notices

Before you add a new report, we ask you kindly to acknowledge the following:

  • [x ] I have read the contributing guide lines at https://github.com/opnsense/core/blob/master/CONTRIBUTING.md
  • [x ] I am convinced that my issue is new after having checked both open and closed issues at https://github.com/opnsense/core/issues?q=is%3Aissue

Describe the bug

Captive Portal has different problems on different devices:

  1. Windows machines - Network is connected with right parameters but either no action to login is displayed or any redirect occurs when trying to navigate, as a result, users can't provide credentials to surf the web.
  2. Android devices - We made lot of tests and figured out that on certain models, things go well, while on others, a notification to authenticate to Captive Portal only happpens the first time. If that android phone disconnects the network and re connect, it will never asked to login to Captive Portal, as a result users are unable to surf the web as mentioned at point 1.

Already searched online and figured out that is not an https redirect problem, because that happen also when trying to search over http. Followed this tutorial to setup the Captive Portal: https://docs.opnsense.org/manual/how-tos/guestnet.html

To Reproduce

Steps to reproduce the behavior:

  1. Use this tutorial to setup the Captive Portal: https://docs.opnsense.org/manual/how-tos/guestnet.html

Expected behavior

I expect to get a notification everytime I connect to CaptivePortal that brings me to Login Page or get redirected to the Login Page if session is not authenticated yet.

Environment

OPNsense 21.7.7-amd64, OpenSSL. Intel(R) Xeon(R) Gold 5120 CPU @ 2.20GHz (4 cores)

aledalla avatar Jan 05 '22 15:01 aledalla

I have that problem, too. can't automatically enter login page can access login page with enter manually gateway address with port 8000

agussutrisno1979 avatar Jan 12 '22 04:01 agussutrisno1979

This issue has been automatically timed-out (after 180 days of inactivity).

For more information about the policies for this repository, please read https://github.com/opnsense/core/blob/master/CONTRIBUTING.md for further details.

If someone wants to step up and work on this issue, just let us know, so we can reopen the issue and assign an owner to it.

OPNsense-bot avatar Jul 04 '22 14:07 OPNsense-bot

I have this problem as well

reesericci avatar Jul 19 '23 06:07 reesericci

hmmm... this is not good, i have recognized the same problem as well! i'm not sure on which point this happens, any suggestion to debug this problem?

skydiablo avatar Aug 09 '23 20:08 skydiablo

i have that problem too

GitDiHub avatar Nov 15 '23 08:11 GitDiHub

Same issue still

dkutan avatar Dec 08 '23 23:12 dkutan

Ditto here. Can't really figure out why it wouldn't pop up with the captive portal screen. It used to work but stopped when an update got installed a few months back. I'm not using it often but when I have guests over I would like them to use that functionality.

elonden avatar Feb 23 '24 05:02 elonden

same problem here. Pity that nobody seems to care that this feature is not working for so many people.

andreas-bulling avatar Nov 11 '25 20:11 andreas-bulling

This does not look like a wide spread issue judging by the few responses each year. And please don’t post to closed tickets. Instead, open a new ticket and provide at least a traceable piece of evidence like a packet capture showing the issue.

Cheers, Franco

fichtner avatar Nov 11 '25 21:11 fichtner

I would like to point out that there is https://docs.opnsense.org/manual/captiveportal.html#modern-portal-support now, which may or may not help, but given that this seems to be an issue with specific clients, perhaps compatibility comes into play here.

swhite2 avatar Nov 12 '25 14:11 swhite2

same problem here. Pity that nobody seems to care that this feature is not working for so many people.

It could be DNS as usual, strange v6 behavior or using upstream rules on the interface

mimugmail avatar Nov 12 '25 16:11 mimugmail