MikroTik

This page explains the Captive Portal configuration for MikroTik Router OS and authentication with IronWifi.

IronWifi Console Setup

Sign in to the IronWifi Console -> Networks and create a new Network to assign a set of RADIUS servers for your network.

Click on Networks -> Captive Portals and create a new Captive Portal. Make sure the selected vendor is MikroTik. Add an Authentication Provider and download the mikrotik_login.html file. Rename the downloaded file to login.html.

MikroTik AP Setup

Sign-in to your MikroTik configuration interface, usually http://192.168.88.1

Navigate to Hotspot -> Users and add a temporary user called user1.

Step 3

Set a password for this new user.

Step 4

Navigate to Hotspot -> Servers and click the Hotspot Setup button.

Hotspot Interface: bridge

The local address of network: 192.168.89.0/24

Masquerade Network: on

Address Pool of Network: 192.168.89.10 - 192.168.89.254

Select Certificate: none

The access point will redirect you to the default Hotspot Authentication page. Sign in as "user1" and return to the Mikrotik configuration interface http://192.168.88.1

Step 7

Navigate to Hotspot -> Server Profiles and click the newly created profile called hsprof1

In the Login by section, un-check HTTP CHAP, un-check Cookie and check HTTP PAP. Also, check the Use RADIUS checkbox.

Step 8

Navigate to IP -> Hotspot -> Walled Garden IP List and allow access to the IronWifi global load-balancer - 107.178.250.42.

In the MikroTik configuration menu, navigate down to the Radius and click Add New to add RADIUS server.

In the Service section, check the hotspot checkbox. Enter information about IronWifi RADIUS servers - IP address, ports, shared secret. Increase the Timeout value to 1000 ms.

Step 10

Step 9

Use an FTP client to connect to the access point and navigate to /flash/hotspot (or /hotspot). Create a copy of the login.html file and upload the previously downloaded file login.html to the access point.

$ ftp 192.168.88.1
(username admin, empty password)
$ cd /hotspot

$ get login.html login.html-backup

$ put mikrotik_login.html login.html

Step 11