Page 1 of 1

Hotspot external page

Posted: Tue Jan 07, 2014 11:46 pm
by bigguns
Hi there
I have multiple hotspots at different sites, and at the moment I have a login page at each sure which I update files to each hotspot when needed.

I'm looking to move the local files to my main website / radius server along with the login field.

Is this possible to do and how do you get this to work when I am using DMA softlabs radius server.

So basically I want a simple redirect on the hotspot to an external site.

Re: Hotspot external page

Posted: Wed Jan 08, 2014 6:54 pm
by noib
Hello

This is possible. Set up a hotspot on your Mikrotik device and redirect login requests to your website by changing the login.html file like this:
<html>
<head>
<title>Please wait</title>

<body onload='connexion.submit()'>

<h2 align=center><i>Please wait</i></h2>

<form name='connect' action='http://www.your_portal.com' method='post'>
  <input type='hidden' name='sip' value='$(server-address)'>
</form>

</body></html>
Of course, http://www.your_portal.com must be in the hotspot walled garden.

When the registration/login is complete, http://www.your_portal.com must redirect the client to the local hotspot page using a page like this
  <html>
  <head>
  <title>Please wait</title>
  <html><body onload='connexion.submit()'>
  <h2><i>Please wait</i></h2>
  
  <form name='connexion' action='$initial_login_URL' method='post'>
    <input type='hidden' name='username' value='$login'>
    <input type='hidden' name='password' value='$password'>
    <input type='submit' value='OK' name='OK'>
  </form>
  </body></html>
Where $initial_login_URL is the mikrotik hotspot address, which was passed in the $(server-address) parameter.


Another option is to get a mikrotik device online at your ISP, reachable from the internet, and create EoIP tunnels from your APs to your controller to redirect all client traffic.

Re: Hotspot external page

Posted: Thu Jan 09, 2014 3:08 am
by nerdtron

Re: Hotspot external page

Posted: Fri Aug 18, 2017 6:43 pm
by coldspot
Hi there
I have multiple hotspots at different sites, and at the moment I have a login page at each sure which I update files to each hotspot when needed.

I'm looking to move the local files to my main website / radius server along with the login field.

Is this possible to do and how do you get this to work when I am using DMA softlabs radius server.

So basically I want a simple redirect on the hotspot to an external site.
Could you please help me in starting similar hotspot setup? I want to use radman and mikrotik. CTS for url logs of users. Can you give me your email. Will be very thankful.