Hi everyone, this time I want to share one of my weekend projects inspired by this article of Troy Hunt. As Troy I also experienced the pain of a single router/gateway/access point device and I decided to switch to UniFi devices .
On the net you can find dozens of tutorials on how assemble the various bits, here instead I want to explain how to set up the UniFi Controller software on Azure with very simple steps.
Step 1 : Go the following website https://azure.microsoft.com/ and register . You will receive 200$ of Azure credits that can be used in the first month. Alternatevely you can register for visual studio essentials program and have 25$ each month for 1 year .
Step 2: Once you have your subscription up and running you can provision a Linux VM clicking on the big “+” button and searching for Linux Ubuntu Server:Step 3: After you selected the Virtual Machine just give to it a name, username, password , choose as VM disk type HDD, a resource group name that you like and a data center near to where you live.
Step 4: Set the size of the VM ( I used A2 standard but you can try also with A1 or even A0, also remember you can schedule the vm to start/stop only when you need and save a lot of money):
Step 5: In the additional settings leave everything to the default values and finally hit the purchase button!
Step 6: After few minutes or even less your VM is ready and you should be able to see a screen like this:
Write down the Public IP Address because you will need it shortly.
Step 7: Setup the open ports in order to have the Controller working correctly.
First go the the network interface of the vm
Step 8: Connect using Putty on Windows or you Mac OS standard shell to the mentioned IP address 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 !