Ubiquiti

The Unifi Controller from Ubiquiti Networks is a software management solution for their range of WiFi access point devices.

EdgeRouter VDSL
Yes it does support BT FTTC Infinity. Use PPoE and connect to white BT modem with Cat 5e cable. Set MTU at 1492.

https://community.ubnt.com/t5/UniFi-Routing-Switching/does-edgerouter-support-vdsl/td-p/1112045

...and...

https://community.plus.net/t5/Fibre-Broadband/Config-for-Ubiquiti-ER-X-EdgeRouter-X-on-Plusnet-FTTC/m-p/1293820

Purchase


 * http://www.broadbandbuyer.co.uk/products/21797-ubiquiti-er-x-uk/
 * https://linitx.com/product/ubiquiti-edgemax-edgerouter-x-uk-psu/14588

IPSec VPN Passthrough
http://community.ubnt.com/t5/EdgeMAX/Newbie-Simple-1-LAN-1-WAN-SOHO-Setup/td-p/1377745

HOWTO: INSTALL: DEPENDANT SOFTWARE:
'''** THIS IS NOW NO LONGER REQUIRED. PLEASE SEE 16.04 INSTRUCTIONS BELOW **'''

ORACLE JAVA 8:
Add the repository:

sudo nano /etc/apt/sources.list deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main
 * 1) Java 8

Save (CTRL+o) and exit (CTRL+x).

Add the keyserver and install the software:

sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com EEA14886 sudo apt-get update sudo apt-get install jsvc oracle-java8-installer oracle-java8-set-default

Check the installed version:

java -version

MongoDB:
Open the sources.list and add the line shown in bold at the end of the file:

sudo nano /etc/apt/sources.list deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen

Save (CTRL+o) and exit (CTRL+x).

Add the keyserver and install the software:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 sudo apt-get update sudo apt-get install mongodb

HOWTO: INSTALL: UniFi
UniFi can either be installed from a .deb file or via a PPA repository:

Ubuntu Server 16.04 From .deb File:

 * 1) Visit Ubiquiti's download page
 * 2) In the SOFTWARE section, click on "UniFi v4.x.x Controller for Debian/Ubuntu Linux"
 * 3) Locate the file called "unifi_sysvinit_all.deb" and download it

sudo dpkg -i unifi_sysvinit_all.deb sudo apt-get -f install

Ubuntu Server 14.04 From .deb File:

 * Visit Ubiquiti's download page
 * In the SOFTWARE section, click on "UniFi v4.x.x Controller for Debian/Ubuntu Linux"
 * Locate the file called "unifi_sysvinit_all.deb" and download it

sudo dpkg -i --force-depends unifi_sysvinit_all.deb

Ubuntu Server 14.04 From Repository:
The following is an installation on Ubuntu Server 14.04.

Add the repository and keyservers by editing the following file adding the lines shown in bold at the end of the file:

sudo nano /etc/apt/sources.list

deb http://www.ubnt.com/downloads/unifi/debian stable ubiquiti deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen
 * 1) Ubiquiti Unifi
 * 1) Mongodb

Add the following key servers, the first for Unifi itself the second for MongoDB: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv C0A52C50 sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 sudo apt-get update Finally install the software: sudo apt-get install unifi stable, or sudo apt-get install unifi-rapid better than standard not as bleeding edged as beta sudo apt-get install unifi-beta

Official
http://community.ubnt.com/t5/UniFi-Wireless/Raspberry-Pi-and-Unifi/m-p/1167782#M91180

http://community.ubnt.com/t5/UniFi-Wireless/Finished-Raspberry-PI2-Image/m-p/1187658#M94346

http://community.ubnt.com/t5/UniFi-Controller-Installation/UniFi-Installing-the-Controller-software-on-Raspberry-Pi/ta-p/1127992

https://community.ubnt.com/t5/UniFi-Wireless/Unifi-4-6-3-on-raspberry-pi-2/m-p/1249829

https://community.ubnt.com/t5/UniFi-Wireless/New-upgraded-Raspberry-Pi-2-as-a-unifi-controller/td-p/1164776

Unofficial
Kowen Houston - Instructions here.

Kowen Houston - Download here.

Erik Van Paassen

Lowe Family

Amazon Web Services
https://www.youtube.com/watch?v=NSMM5dT1vSk

https://www.youtube.com/watch?v=y5tkToD_nds

Define The Java Version:
Edit the following file, adding the path to Java 8 installation: sudo nano /etc/init.d/unifi JAVA_HOME= # Edit this line to match that shown below JAVA_HOME=/usr/lib/jvm/java-8-oracle

Open The Required Firewall Ports:
Open ports on the server's firewall (in this example UFW):

For internal connection: sudo ufw allow from 192.168.0.0/24 to any port 8080 proto tcp sudo ufw allow from 192.168.0.0/24 to any port 8081 proto tcp sudo ufw allow from 192.168.0.0/24 to any port 8443 proto tcp sudo ufw allow from 192.168.0.0/24 to any port 8843 proto tcp sudo ufw allow from 192.168.0.0/24 to any port 8880 proto tcp sudo ufw allow from 192.168.0.0/24 to any port 27117 proto tcp sudo ufw allow from 192.168.0.0/24 to any port 3478 proto udp

Details of the ports required by Unifi can be found here.

Port 3478 UDP relates to STUN server usage so if you are not using VOIP hardware this port is not needed.

If your server already uses any of the ports listed above how to change those used by Unifi can be found here.

The file to alter to use different ports can be found in the following location:

/usr/lib/unifi/data/system.properties

Accessing The Web Interface:
https://your.server.ip:8443/manage

All being well you should see similar to the picture below:



Backup File
https://help.ubnt.com/hc/en-us/articles/205231940

config.properties File
https://help.ubnt.com/hc/en-us/articles/205146040

Location:

var/lib/unifi

Start, Stop or Restart
sudo service unifi start|stop|restart

View Log File
cat /var/log/unifi/server.log

Error: MongoDB Journal Files Eating Disc Space.
$ ll /var/lib/mongodb/journal/ total 3.1G drwxr-xr-x 2 mongodb nogroup 4.0K 2015-08-03 15:54. drwxr-xr-x 3 mongodb mongodb 4.0K 2015-08-03 15:22 .. -rw--- 1 mongodb nogroup 1.0G 2015-08-03 15:54 prealloc.0 -rw--- 1 mongodb nogroup 1.0G 2015-08-03 15:43 prealloc.1 -rw--- 1 mongodb nogroup 1.0G 2015-08-03 15:43 prealloc.2

$ rm -rfv /var/lib/mongodb/journal/* removed ‘/var/lib/mongodb/journal/prealloc.0’ removed ‘/var/lib/mongodb/journal/prealloc.1’ removed ‘/var/lib/mongodb/journal/prealloc.2’

$ df Filesystem    Type  Size  Used Avail Use% Mounted on /dev/sda1      ext4   10G  3.5G  6.0G  37% /

$ nano /usr/lib/unifi/data/system.properties unifi.db.nojournal=true      # disable mongodb journaling

Error: Keystore Missing.
If the the following is listed in the error log file:

/usr/lib/unifi/data/keystore (No such file or directory)

FIX

sudo service unifi stop sudo keytool -genkey -keyalg RSA -alias selfsigned -keystore /usr/lib/unifi/data/keystore -storepass aircontrolenterprise -validity 365 -keysize 2048 -destalias unifi

Answer the following questions by pressing enter up until the line starting "Is CN=" when you will need to answer "Y" then press enter:

What is your first and last name? [Unknown]: What is the name of your organizational unit? [Unknown]: What is the name of your organization? [Unknown]: What is the name of your City or Locality? [Unknown]: What is the name of your State or Province? [Unknown]: What is the two-letter country code for this unit? [Unknown]: Is CN=Unknown, OU=Unknown, O=Unknown, L=Unknown, ST=Unknown, C=Unknown correct? [no]:

Finally start Unifi:

sudo service unifi start

Thanks to Calvin Bui.

HOME

 * 1) Modem Router Firewall
 * 2) POE Switch
 * 3) Wi-Fi Access Point

Guest Network
https://www.youtube.com/watch?v=I8D6ju2AvpI

Review
http://arstechnica.com/gadgets/2015/10/review-ubiquiti-unifi-made-me-realize-how-terrible-consumer-wi-fi-gear-is/

CLI
https://help.ubnt.com/hc/en-us/articles/204976584-EdgeMAX-Connect-to-CLI-With-Telnet

http://community.ubnt.com/t5/tkb/v2/page/blog-id/CLI_Basics%40tkb/page/1

EdgeRouter Pro
http://community.ubnt.com/t5/EdgeMAX/Newbie-Simple-1-LAN-1-WAN-SOHO-Setup/m-p/1377745

http://community.ubnt.com/t5/EdgeMAX/Basic-SOHO-Home-Config/m-p/398057

https://help.ubnt.com/hc/en-us/articles/205197660-EdgeMAX-SOHO-Example

http://sohovercomplicated.com/edgerouter-basic-soho-router-firewall-part-1-the-basics/

UniFi
https://community.ubnt.com/t5/UniFi-Updates-Blog/UniFi-3-2-7-is-released/ba-p/1085473

https://community.ubnt.com/t5/UniFi-Wireless/Unifi-4-2-Controller-Install-Guide-Linux-Ubuntu-Server-14-10/td-p/1158280

https://community.ubnt.com/t5/UniFi-Wireless/UNIFI-controller-for-linux/m-p/962877

https://community.ubnt.com/t5/UniFi-Wireless/UniFi-controller-on-Debian-v7-1-x64-not-working/td-p/523245

http://wiki.ubnt.com/UniFi_FAQ#Operation_and_Deployment

http://sunstatetechnology.com/docs/UniFiControllerInstallation.pdf

https://calvin.me/install-unifi-controller-ubuntu/

https://community.ubnt.com/t5/UniFi-Wireless/Unifi-Controller-Setup-for-Remote-Location-Cloud-NOC/td-p/312142

http://community.ubnt.com/t5/UniFi-Controller-Installation/UniFi-Install-the-controller-software-on-the-UniFi-Video-NVR/ta-p/814754

https://www.youtube.com/watch?v=NSMM5dT1vSk

http://www.msdist.co.uk/Unifi_questions_extract_from_Ubiquiti_Forum.pdf

https://www.youtube.com/watch?v=juE0qH-D6Gs&index=3&list=PLqmQzXAOhOQj8AT31sc1seFJG0v0sSQ0m

https://www.youtube.com/watch?v=uKxgyt1kArw&index=15&list=PLqmQzXAOhOQj8AT31sc1seFJG0v0sSQ0m

Error related:

https://community.ubnt.com/t5/UniFi-Wireless/UniFi-Apache-500-Error/td-p/948953

https://community.ubnt.com/t5/UniFi-Wireless/UniFi-on-Ubuntu-help-needed/td-p/238635

http://community.ubnt.com/t5/UniFi-Wireless/HTTP-Status-400/td-p/621497

http://community.ubnt.com/t5/UniFi-Wireless/Apache-Tomcat-HTTP-Status-400/m-p/654089/highlight/true

http://forum.thecus.com/viewtopic.php?f=36&t=8004