Mikrotik RouterBoard

You are here:
Estimated reading time: 2 min

Please note: Three guides are provided using Mikrotik Winbox program as an interface with the RouterOS. The Winbox program can be obtained from the MikroTik website:

https://download2.mikrotik.com/routeros/winbox/3.11/winbox.exe

Start by logging into you Mikrotik device

Basic Router Setup

Before you follow the instructions in this guide it’s important that you decide which port you will assign the role of WAN, and whether you plan to use the inbuilt WiFi for the hotspot or one of the LAN ports in conjunction with additional APs.

Hotspot Setup

Click on Radius on the left menu

Then in the Radius dialoge box, click on the “+

And enter the below settings:

Address: 52.165.34.92
Secret: It will be communicated by Hostspot
Authentication Port: 1812
Accounting Port: 1813

Click OK

On Radius window, click on the “+” again, and enter the following settings:

Address: 52.165.32.181
Secret: It will be communicated by Hostspot
Authentication Port: 1812
Accounting Port: 1813

Click OK

NAS ID Setup

Click on System > Identity on the left menu and then, On the next window write the MAC of the device in the next format XXXXXXXXXXXX (In uppercase), and close the window.

Hotspot Server Setup

Click on IP > Hotspot on the left menu and then, Hotspot Setup to start the Hotspot set up ‘wizard’ and configure with the below settings: (after each one, click Next)

Click on OK to complete

On the Hotspot Window, on the Server tab, double-click the hotspot you’ve just created to load the Hotspot Server Window.

Hotspot Server Profile Settings

Returning to setting up the Hotspot service setup: on the Hotspot Window, (IP > Hotspot) click on the Server Profiles Tab.and double-click on the newly created Profile.

On the Hotspot Server Profile dialogue window; set the following:

On the Login tab:

HTTP PAP: Ticked

All others: Unticked

On the RADIUS tab:

Use RADIUS: Ticked

MAC Format: XXXXXXXXXXXX (In uppercase)

Accounting: Ticked

Interim Unpdat: 00:15:00 Click OK to save

On the Hotspot Window click on User Profiles and double click on the default entry.

Set the following:

  • Session Timeout: 24:00:00
  • Idle Timeout: 00:30:00
  • Keepalive Timeout: blank (click the up arrow to wipe the value)

Click OK to Save

 

Creating the Login Journey Parameters:

The final step is to upload two files to the router which handle the redirection to your customised splash page.

  • Click on “Files” on the left menu.
  • Save the two HTML files below
  • Drag and drop the two .html files you downloaded into the “hotspot” folder in the File List window

Files:

login.html

alogin.html

Walled Garden

On the main Winbox interface, click New Terminal to open the Terminal Window

Type:

/ip hotspot walled-gargen add dst-host=*hostspot*

  • If you wish to support social network logins, you also need to copy and paste the blocks below for each network you plan to support, in the terminal window
Facebook

*facebook*
*akamai*
*fbcdn*
Foursquare

*foursquare*
*4sqi*
In the login box displayed during the login, it is possible to connect a Foursquare account to an existing Facebook account. In order to allow this operation, it is necessary to add also the walled garden entries for Facebook.
Google

*google*
*googleapis*
*gstatic*
Google+

*google*
*googleapis*
*gstatic*
Instagram

*instagram*
LinkedIn

*linkedin*
*licdn*
Pinterest

*pinterest*
*pinimg*
In the login box displayed during the login, it is possible to connect a Pinterest account to an existing Facebook, Google+ or Twitter account. In order to allow this operation, it is necessary to add also the walled garden entries for Facebook, Google+ or Twitter.
Twitter

*twitter*
*twimg*
Was this article helpful?
Dislike