OPNsense Forum

English Forums => General Discussion => Topic started by: thiago on September 19, 2019, 03:43:03 PM

Title: Problems with redirect when link is HTTPS
Post by: thiago on September 19, 2019, 03:43:03 PM
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.
Title: Re: Problems with redirect when link is HTTPS
Post by: hbc on September 19, 2019, 09:08:02 PM
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 (https://tools.ietf.org/html/rfc7710)
Title: Re: Problems with redirect when link is HTTPS
Post by: thiago on September 26, 2019, 03:19:34 PM
Thank you Mr. HBC.

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

Very good.