Mikrotik RouterOS

 1. Getting started with WinBox

Launch WinBox app. After selecting “...” button wait a while to get MAC Addresses list. Select requested address (not IP if you are in a different net). Don’t type any password.

Confirm the action by pressing Connect button.

2. Downloading the latest RouterOS

This option appears only in default configuration.

Confirm the Remove Configuration option. From the address http://www.mikrotik.com/download/ download the latest firmware:

RouterOS > mipsbe > v6.6 > Upgrade package (options may vary if you configure another Routerboard)

2.1. Upgrading your MikroTik

Upload Firmware file (.npk) to routerboard
(drag and drop it on an open area Winbox, or "copy" and then paste into the folder 

Restart routerboard: System > Reboot. After rebooting connect with Winbox again.

3. Cleaning up

You can skip this step.

Remove unnecessary packages - to boost your memory and performance:
System > Packages - delete packages which have a note that they are uninstalled:


Important packages that should stay:

  1. advanced-tools
  2. dhcp
  3. hotspot
  4. security
  5. system
  6. wireless

Other packages at your decision.
Follow simple rule: what you don’t need must go away.

4. Setting SNTP client

After the next reboot: System, Reboot configure SNTP client (time):
System > SNTP Client

Enabled: Checked
Mode: Unicast
Primary NTP Server: 0.north-america.pool.ntp.org
Secondary NTP Server: 1.north-america.pool.ntp.org


Enable the correct time zone System > Clock > Time Zone Name:
America/Montreal (or according to your location):

The time is automatically synchronized after the correct termination of LAN configuration.

5. Setting up DHCP client

Run DHCP client on ether1 interface: IP > DHCP Client > +

New DHCP Client DHCP Client tab
Interface: ether1

Result example:

6. Adding the bridge

Add the bridge to all ports except ether1 and SFP1:
Bridge > Bridge tab > +

New Interface: General tab

7. Adding the bridge ports

Bridge > Ports tab > +

New Bridge Port: General tab
Interface: ether2 gradually to a ether10 and wlan1
all on Bridge:bridge-HS

8. Setting the WiFi part

Configurate WiFi part (Wireless) - first activate the interface:
Wireless > Interfaces tab  > select wlan1 > 

Configure in the Advanced Mode to see all available options (e.g. Country).
We have to set ap-bridge, eg:

Select wlan 1
Interface <wlan1>: Wireless tab
Mode: ap bridge
SSID: Name of your WiFi

Country:  Configure it according to local laws and conditions (configuring engineer must know these conditions! - in the United States use the options as shown).

Enable antennas
Interface <wlan1>: HT tab
Chains: checked all

Logging in must be turned off - make a check:
Wireless Security Profiles TabSelect Default

Security profile <default> General tab
Name: default
Mode: none

9. Definition of the SOCIFI hotspot

Run the definition of hotspot:
IP > Hotspot > Servers TabHotspot Setup

bridge-HS Instead of addresses listed in this figure, we recommend a different address, than the address of the interface (bridge-HS), eg:, see the notes at the end of the manual.

The number of IP addresses should submit their license (L4 = 200 addresses). See notes at the end of the manual.

Hotspot Setup:

  1. HotSpot Interface: bridge-HS
  2. Local Address of Network:
  3. Address Pool of Network: -
  4. Select Certificate: none
  5. IP Address of SMTP Server:
  6. DNS Servers: / /
    First DNS server address must be the interface address!!
  7. DNS Name: hotspot.socifi.com (required)
    This domain could be adjusted to fit your needs. For example hotspot.mydomain.com
  8. Name of Local HotSpot User: user

10. Change Hotspot settings

Remove Shared User (default = 1):
IP > Hotspot
 User ProfilesDefault , General Tab

Shared Users: clear

Addresses per MAC = 1 (default = 2 )    

IP > Hotspot > Server hotspot1

Addresses per MAC: 1

Change the Name from the default value of hotspot1 to value "MK_ <serial number of Mikrotik>", for example "MK_3F0602DFA144". Where to find the serial number is described in the section 15.


Change the method of the Authentication:
IP Hotspot Server Profiles select hsprof1

Hotspot Server Profile <hsprof1> Login Tab
HTTP PAP: checked

Use RADIUS: Checked
Default Domain:
Location ID:
Location Name:
Mac Format: XX:XX:XX:XX:XX:XX
Accounting: Checked
Interim-Update: 00:01:00
Nas Port Type: 19 (wireless-802.11)

Now define a list of allowed servers, IP > Hotspot Walled Garden:

Create WalledGarden script: System > Scripts +
Name: WalledGarden

Copy & paste following script:  

The result is a list of servers:

11. Creating a definition for hotspot login

Script definition for content of hotspot / login.html

We generate a hotspot / login.html file the same way: System > Scripts > +
Name: ReplaceLogin

Click Apply and than run script: Run Script (change takes the effect by changing the date and time of file: File hotspot/login.html). Copy & paste following script:

12. Changing the default password

Change the default password (defaultly blank) on hard and complex one:
System > Password
(at least 8 characters, uppercase and lowercase letters and digits)

13. Configuring the RADIUS server 

Add primary radius server (RADIUS Server 1):
Radius + General tab

hotspot: checked
Called ID :
Address: rad-1-euw-1.socifi.com (for example)

Authentication port: 1812
Accounting port: 1813
Timeout: 300 ms
Acccountig Backup: unchecked
Src. Address:

Add secondary radius server (RADIUS Server 2):
Radius + General tab

hotspot: checked
Called ID :
(for example)

Secret: socifi
Authentication port: 1812
Accounting port: 1813
Timeout: 300 ms
Acccountig Backup: unchecked
Src. Address:

14. Safety in the end, but not the last

In conclusion, we recommend modifying the firewall so no one (except you :) could get into management of MikroTik: IP > Firewall > +

New Firewall Rule> General tab
chain: input
In. Interface: select bridge-HS

New Firewall Rule> Action tab
Action: drop

New rule must be at the last line:

We recommend checking NAT/Masquerade rules on IP / Firewall / NAT section. This rule is created automatically when a Wizard for Hotspot creation is used. Some Mikrotik firmware versions don't create such a rule.

 15. Connecting your MikroTik to SOCIFI Dashboard

When adding Mikrotik you'll need to use Serial number (not MAC address). It can be found here: