Problems with redirect when link is HTTPS

Started by thiago, September 19, 2019, 03:43:03 PM

Previous topic - Next topic
Good morning people,
I have a problem that captive portal only redirects to the authentication page when I try to access some http link, when it is an https link it does not redirect and the error.
I have read in some places that OPNSense has some limitations for running HTTPS redirection.
Any suggestion?
Thanks.

HTTPS is generally a problem with captive portals, because the client requests a ssl secured webpage and you redirect to your portal with a certificate that will not match the expected webpage and you will get a ssl error.

Usually browsers and modern OSes request special HTTP URLs to detect captive portals.

You can also add special dhcp options to send the captive portal url to clients.

https://tools.ietf.org/html/rfc7710
Intel(R) Xeon(R) Silver 4116 CPU @ 2.10GHz (24 cores)
256 GB RAM, 300GB RAID1, 3x4 10G Chelsio T540-CO-SR

Thank you Mr. HBC.

Your sugestion the URL for send with DHCP it's ok.

Very good.