Community discussions

MikroTik App
 
tigro11
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 87
Joined: Tue Feb 20, 2018 12:31 am

HOTSPOT login https error

Thu Mar 14, 2019 1:49 pm

hello guys, now all the pages where you browse are 80% in https.
On the RB 3011 until the customer searched for pages in http, the problem of the login request was not a problem, now instead if a customer looks for example google, the page is in https and therefore the login page does not appear and therefore from connection error. Did Mikrotik do something about this?
For now I have buffered creating an ssl certificate and activated the https protocol with certificate on the rb, only that new customers don't know that they have to install the certificate the first time.
For the certificate I followed this guide https://www.youtube.com/watch?v=CAvDMtyOx5k
but if you have any better advice I am grateful.
Thank you all
 
User avatar
rdelacruz
newbie
Posts: 39
Joined: Thu Jul 14, 2016 8:12 pm

Re: HOTSPOT login https error

Thu Mar 14, 2019 7:10 pm

Some Facts about HTTPS redirection
  • Hotspot does not redirect SSL 443 sites , unless you enable HTTPS redirection and use a signed or self-signed certificate.
  • By using self signed certificate, SSL redirect warnings will still be present. As part of SSL protocol, cause hotspot captive portal will be seen as Man-in-the-Middle by SSL.
  • Browser will still warn end-user about redirection even with CA signed certificate! This warning message cannot be avoided. They will always get a certificate error, because the hotspot page is not the page they requested.

Most browsers tend to remember which sites use HTTPS and will automatically send you to the secure page. So when you type 'google.com' without the 'https://', chances are that you are taken to the secure (HTTPS) page.

Workaround to alleviate the issue..

As high percentage of browsers home pages are set to google.com, we can add it to the walled garden.

When users are directed to https://google.com the google page will load instead of an error. This is better than displaying the “no internet connection error”.

While they are in google page, there’s a high tendency that the user will click on a http link and get the login page.
 
R1CH
Forum Guru
Forum Guru
Posts: 1101
Joined: Sun Oct 01, 2006 11:44 pm

Re: HOTSPOT login https error

Thu Mar 14, 2019 9:11 pm

Make sure that you aren't allowing any sites in the hotspot before user auth, if you allow connectivity to Google / Apple / etc, the browser will think it has internet and will not trigger the captive portal. Any modern browser otherwise will notice the connection test is failing and prompt the user to log in to the portal.

Beyond this there is nothing else you can do, as the security of HTTPS negates attempts to intercept such requests.
 
tigro11
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 87
Joined: Tue Feb 20, 2018 12:31 am

Re: HOTSPOT login https error

Fri Mar 15, 2019 10:09 am

How can I ensure that I do not allow access to any site in the hotspot before the user's authorization? should I make a special rule about RB?
Could you tell me how can I do?
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19323
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: HOTSPOT login https error

Fri Mar 15, 2019 1:26 pm

Make sure that you aren't allowing any sites in the hotspot before user auth, if you allow connectivity to Google / Apple / etc, the browser will think it has internet and will not trigger the captive portal. Any modern browser otherwise will notice the connection test is failing and prompt the user to log in to the portal.

Beyond this there is nothing else you can do, as the security of HTTPS negates attempts to intercept such requests.
As Op noted, great advice but how????
 
R1CH
Forum Guru
Forum Guru
Posts: 1101
Joined: Sun Oct 01, 2006 11:44 pm

Re: HOTSPOT login https error

Fri Mar 15, 2019 3:27 pm

Just make sure nothing is in the walled garden. As long as the user is using a modern browser or phone, they should get the prompt for the portal.
 
User avatar
pcunite
Forum Guru
Forum Guru
Posts: 1345
Joined: Sat May 25, 2013 5:13 am
Location: USA

Re: HOTSPOT login https error

Fri Mar 15, 2019 5:50 pm

Just make sure nothing is in the walled garden. As long as the user is using a modern browser or phone, they should get the prompt for the portal.

This has been my experience too in testing. I only use HTTP CHAP and Cookie for my Hotspot server login settings, not HTTP(s). I will have more live experience in a few months.
 
tigro11
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 87
Joined: Tue Feb 20, 2018 12:31 am

Re: HOTSPOT login https error

Fri Mar 15, 2019 7:22 pm

could you share your configuration? I would be grateful
 
User avatar
pcunite
Forum Guru
Forum Guru
Posts: 1345
Joined: Sat May 25, 2013 5:13 am
Location: USA

Re: HOTSPOT login https error

Sat Mar 16, 2019 12:01 am

Could you share your configuration? I would be grateful.

See here in this post.
 
tigro11
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 87
Joined: Tue Feb 20, 2018 12:31 am

Re: HOTSPOT login https error

Sat Mar 16, 2019 10:01 pm

it would be ideal to create a script that intercepts the call to the https page and verifies if that ip that requests the https page is authenticated.
If authenticated, there are no problems, otherwise it will load the login page.
Easy to say but to do I wouldn't know where to start
 
R1CH
Forum Guru
Forum Guru
Posts: 1101
Joined: Sun Oct 01, 2006 11:44 pm

Re: HOTSPOT login https error

Tue Mar 19, 2019 1:26 pm

You don't start, since that is impossible. The security of HTTPS negates attempts to intercept such requests, unless you want to teach your users to blindly ignore serious security errors.
 
tigro11
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 87
Joined: Tue Feb 20, 2018 12:31 am

Re: HOTSPOT login https error

Tue Mar 19, 2019 2:02 pm

so we have no hope for a solution

Who is online

Users browsing this forum: GoogleOther [Bot] and 79 guests