Let’s see this time how to set up the UniFi Controller software on GCP with very simple steps.
Step 1 : Go the following website https://console.cloud.google.com/ and register . You will receive 300$ of Google credits that can be used in the first 12 month, but more importantly the free tier !
Step 3: After you selected the Virtual Machine just give to it a name,, choose a data center near to where you live, pick as size the micro (free!), as OS pick Ubuntu 16.04
Step 5: In the additional settings leave everything to the default values and finally hit the create button!
Step 6: After few seconds your Instance is ready and you should be able to see it running , write down the Public IP Address because you will need it shortly.
Step 7: Now we have to setup the open ports in order to have the Controller working correctly.
First go the the VPC network tab of your account and select Firewall Rules:
Here add a firewall rule specific for your controller instance using the Target tag that we defined early, put 0.0.0.0/0 as IP range to allow connections from any IP and set those ports to be open:
Step 8: Connect with the web console ssh and install the Unifi controller software with those commands:
echo “deb http://www.ubnt.com/downloads/unifi/debian unifi5 ubiquiti” | sudo tee -a /etc/apt/sources.list
sudo apt-key adv –keyserver keyserver.ubuntu.com –recv 06E85760C0A52C50
sudo apt-get update
sudo apt-get install unifi
Step 9: Connect to the controller web interface located here https://IP_Address:8443/ and complete the UniFi wizard:
Finally you may now proceed to adopt your UniFi devices using Layer 3 Adoption !