Help Center

Ubiquiti Unifi

logo UniFi - Ubiquiti Unifi

Overview

This guide shows how to configure an Ubiquiti Networks managed controller in order to integrate access points with SpotOn.

 

Prerequisites

This article applies to Ubiquiti Unifi SDN Controller with Firmware release 5.11.39 or later versions. It is required to work with these versions to be fully compatible with SpotOn. The access points need to have firmware 4.0.54 or later.

For Ubiquiti UniFi deployments to work with SpotOn’s Ubiquiti integration the following is required:

:

  • Because the UniFi controller initially serves the portal and redirects to SpotOn’s servers, the UniFi controller must be running at all time. For a Cloud Key or server this is normal. If you use the Windows or Mac desktop UniFi version on a normal computer, it is important this computer is always turned on and running UniFi. If you shut down the computer running the controller the guest portal will NOT work!
  • Equally important is that the UniFi controller is reachable by the client devices on the guest network. The specific ports used for the UniFi guest portal are TCP 8880 and TCP 8843. Since the controller usually is either running on a remote location or on another network (VLAN/subnet), these ports need to be opened or forwarded in the firewall.
     
    For a remote UniFi controller, simply forward or open the ports.
     
    For a locally hosted UniFi controller in a different network other than the guest network, traffic from the guest network to the controller on port 8880 and 8843 needs to be allowed, as well as established/related traffic to make sure the UniFi controller can respond the client devices on the guest network.
  • Custom portal files need to be uploaded to the controller. On Windows, Mac and Linux with a graphic interface this can be accomplished with the Explorer/Finder etc. For a cloud key or headless Linux server SSH access is required. If you use a Cloud Key, make sure you have the credentials to login to SSH. The credentials can possibly differ from the login to the controller itself. It usually is either username ubnt or root, combined with the password set on initial installation of the Cloud Key.

You may choose to configure the device to automatically receive and install last firmware updates.

You will require a RADIUS password and a Custom URL from the SpotOn Support team. Chat with us, send an e-mail ([email protected]) or give us a call (050 211 5201).

 

SSID setup

To set up your SSID, go to Settings > Wireless Networks and create or edit your wireless network with the following settings. Make sure to check the “Apply guest policies (captive portal, guest authentication, access)”

create network2 1024x158 - Ubiquiti Unifi

ssid settings2 1024x297 - Ubiquiti Unifi

Hotspot configuration

Go to Settings > Guest Control.

 

Splash Page

Find the Guest Policies tab and configure the options as follows:

  • Guest Portal: check the “Enable Guest Portal” option.
  • Authentication: Hotspot
  • Redirection: uncheck all options.

Screenshot on 2019 11 01 at 10 56 26 1 - Ubiquiti Unifi

 

Portal Customization

Find the PORTAL CUSTOMIZATION tab and set:

  • Template Engine: “AngularJS”
  • Override Default Templates: “Override templates with custom changes”

Screenshot on 2019 11 01 at 10 56 53 - Ubiquiti Unifi

Find the Hotspot tab, check Enable RADIUS-based authorization and uncheck all the other options.

Screenshot on 2019 11 01 at 10 56 53 - Ubiquiti UnifiScreenshot on 2019 11 01 at 10 57 37 - Ubiquiti Unifi

RADIUS server configuration

Scroll down to the RADIUS-tab.

To set up your SSID, click on Create new RADIUS profile and create your RADIUS server configuration.

Annotation on 2019 11 01 at 11 08 01 - Ubiquiti Unifi

It is necessary to check Enable accounting and Enable Interim Update, and set RADIUS Auth Server and RADIUS Accounting Server accordingly with the data specified below:

RADIUS Auth-server

IP-address: 94.124.94.160 ; Port: 1812

RADIUS Accounting Server

IP-address: 94.124.94.160 ; Port: 1813

RADIUS password / Shared Secret:

Ask the SpotOn team for the RADIUS password

radius settings - Ubiquiti Unifi

Save your new Radius Profile.

  • Profile: (select the profile name you set up in the previous step)
  • Authentication type: CHAP

Screenshot on 2019 11 01 at 10 57 56 - Ubiquiti Unifi

 

Pre-Authorization Access (Walled Garden)

Under Guest Control tab go to Pre-Authorization Access section and enter the required entries.
 
Under Site, enable Auto-Optimize Network.

Screenshot on 2019 11 01 at 11 22 07 - Ubiquiti Unifi

Unpack and copy the ZIP-file

In order to correctly redirect guests to our Splash Page, it is necessary to download the controller files onto the controller server.

-> Download the ZIP-file

 

Custom URL

Ask the SpotOn team for your custom URL.

After this step, you can extract the controller files. The destination path depends on the OS which hosts your Controller.

  • If your system is Linux, extract the archive to /usr/lib/unifi/data/sites/default/app-unifi-hotspot-portal
  • If your system is Mac, extract the archive to ~/Library/Application Support/UniFi/data/sites/default/app-unifi-hotspot-portal
  • If your system is Windows, extract the archive to %userprofile%\Ubiquiti UniFi\data\sites\default\app-unifi-hotspot-portal

After completion check if spoton_unifi.js contains the Custom URL to our Splash page.

*Contact the SpotOn team to recieve your Custom URL.

 

var spotonPortal="PLACE_CUSTOM_URL_HERE";

In case you have a Cloud Key:

  • Restart the Cloud Key and extract the ZIP-zip file
  • Download WinSCP for CK’s file system inspection, at https://winscp.net/eng/download.php
  • Select SFTP protocol, port 22 for configuring the file transfer.
  • After accessing the file system, go to /srv/unifi/data/sites/<site_name>/app-unifi-hotspot-portal (for example, in case the Default site is being used the correct path is /srv/unifi/data/sites/default/app-unifi-hotspot-portal)
  • Please rename the old index.html file to index.html.default before proceeding with the override and copy the extracted files there.
  • Ensure that the ownership of files belongs to user unifi and group unifi.

 

Can't find your answer?