# Setting Up Mikrotik with Captive WiFi

Source: https://help.captivewifi.io/wifi-hardware/setting-up-mikrotik-with-captive-wifi

 

 

Using this step-by-step guide, you will quickly be able to create or edit an existing MikroTik wireless network with Captive WiFi.  
Please get in touch with your account manager for the login.html file you will need this at the end of this guide

 

 

 

# **Installing Captive WiFi on your MikroTik networks using WinBox**

 

To get started, connect to your MikroTik management section using WinBox. Use your router IP and login details to connect.

 

 **Create a new bridge**

- In the 'General' tab, make the following changes.
    
     
    
    
    - **Name -** bridge-captivewifi
        
         ![](https://cdn.eniston.com/bases/fff1f380-9b9f-410d-b4da-5fbf022e6213/attachments/mceclip1_1699375828.png)
- Choosing the relevant VLAN/LAN for your guests, select the above Bridge
 
 

- Save the changes by clicking 'OK'.
- Next, head to the **Bridge &gt; Ports &gt; Add New** tab.
 
 

 

- ![](https://cdn.eniston.com/bases/fff1f380-9b9f-410d-b4da-5fbf022e6213/attachments/mceclip5_1699375903.png)
 
 

In the 'General' tab, make the following changes

 

- **Interface - (selected interface)**
- **Bridge -** bridge-captivewifi
 
 

Save the changes by clicking 'OK'.

 

 

## **Setup the IP address for your bridge** 

*Please skip this if you already have a guest network setup*

 

**IP &gt; Addresses &gt; New**

 

 

![](https://cdn.eniston.com/bases/fff1f380-9b9f-410d-b4da-5fbf022e6213/attachments/bridge_1705661364.png)

  
Make the following changes.

 

- **Address -** 10.5.0.1/22
- **Network -** 10.5.0.0
- **Interface -** bridge-captivewifi
 
 

Save the changes by clicking 'OK'.

 

 

## **Add an IP pool**

 

**IP &gt; Pool &gt; New** *Please skip this if you already have a guest network setup*

 

 

![](https://cdn.eniston.com/bases/fff1f380-9b9f-410d-b4da-5fbf022e6213/attachments/mceclip7_1699376182.png)

Make the following changes.

 

- **Name -** pool-captivewifi
- **Addresses -** 10.5.0.2-10.5.3.254
- **Next pool -** none
 
 

Save the changes by clicking 'OK'.

 

## **Create a new DHCP server**

 

**IP &gt; DHCP Server &gt; Networks &gt; New** *Please skip this if you already have a guest network setup*

 

 

![](https://cdn.eniston.com/bases/fff1f380-9b9f-410d-b4da-5fbf022e6213/attachments/mceclip9_1699376263.png)

  
Make the following changes.

 

- **Address -** 10.5.0.0/22
- **Gateway -** 10.5.0.1
- **DNS Servers -** 10.5.0.1
 
 

Save the changes by clicking 'OK'.

 

 

Next, head to the **IP &gt; DHCP Server &gt; DHCP &gt; New** tab.  
*Please skip this if you already have a guest network setup*

 

 

![](https://cdn.eniston.com/bases/fff1f380-9b9f-410d-b4da-5fbf022e6213/attachments/mceclip10_1699376282.png)

In the 'Generic' tab, make the following changes.

 

- **Name -** server1
- **Interface -** bridge-captivewifi
- **Address Pool -** pool-captivewifi
    
    Save the changes by clicking 'OK'.
 
 

 

## Create the Hotspot Profile 

 

**IP &gt; Hotspot &gt; Server Profiles &gt; New**

 

 

![](https://cdn.eniston.com/bases/fff1f380-9b9f-410d-b4da-5fbf022e6213/attachments/mceclip12_1699376366.png)

In the 'General' tab, make the following changes.

 

- **Name -** captivewifi-profile
- **DNS Name -** hotspot.captivewifi.io
- **HTML Directory -** flash/hotspot
 
 

![](https://cdn.eniston.com/bases/fff1f380-9b9f-410d-b4da-5fbf022e6213/attachments/mceclip14_1699376402.png)

In the 'Login' tab, make the following changes.

 

- **Login By -** HTTP PAP
 
 

 

## **Create the Hotspot User**

 

**IP &gt; Hotspot &gt; Users**

**![](https://cdn.eniston.com/bases/fff1f380-9b9f-410d-b4da-5fbf022e6213/attachments/mceclip0_1716534569.png)**

- **Click Add**
- **Server = All**
- **Name = admin**
- **Profile = (which ever the server name is)**
 

## **Create the Hotspot User Profile**

**![](https://cdn.eniston.com/bases/fff1f380-9b9f-410d-b4da-5fbf022e6213/attachments/mceclip0_1720643786.png)**

- **Click Add**
- **Server = Default**
- **Pool = pool-captivewifi**
- **Session Timeout = 01:30:00**
- **Keepalive timeout = 00:02:00**
- **Startus Autorefresh = 00:01:00**
 
 

 

## **Create the Hotspot Server**

 

**IP &gt; Hotspot &gt; Servers &gt; New**

 

 

![](https://cdn.eniston.com/bases/fff1f380-9b9f-410d-b4da-5fbf022e6213/attachments/mceclip15_1699376426.png)

Make the following changes.

 

- **Name -** server-captivewifi
- **Interface -** bridge-captivewifi
- **Address Pool -** pool-captivewifi
- **Profile -** captivewifi-profile
 
 

Save the changes by clicking 'OK'.

 

## **Add your login page IPs to the walled garden**

 

**IP &gt; Hotspot &gt; Walled Garden &gt; New**

 

 

![](https://cdn.eniston.com/bases/fff1f380-9b9f-410d-b4da-5fbf022e6213/attachments/mceclip16_1699376463.png)

Make the following changes.

 

- **Dst. Host -** The domain (See below)
 
 

Save the changes by clicking 'OK'.

 

 

This step must be repeated for the following domains; you must create a walled garden entry for each. This will enable guests to access the login page before they are authorised.

**Required domains**

getonline.captivewifi.io  
kit.fontawesome.com  
captivewifi.fra1.digitaloceanspaces.com  
\*.captivewifi.io

You should already have the login.html, from the support team, copy the file in to the /flash/hotspot

![](https://downloads.intercomcdn.com/i/o/223622602/2022cf62446f1b216e037035/2020-07-02+19.38.45.gif)
