Community discussions

MikroTik App
 
User avatar
mjz
just joined
Topic Author
Posts: 13
Joined: Mon Jan 05, 2015 11:17 am
Location: Iran
Contact:

using external login page for hotspot

Wed Mar 02, 2016 8:49 am

hello

I have a very big project and I don no how to do one part of it . and right now i'm with my employer and the dead time is so close . help me out please

I have a mikrotik CCR 1036 as my service provider such as hotspot, vlan and etc . linux server for using apache as my external hotspot login page . BRAS as my gateway . IBSng software for my RADIUS and AAA . Altai access points as for my clients .

so right now everything is connected . my only problem is how to redirect my hotspot login page to my apache web server .
this is how my client should flow to get internet
connecting to AP ==> login or signin in my external login page ==> AAA in my IBSng software ==> get internet in my BRAS gateway ...
There's a hunger still unsatisfied ...
Pink Floyd

MTCNA ===> DONE
MTCWE ===> DONE
MTCRE ===> DONE
MTCTCE ===> DONE
MTCUME ===> ------
MTCINE ===> ------
 
sasbibic
just joined
Posts: 8
Joined: Mon Mar 17, 2014 11:12 am

Re: using external login page for hotspot

Wed Mar 02, 2016 10:00 am

I think here is pretty well explained:

http://wiki.mikrotik.com/wiki/HotSpot_e ... login_page

/Sas
 
User avatar
mjz
just joined
Topic Author
Posts: 13
Joined: Mon Jan 05, 2015 11:17 am
Location: Iran
Contact:

Re: using external login page for hotspot

Wed Mar 02, 2016 11:35 am

this is the mikrotik login page and i have nothing to do with it !

I have my own php coding and my own login page .

I think i should play with firewall rules and NAT rules but i don no how and where to put them
There's a hunger still unsatisfied ...
Pink Floyd

MTCNA ===> DONE
MTCWE ===> DONE
MTCRE ===> DONE
MTCTCE ===> DONE
MTCUME ===> ------
MTCINE ===> ------
 
User avatar
czolo
Member
Member
Posts: 418
Joined: Fri Mar 04, 2005 9:49 am
Location: Poland (Warsaw)
Contact:

Re: using external login page for hotspot

Wed Mar 02, 2016 12:21 pm

Change login.html file. Add your.domain.com do Walled-Garden.
<html>
<head><title>redirector</title></head>
<body>
$(if chap-id)
<noscript>
<center><b>JavaScript required. Enable JavaScript to continue.</b></center>
</noscript>
$(endif)
<form name="redirect" action="http://your.domain.com" method="post">
<input type="hidden" name="mac" value="$(mac)">
<input type="hidden" name="ip" value="$(ip)">
<input type="submit" value="continue">
</form>
<script language="JavaScript">
<!--
   document.redirect.submit();
//-->
</script></center>
</body>
</html>          
| --= Czo|_o =--
| http://wifi4eu.pl
| Innovation in WiFi

Who is online

Users browsing this forum: Baidu [Spider] and 79 guests