Mikrotik RouterBoard

There guides are provided using the Mikrotik Winbox program as an interface with the RouterOS.

The Winbox program can be obtained from the MikroTik website - http://www.mikrotik.com/download)

Start by logging into your Mikrotik device.

Click on Radius on the left menu


In the Radius dialogue box, click on the "+" enter the below settings:
  • Service: Hotspot
  • Address: *insert radius_server_ip here*
  • Secret: *insert radius_secret here*
  • Authentication Port: 1812
  • Accounting Port: 1813

Press OK to Save


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

  • Service: Hotspot
  • Address: *insert radius_server2_ip here*
  • Secret: *insert radius_secret here*
  • Authentication Port: 1812
  • Accounting Port: 1813

    Press OK to Save


  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:

  • Hotspot Interface: This should be the interface your guest users connect through, such as the Wireless port, or an Ethernet port that is connected to an access point or switch.
    Click "Next"
  • Local Address of Network:
    Click "Next"
  • Masquerade Network: Ticked
    Click "Next"
  • Address Pool of Network:
    Click "Next"
  • Select Certificate: None
    Click "Next"
  • IP Address of SMTP Server: leave at default
    Click "Next"
  • DNS Servers: and
    Click "Next"
  • DNS Name: Leave blank
    Click "Next"

    Click "OK" to Complete


In the Hotspot Window, on the Server tab, double-click the hotspot you've just created to load the Hotspot Server Window

Change the Name to the MAC address of your Mikrotik WAN interface. To  find it, go to "Interfaces" on the left menu and then click on "ether1-gateway" or whatever your WAN interface is.
Note the format of the MAC should be AA-BB-CC-DD-EE-FF (all capitals with hyphens between each two digits)


In 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 General tab:
  • Hotspot Address: 
On the Login tab:
  • HTTP PAP: Ticked
  • All others: Unticked 
On the RADIUS tab:
  • Use RADIUS: Ticked
  • MAC Format: XX-XX-XX-XX-XX-XX
  • Accounting: Ticked
  • Interim Update: 00:02: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

On the main Winbox interface, click New Terminal to open the Terminal Window.
Copy the following text:

/ip hotspot walled-garden
add dst-host=*insert access_domain here*

add dst-host=*cloudfront*
add dst-host=*venuewifi*
add dst-host=*openweathermap*

add dst-host=*stripe*

and Paste this into the Terminal Window (right click to Paste). Press Enter to run the command.

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 to the terminal window

/ip hotspot walled-garden
add dst-host=*facebook*
add dst-host=*fbcdn*
add dst-host=*akamai*

/ip hotspot walled-garden
add dst-host=*twitter*
add dst-host=*twimg*

/ip hotspot walled-garden
add dst-host=*linkedin*
add dst-host=*licdn*

/ip hotspot walled-garden
add dst-host=*instagram*

Supplemental WLAN Set up details:

If you chose WLAN for your hotspot during your setup the Interface on Hotspot Server above, you will now need to enable the SSID you intend to use. On the left hand menu, click on "Wireless" and on the Wireless Tables window press the Tick icon to enable the WiFi.

To define the SSID double-click on the wlan1 entry in this view and click on the Wireless tab. and change the SSID field to one of your choosing.

 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 in to the "hotspot" folder in the File List window.


 *insert mikrotik_files here*

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.