Skip to content

MikroTik Script Generator

Prerequisites

Scripts were tested and are proven to work on RouterOS 6.48.6.

This guide assumes that you already have a venue created and WinBox downloaded. If you don’t have yet installed WinBox, please see this link:

https://mikrotik.com/download

Add your MikroTik device MAC Address to the panel.

After logging into the WinBox, verify your MAC Address. You can do so by going to the Interface->ether1->MAC Address tab.

2023-01-18_17-28.png

Copy the address and paste it in the panel. To do that, go to the Access Points tab-> + Add.

2023-07-11_12-38.png

Paste the MAC Address in the tab (1) and press Create (2).

2023-02-20_16-57.png

After you have added the MAC Address, it should appear in the panel (1). Press the icon marked as “2” on the screenshot below and select your configuration requirements.

2023-07-11_12-44.png

In this guide we will configure Social WiFi on Wireless Interface and Ethernet port number “3”:

2023-02-20_17-12.png

  1. Interface type

Here you can choose whether you want to only configure Wireless interface, Ethernet port, or both. In this guide we will do both (WiFi and Ethernet).

  1. SSID Name

If “WiFi” checkbox is enabled, you can set up your SSID name.

  1. Ethernet

If “Ethernet” checkbox is enabled, you can pick the port number on which Social WiFi can be configured. All the chosen ports will be affected.

  1. Idle timeout

Amount of time it takes to disconnect idle device. Default value is 3 days (recommended).

  1. Download script

After your configuration is all set, you can go ahead and download the script.

Upload the configuration to the MikroTik device.

As you download the script, locate the file and upload it to the MikroTik file system. To do that, simply go to MikroTik “Files” and drag the file there.

2023-02-20_17-26.png

2023-07-11_15-04.png

Now, the file should be uploaded to the MikroTik file system. Open “New Terminal” window and enter the following command:

import socialwifi_mikrotik.rsc

“socialwifi_mikrotik.rsc” is the default name of the file with the script when you download it.

2023-07-11_15-09.png

Press enter. You should see the files downloading.

After the files are downloaded, you will be prompted to reboot the router. Simply press “y” on your keyboard and let it reboot.

2023-07-11_15-10.png

The device will proceed with the reboot. After it boots up, Social WiFi should be configured! Try connecting to the network.