Table of Contents


Mikrotik Hotspot (Advanced)

Introduction

Although the instructions on this page makes use of the RB751, the same principles should also apply to other Mikrotik Routerboards. The following advanced configurations will be covered in this document:


Central Login Pages

Include PAP support on Hotspot


Fetch Replacement Login Pages

cd ~
sudo git clone https://github.com/RADIUSdesk/rdcore.git

The rdcore git repo is used to install RADIUSdesk which means these files will be on your RADIUSdesk server.

You can also download the files individually from the Github website:

filename
1.) alogin.html
2.) fstatus.html
3.) login.html
4.) logout.html
5.) status.html

login.html
$(if error == '')
<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://cloud.radiusdesk.com/cake4/rd_cake/dynamic-details/mikrotik-browser-detect" method="post">
            <input type="hidden" name="loginlink" value="$(link-login-only)">
            <input type="hidden" name="nasid" value="$(identity)">
            <input type="hidden" name="link_status" value="$(link-status)">
            <input type="hidden" name="link_login_only" value="$(link-login-only)">
            <input type="hidden" name="link_logout" value="$(link-logout)">
            <input type="hidden" name="mac" value="$(mac-esc)">
            <input type="hidden" name="type" value="mikrotik">
            <input type="hidden" name="ssid" value="Gauteng">
            <input type="submit" value="continue">
        </form>
        <script language="JavaScript">
        <!--
           document.redirect.submit();
        //-->
        </script>
        </center>
    </body>
</html>
$(else)
$(var)({
	'logged_in' 	    : '$(logged-in)', 	
	'link_login_only' 	: '$(link-login-only)',
	'error_orig'		: '$(error-orig)',
	'error'			: '$(error)'
})
$(endif)

When you are done editing the login.html page and also added the Dynamic key to the Login Page which you want to serve on the Mikrotik; you can copy the replacement pages to the Mikrotik router.


Enable HTTPs support on Mikrotik


Add an entry to the Mikrotik Walled Garden


Replace the existing pages on the Mikrotik