Community discussions

MikroTik App
 
flamba
just joined
Topic Author
Posts: 2
Joined: Wed Mar 17, 2021 6:10 pm

Hotspot HTTPS , need help ;(

Wed Mar 17, 2021 6:30 pm

Good evening everyone! I am writing here because i have no more ideas and i need help...

I implemented a radius authentication system for my personal hotspot several years ago (2018).
basically it worked fine until the OVH went on fire!

It worked without https.

now i was restoring everything on a new vps and i wanted to implement the HTTPS connection.

on the new vps i installed apache2 and the let's encrypt certificate. browsing with chrome there are no errors.

i tried to import the same certificate on mikrotik but nothing changes.

basically, i can't figure out what i have to put in the hotspot profile -> DNS name field.
I have noticed that this step is crucial for the redirect to work. but i didn't understand how it works. can someone help me?
thank you

I am attaching the content of the login.html page that I loaded in mikrotik and that has always worked (without https):
<html>
<head><title>...</title></head>
<body>
$(if chap-id)
<noscript>
<center><b>JavaScript required. Enable JavaScript to continue.</b></center>
</noscript>
$(endif)
<center>If you are not redirected in a few seconds, click 'continue' below<br>
<form name="redirect" action="https://xxx.xxx.ovh/hotspot/login.php" method="post">
<input type="hidden" name="mac" value="$(mac)">
<input type="hidden" name="ip" value="$(ip)">
<input type="hidden" name="username" value="$(username)">
<input type="hidden" name="link-login" value="$(link-login)">
<input type="hidden" name="link-orig" value="$(link-orig)">
<input type="hidden" name="error" value="$(error)">
<input type="hidden" name="chap-id" value="$(chap-id)">
<input type="hidden" name="chap-challenge" value="$(chap-challenge)">
<input type="hidden" name="link-login-only" value="$(link-login-only)">
<input type="hidden" name="link-orig-esc" value="$(link-orig-esc)">
<input type="hidden" name="mac-esc" value="$(mac-esc)">
<input type="submit" value="continue">
</form>
<script language="JavaScript">
<!--
   document.redirect.submit();
//-->
</script></center>
</body>
</html>
 
R1CH
Forum Guru
Forum Guru
Posts: 1101
Joined: Sun Oct 01, 2006 11:44 pm

Re: Hotspot HTTPS , need help ;(

Thu Mar 18, 2021 6:21 pm

This is not possible. You can only use HTTPS for your payment / login gateway pages, but not for redirection. If anyone could intercept HTTPS requests it wouldn't be very secure would it?
 
flamba
just joined
Topic Author
Posts: 2
Joined: Wed Mar 17, 2021 6:10 pm

Re: Hotspot HTTPS , need help ;(

Mon Mar 22, 2021 2:32 pm

I have seen that it can be done, i saw it with my own eyes.
several hotspot services redirect to https and it works ...
I am trying , at the moment i have no certificate errors but i get a strange error Error 404: Not Found

https://www.youtube.com/watch?v=7BoSuDq2y7Q

Can anyone who knows something help me out? even paying.

Thank's

Who is online

Users browsing this forum: raiser, stricky and 208 guests