Ubiquiti UniFi Cloud Controller Configuration

This article describes installation and configuration steps for Ubiquiti UniFi Cloud Controller ( v5.7 or above) for Start Hotspot account


Configuring Ubiquiti UniFi Cloud Controller with your Start Hotspot account - step by step instructions

Log in to your UniFi controller and click the Setting icon.
Ubiquiti Unifi Setup1
Create a Wireless Network that will be enabled for Guest Access.
Go to Settings / Wireless Networks, click Create New Wireless Network and configure following:

Name/SSID: Your SSID ( it's your choice what will be set as SSID Name, Test in our case)
Enabled: Enabled
Security: Open
Guest Policy: Enabled

Click Save to apply changes.
Ubiquiti Unifi Setup2
Go to Guest Control page and on the Guest Policies section set following:

Enable Guest Portal: Enabled
Authentication: Hotspot
Default Expiration: 8 Hours
Landing Page: Promotion URL - insert desired URL
Use Secure Portal: Disabled
Redirect using hostname: Disabled
Enable HTTPS Redirection: Disabled
Ubiquiti Unifi Setup3
On the Portal Customization section set Template Engine as Angular JS and enable Override Default Templates.
Enable RADIUS on the Hotspot section.
Go to Profiles / Radius page.
Click Create New RADIUS Profile and configure following:

Profile Name: Test
RADIUS Auth Server:: 13.92.228.228
Port: 1812
Password / Shared secret: secret

Click Add Auth Server and configure Radius server 2:

RADIUS Auth Server: 13.90.247.200
Port: 1812
Password / Shared secret: secret
Accounting: Disabled

Save changes.
Ubiquiti Unifi Setup4
On the Access Control / Pre-Authorization page enter the walled garden IP's.
If you want to enable Social network login feature, add further IP's as per below for each network you plan to support.

Facebook

31.13.24.0/21
31.13.64.0/18
45.64.40.0/22
66.220.144.0/20
69.63.176.0/20
69.171.224.0/19
74.119.76.0/22
103.4.96.0/22
129.134.0.0/16
157.240.0.0/16
173.252.64.0/18
179.60.192.0/22
185.60.216.0/22
204.15.20.0/22

Twitter

199.16.156.0/22
199.59.148.0/22
199.96.56.0/21
192.133.76.0/22

LinkedIn

91.225.248.0/23
103.20.94.0/23
108.174.0.0/22
108.174.4.0/24
108.174.8.0/22
108.174.12.0/23
144.2.0.0/22
144.2.192.0/24
216.52.16.0/23
216.52.18.0/24
216.52.20.0/23
216.52.22.0/24
65.156.227.0/24
8.39.53.0/24
185.63.144.0/24
185.63.147.0/24
199.101.161.0/24
64.152.25.0/24
8.22.161.0/24

Apply changes to save.

Please note, these IP ranges are subject to change depending on the social network setup.

At the end, you will need to modify two html files on the controller so that it correctly redirects and authenticates.
Download these 2 files:
Open the index.html file and at the top of the document you will see an item named "splashurl":
Edit this so that it shows:
var splashurl = "https://connect.starthotspot.com/login";
Ubiquiti Unifi Setup5
Copy these html files to your UnifFi controller hotspot directory.
Depending of the OS, it is usually located at the location bellow:

Windows C:\Users\\Ubiquiti UniFi\data\sites\default\app-unifi-hotspot-portal

MAC ~/Library/Application Support/UniFi/data/sites/default/app-unifi-hotspot-portal

Linux /usr/lib/unifi/sites/default/app-unifi-hotspot-portal

If you need help with configuration, please go to starthotspot.com and contact our tech support. We'll be glad to help you.