WebFig

These instructions 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.

Compatibility

Social WiFi has been tested and is proven to work on the following configurations:

RouterOS versions:

  • 6.x

  • 7.5 and newer (hotspot doesn’t work on RouterOS 7.x below version 7.5)

Connect 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.

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.

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].

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:

EnabledYes

Address

10.8.0.1/16

Network

10.8.0.0

Interface

sw

You can leave the β€œComment” field empty.

Click [Apply].

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:

Namedhcp_pool_sw

Addresses

10.8.0.2-10.8.255.254

Apply

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:

EnabledYes

Name

dhcp_sw

Interface

sw

Lease Time

3d 00:00:00

Address Pool

dhcp_pool_sw

Apply

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:

Address10.8.0.0/16

Gateway

10.8.0.1

DNS Servers

10.8.0.1

Apply

Configure your RADIUS

Select section β€œRadius” in the menu on the left side of the page.

Click [Add New] button.

Fill in the form:

Enabledyes

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

Timeout

1000

Apply

Download hotspot files

Select section β€œQuick Set” in the menu on the top right of the page.

Write down or copy value of β€œMAC Address” field.

Open following page in any internet browser:

Type or paste β€œMAC Address” value from the previous step into β€œMAC address” field.

Click [Get files].

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.

Select section β€œFiles” in the menu on the left side of the page.

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.

Configure your hotspot

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 Namelogging.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

Login By

HTTP PAP

Apply

Select section β€œIP” and subsection β€œHotspot” in the menu on the left side of the page.

Click [Add New] button

Fill in the form:

Namesocialwifi

Interface

sw

Address Pool

dhcp_pool_sw

Idle Timeout

00:05:00

Apply

Select tab β€œUser profiles” on the top of the page.

Click β€œdefault” name.

Fill in the form:

Address Pooldhcp_pool___sw

Keepalive Timeout

3d 00:00:00

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:

Commentplace hotspot rules here

Apply

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

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. Hostsw-login.com

Apply

Repeat those steps for each of the addresses below:

Mandatory:

*.socialwifi.com 
sw-login.com 
*.youtube.com 
youtube-ui.l.google.com 
ytimg.l.google.com 
*.ytimg.com 
*.googlevideo.com 
yt3.ggpht.com 
*.l.googleusercontent.com 
*.facebook.com 
connect.facebook.net 
*.fbcdn.net 
www.googletagmanager.com 
www-googletagmanager.l.google.com 
www.googleadservices.com 
pagead.l.doubleclick.net 
www.google.* 
facebook.com 
*.facebook.com 
*.fbcdn.net 
accounts.google.* 
accounts-cctld.l.google.com 
ssl.gstatic.com 
fonts.gstatic.com 
gstaticadssl.l.google.com 
fonts.google.com 
accounts.youtube.com 
www3.l.google.com 
content.googleapis.com 
apis.google.com 
plus.l.google.com 
play.google.com 
www.google.com 
linkedin.com 
*.linkedin.com 
*.l-msedge.net 
*.dc-msedge.net 
*.licdn.com 
*.epsiloncdn.net 
*.akamai.net 
twitter.com 
api.twitter.com 
*.twitter.com 
*.twimg.com 
*.edgecastcdn.net 
*.akahost.net

(optional) YouTube widget

How to configure devices to make YouTube widget work?

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:

Interfacewlan1

Bridge

sw

Apply

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:

Enabledyes

Mode

ap bridge

SSID

Your desired network name

Apply

Reboot

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

Last updated