This instruction will guide you through configuration of your Mikrotik to work with Social WiFi, but without using winbox software. This solution could be useful if you are using an operating system other than Windows.

Please complete every step as detailed below.

1. Plug in the router

Plug an ethernet cable into port 2 of your Mikrotik. Plug in the other side into your computer.
Insert internet cable into port 1 of your Mikrotik.

2. Open WebFig

Open an internet browser (Firefox, Google Chrome, Internet Explorer, etc.) and open page:
http://192.168.88.1/ and choose WebFig in top right corner.

3. Add a bridge

In WebFig go into the “Interfaces” section in the menu on the left side of the page.
Click [Add New] button.

Select “Bridge”

Insert new name: “sw” and accept by clicking [Apply].

4. Configure the bridge

Select section “IP” and subsection “Addresses” in the menu on the left side of the page.
Click [Add New] button.

Fill in the form:

  • Enabled: yes
  • Address: 10.8.0.1/16
  • Network: 10.8.0.0
  • Interface: sw

You can leave the “Comment” field empty.

Click [Apply].

5. Add IP address pool

Select section “IP” and subsection “Pool” in the menu on the left side of the page.
Click [Add New] button.

Fill in the form:

  • Name: dhcp_pool_sw
  • Addresses: 10.8.0.2-10.8.255.254

Click [Apply].

6. Add DHCP server

Select section “IP” and subsection “DHCP Server” in the menu on the left side of the page.
Click [Add New] button.

Fill in the form:

  • Name: dhcp_sw
  • Interface: sw
  • Lease Time: 3d 00:00:00
  • Address Pool: dhcp_pool_sw

Click [Apply].

7. Add address and gateway to the DHCP server

Select section “IP” and subsection “DHCP Server” in the menu on the left side of the page.
Select tab “Networks” on the top of the page.
Click [Add New] button.

Fill in the form:

  • Address: 10.8.0.0/16
  • Gateway: 10.8.0.1
  • DNS Servers: 10.8.0.1

Click [Apply].

8. Configure your RADIUS

Select section “Radius” in the menu on the left side of the page.

Click [Add New] button.

Fill in the form:

  • Enabled: yes
  • Service: hotspot
  • Address: 35.205.62.147
  • Secret: Radius Secret available in Access Points tab of the Social WiFi Panel
  • Authentication Port: 31812
  • Accounting Port: 31813

Click [Apply].

9. Download hotspot files

9.1 Check your MAC

Select section “Quick Set” in the menu on the top right of the page.
Write down or copy value of “MAC Address” field.

9.2 Download files package

Open following page in any internet browser:

Type or paste “MAC Address” value from the previous step into “MAC address” field.
Click [Get files].

9.3 Extract the .zip file

Locate the downloaded file on your computer. It may be in Downloads folder.

Right click on the file and select [Extract All…].

On the newly opened “Extract Compressed (Zipped) Folders” window click [Extract]. New folder will appear, containing files required for the following steps.

10. Upload captive portal files

Select section “Files” in the menu on the left side of the page.
IMPORTANT: If your Files section contains a “flash” folder, please place all files inside that folder. Otherwise, the files will be removed on router restart.

Click [Browse…]

Navigate to the extracted files from step Extract the .zip file. Select “login.html” and accept.

Repeat this steps for:

  • “md5.js” file.
  • “rlogin.html” file.
  • “flogin.html” file.
  • “alogin.html” file.

11 Configure your hotspot

11.1 Configure a default server profile

Select section “IP” and subsection “Hotspot” in the menu on the left side of the page.
Select tab “Server profiles” on the top of the page.
Click “default” name.

Fill in the form:

  • DNS Name: logging.sw.com
  • HTML Directory: . (period) (IMPORTANT: If your Files section contains a “flash” folder, make sure this field says “flash/.” without question marks)
  • Use RADIUS: yes

Click [Apply].

11.2 Configure a hotspot server

Select section “IP” and subsection “Hotspot” in the menu on the left side of the page.
Click [Add New] button

Fill in the form:

  • Name: socialwifi
  • Interface: sw

Click [Apply].

10.3 Change your hotspot settings

Select tab “User profiles” on the top of the page.
Click “default” name.

Fill in the form:

  • Keepalive Timeout: 03:00:00

12. Walled Garden – add a comment

Select section “IP” and subsection “Hotspot” in the menu on the left side of the page.
Select tab “Walled Garden” on the top of the page.
Click [Add New] button.

Uncheck “Enabled”.
Clear the field “Dst. Host”.
Fill in the form:

  • Comment: place hotspot rules here

Click [Apply]

This comment is used by Mikrotik to insert dynamic rules. It should be spelled exactly as above.

13. Walled Garden – allow domains

You should be on the page opened in the previous step (12. Walled Garden – add a comment).
Click [Add New] button.

Fill in the form:

  • Dst. Host: login.socialwifi.com

Click [Apply].

Repeat those steps for each of the addresses below (depending on your social media setup):

Mandatory:

sw-login.com
login.socialwifi.com
*.socialwifi.com

Optional:

Facebook
facebook.com
*.facebook.com
*.fbcdn.net
static.xx.fbcdn.net

Google
accounts.google.com
ssl.gstatic.com
fonts.google.com

LinkedIn
linkedin.com
*.linkedin.com
platform.linkedin.com
static.licdn.com
media.licdn.com

Twitter
api.twitter.com
twitter.com
abs-0.twimg.com
abs.twimg.com
pbs.twimg.com

(optional) YouTube widget
How to configure devices to make YouTube widget work?

14. Add bridge for WiFi

Select section “Bridge” and subsection “Ports” in the menu on the left side of the page.

A list will appear. If it already has a bridge for interface called “wlan1”, remove it by clicking
[-] button on the left side of it.

Click [Add New] button.

Fill in the form:

  • Interface: wlan1
  • Bridge: sw

Click [Apply].

15 Set SSID

Select section “Interfaces” in the menu on the left side of the page.
Click “wlan1” entry on the list of interfaces.

Fill in the form:

  • Enabled: yes
  • Mode: ap bridge

Set field “SSID” to your desired network name.
Click [Apply].

16 Reboot

Select section “System” and subsection “Reboot” in the menu on the left side of the page.


Tags

Comments are closed