Site icon Application System

Step-by-step guide to configuring Mikrotik – Part 3: Setting up Wifi Marketing

Steps to install Wifi Marketing on Mikrotik

Applicable to RouterOS v6.32 and later, the hotspot directory will change for older versions. To install successfully, you need to follow these steps:

  1. Generate device id (NAS_ID) on admin page. wifibiz.net
  2. Set up the Mikrotik router so that it works properly as an internet connection router. (Note that internet connection is required)
  3. Run the installation script.
  4. Assign the port or interface to the new bridge created by the script.

Detailed steps:

Step 1 and Step 2:

Step 3: Run the installation script.

#
# Best Wifi-Marketing provider: http://smartwifi.com.vn
#
{
:local redirectUrl "https://wifibiz.net/wifi/NAS_ID"
/interface bridge
add name=bridge-wifibiz
/ip hotspot profile
add hotspot-address=10.5.50.1 html-directory=/flash/wifibiz login-by=\
    http-chap,http-pap name=wifibiz radius-accounting=no use-radius=yes
/ip hotspot user profile
set [ find default=yes ] shared-users=1000
/ip pool
add name=wifibiz-pool ranges=10.5.50.2-10.5.50.254
/ip dhcp-server
add address-pool=wifibiz-pool disabled=no interface=bridge-wifibiz lease-time=\
    1h name=dhcp-wifibiz
/ip hotspot
add address-pool=wifibiz-pool disabled=no interface=bridge-wifibiz name=\
    $redirectUrl profile=wifibiz
/ip address
add address=10.5.50.1/24 comment="hotspot network" interface=bridge-wifibiz \
    network=10.5.50.0
/ip dhcp-server network
add address=10.5.50.0/24 comment="hotspot network" gateway=10.5.50.1
/ip dns
set allow-remote-requests=yes servers=8.8.8.8,8.8.4.4
/ip firewall nat
add action=masquerade chain=srcnat comment="masquerade hotspot network" \
    src-address=10.5.50.0/24
/ip hotspot walled-garden
add dst-host=wifibiz.net
add dst-host=api.wifibiz.net
add dst-host=static.wifibiz.net
add dst-host=analytics.smartwifi.vn
add dst-host=*.wifibiz.net
add dst-host=*smartwifi*
add dst-host=use.fontawesome.com dst-port=443
add dst-host=maxcdn.bootstrapcdn.com dst-port=443
add dst-host=fonts.googleapis.com dst-port=443
/radius
add address=178.128.51.224 secret=Zi0HgArisaKoevwz service=hotspot timeout=15s
/tool fetch url="https://raw.githubusercontent.com/smartwifivn/mikrotik-hotspot/master/login.html" \
    mode=https dst-path=/flash/wifibiz/login.html
/tool fetch url="https://raw.githubusercontent.com/smartwifivn/mikrotik-hotspot/master/alogin.html" \
    mode=https dst-path=/flash/wifibiz/alogin.html
}

Step 4: Done

After completing step 3, now in Mikrotik has created a bridge named bridge-wifibiz, the task is to assign the port or wlan that needs to deploy wifi marketing to this bridge to use:

At this point, wifi marketing can work, if it’s not smooth, you can reboot the router to try.

Some cases where the login page is not displayed (but shows Mikrotik’s default login page), you can fix it by downloading the following file, extract and upload 2 files login.html and alogin.html to the hotspot folder of the newly created service.

If you have difficulty, please contact support by creating a ticket from this website or contact the information posted on the website: https://smartwifi.com.vn

References: https://smartwifi.com. vn

Thank you for following the article, wish you successful installation!!!

Exit mobile version