Hotspot Setup

Hotspot setup guide for Winbox:

This is the hotspot setup guide that explains how to configure a MikroTik hotspot to work with DataTill to provide free trial access, hotspot vouchers, prepaid accounts and radius account authentication.

Please remember, that in order to run a hotspot on DataTill the MikroTik must have a level 4 MikroTik license and up.

Step 1. Upgrade router-board firmware and software packages:

Please note that when upgrading router board firmware and software always start with the firmware then the software packages. Reason: You will lose your wireless package if you upgrade the firmware last!

Step 2. SETUP PPPoE ACCOUNT:

  1. Go to the PPP tab.
  2. Click on following button
  3. Click on PPPoE Client
  4. Leave NAME as default.
  5. Select the UPLINK port for the INTERFACE tab.

6. Navigate to DIAL OUT tab and fill in client PPPoE details as shown below.

Step 3. Configure Bridge on network:

  1. Navigate to BRIDGE tab.
  2. Click on icon as shown 

  3. Create bridge and name as follow: bridge1-Internal.

  4. Navigate to PORTS tab.
  5. Click on icon as shown 

  6. Insert ports 1,2,3,4 in the bridge. 
    NB: DO NOT INSERT UPLINK PORT IN BRIDGE

7. Navigate to IP/ADDRESSES

8. Click on icon as shown 

9. Insert IP range for bridge created on previous steps.

10. Navigate to IP/DHCP SERVER

11. Insert DHCP on bridge1-Internal

Step 4. Hotspot firewall setup:

  1. Navigate to ip/firewall/NAT
  2. Click on icon as shown 

  3. NAT bridge1-Internal IP as masquerade

  4. Choose Chain as srcnat.

  5. Fill in Address: include entire range __10.0/24
    NB: Do not choose an interface.

6. Navigate to Action tab

7. Choose Action as masquerade

Step 5. VLAN SETUP:

  1. Navigate to Interfaces/VLAN
  2. Add VLAN as shown below.
  3. Choose interface as bridge1-Internal.
  4. Navigate to IP/Addresses
  5. Insert hotspot IP on VLAN interface.

Step 6. DNS Setup:

DO NOT ALLOW REMOTE REQUESTS

  1. Navigate to IP/DNS

  2. Insert DNS IP on Servers tab.

    DO NOT ALLOW REMOTE REQUESTS
    Navigate to Static Tab
    Insert Static Unifi DNS IP

Step 7. Setup Radius:

  1. Navigate to Radius tab.

  2. On service select hotspot

  3. On Address add the radius IP

  4. On Secret add Radius Password

  5. On Timeout insert 3000ms

  6. On Sac Address insert Pope IP address

7. Navigate to Incoming tab and complete as shown below

Step 8. Hotspot Comfit Setup:

  1. Navigate to IP/Hotspot
  2. On server tab select Hotspot Setup tab

3. Follow Hotspot setup Wizard as shown.

4. Hotspot Interface: Select your VLAN interface. Local Address of Network: Ensure that Masquerade Network is enabled.

5. Address Pool of Network:

6. Select Certificate:

7. IP Address of SMTP server:

8. DNS Server:

9. DNS Name:

10. Create local Hotspot user:

11. Basic hotspot setup has now been completed.

12. Navigate to IP/Hotspot/Users and delete the user that was created through the Wizard setup.

13. Navigate to IP/Hotspot/Servers and select your hotspot server.

14. Name: Insert your hotspot name here

15. Profile: Select your default profile here

16. Navigate to Server Profiles and select created hotspot profile.

17. General tab: Fill in same name exactly the same as given in step 15 of Hotspot Configuration Setup

18. Rate Limit (rx/tx): This is for queueing the entire hotspot please sees below screenshot. 

 Directory: Select landing page that was uploaded from DataTill (See screenshot above.)

19. Navigate to Login tab: Ensure that your Login tab is exactly configured as screenshot below.

20. Navigate to IP/Hotspot/Server Profile/Radius: Ensure that your RADIUS tab is exactly configured as screenshot below.

21. Navigate to IP/Hotspot/User Profile

Insert Rate Limit (rx/tx) with entry of 5M/5M as shown in screenshot below.

Step 9 User List, SNMP and NTP Setup:

  1. Setup an appeaser user and password with full permissions

  2. Navigate to IP/SNMP: Enable and complete SNMP.

  3. Contact Info: Insert your Business Name here.

  4. Location: Insert client Business Name here

  5. Navigate to System/SNTP Client: Enable and complete SNTP Client

  6. Primary SNTP Server: 98.1.1 (This address can change) Hotspot setup completed.

Now we move to Datatill to add a network device, Hotspot Location and NAS list.


DataTill system side notes:

Step 1. Configure Mikrotik hotspot:


This step is the same as the Winbox hotspot guide above. There are just a few settings to double check compatibility with DataTill, such as the ports to be used.

Create a hotspot server and ensure you give it a unique server name. This name must be unique across all hotspots.
This name is used to identify the hotspot when the requests reach DataTill.

Create a hotspot profile using the following settings:

  • The hotspot address must be a local IP address defined on the router; it does not need to be on the same interface as the hotspot.

  • The DNS name should be short, and preferably not an existing public address. The MikroTik router will auto add a local DNS entry on the router pointing to the IP address defined above.

  • If multiple hotspot profiles are defined on the router, they can share the same DNS name and hotspot address, but not the same interface.

  • Note that the HTML directory can be left default for now. Once you have created the hotspot location in DataTill the system will generate a new HTML folder which will need to be selected here.

  • Tick all the login by settings except for HTTPS

  • Change the http cookie lifetime to 3 days. (This can be tuned to your own preference)

  • Set trail uptime limit and trial uptime reset to 24 hours. The DataTill server will be controlling the disconnection of free trial sessions.
  • Enable the radius tick box. Ensure that the radius server is defined in the MikroTik router, and that the NAS is defined in DataTill.

  • Tick the Accounting tick box

  • Change the interim update interval to 1 minute.

Add a Radius server to the router.

At least the hotspot service needs to be checked.
Make sure the secret matches the secret defined under the NAS in DataTill. Use the following ports:

  • Authentication Port: 1812
  • Accounting Port: 1813
  • Incoming Port: 1700

Make sure the timeout is increased from 300ms to 3000ms.

Step 2. Create walled garden entries in DataTill:

Go to “Hotspot, Walled Garden Entries”
Add the following walled garden entries as a minimum:

  • IP address of the DataTill server
  • IP address of your DNS server

You will be able to update the walled garden entries across all MikroTik routers at once by clicking on the red “Update Routers” button.


Note that all existing walled garden entries are removed from the MikroTik router when the update is done.

Step 3. Create network device in DataTill:

Go to “Devices, Network Devices”
Add a new device for each MikroTik hotspot you are adding.

Note that you must use a valid Device Location when adding a Network Device.
To add a new location go to the device location drop down at “ISP Workflow, Workflow Setup, Locations”

First enter the IP Address. DataTill will check whether the IP address is reachable.
Then enter the login username and password. This account should be configured as a full user on the MikroTik router (system/users). Also ensure the MikroTik API is enabled on the router (ip/services)
Then click on the “Scan” button. DataTill will connect to the router via SNMP. If this connection is successful it will update the device type, device make and device model, as well as the device description.
It will then connect to the router via the MikroTik API, and retrieve the firmware version.
If DataTill cannot connect to the router via the MikroTik API then it will not be able to make changes to the router or manage free trial sessions.

Step 4. Create hotspot in DataTill:

Go to “Hotspot, Locations.”

Add a new hotspot location for each MikroTik hotspot you are adding.

(Note that entries may be auto added to this list users access the hotspot before you have configured the hotspot location in DataTill)

The default options for all new hotspots can be configured under “Setup, Hotspots.” All new hotspots created defaults to these values.
If the defaults are set up correctly it can save a lot of time when adding new hotspot locations.

The Hotspot ID must match the hotspot name as defined on the MikroTik router under the hotspot server definition.
Make sure that the hotspot router previously defined under network devices above are selected. This is used to link the router API to the landing pages. If not done or incorrectly linked weird results will happen.

Under the free trial section, you should add the limits that needs to be applied to free trial sessions. This includes data and time limits.

If no limit is defined, then trial users will have unlimited access!

Lots of other hotspot settings are available and are self-explanatory.

Step 5. Download settings to Mikrotik router:

To download the settings to the MikroTik router click on the yellow button next to the router just added.

This will update the walled garden settings on the router and will generate and download the hotspot files to a specific folder on the router.
You need to take note of the name of the folder displayed on this popup window, as you need to edit the MikroTik hotspot server definition to use this html folder.

There are various reports available to show hotspot activity, under the “Hotspots” menu.