Notes to Self

Alex Sokolsky's Notes on Computers and Programming

Proxmox Containter with Unifi Controller

UniFi Controller Ports

This is not an exhaustive list.

Incoming traffic:

UniFi Device Defaults

UniFi device with settings reset:

Hence there is a benefit of having the controller on host unifi

Sources

Download container template

In Proxmox Datacenter\server\local open Template, download Ubuntu-20 container template

Create container

I used:

Upgrade Container

Usual apt update/upgrade

Download install script

Read UniFi Installation Scripts.

Then

root@unicon:~# wget https://get.glennr.nl/unifi/install/unifi-6.0.28.sh
--2020-10-24 11:44:03--  https://get.glennr.nl/unifi/install/unifi-6.0.28.sh
Resolving get.glennr.nl (get.glennr.nl)... 51.38.48.41
Connecting to get.glennr.nl (get.glennr.nl)|51.38.48.41|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 149804 (146K) [text/x-sh]
Saving to: ‘unifi-6.0.28.sh’

unifi-6.0.28.sh                     100%[=================================================================>] 146.29K   104KB/s    in 1.4s

2020-10-24 11:44:06 (104 KB/s) - ‘unifi-6.0.28.sh’ saved [149804/149804]

root@unicon:~# chmod a+x unifi-6.0.28.sh

Controller Setup

Point browser at https://unicon:8443

Step 1/6: Name controller: Apricot960

etc

Set DHCP Server Option 43

Unifi L3 Adoption with DHCP Option 43

  1. Identify unifi controller host name and IP:
alex@latitude7490:~$ nslookup
> server 192.168.10.1
Default server: 192.168.10.1
Address: 192.168.10.1#53
> unicon
Server:		192.168.10.1
Address:	192.168.10.1#53

Name:	unicon.lan
Address: 192.168.10.11
  1. Use the above URL to derive a hex value for DHCP option 43: 01:04:c0:a8:0a:0b

  2. Update DHCP server setting.

Add DNS Alias

Make sure UniFi controller is at DNS name unifi.

Allow for root to ssh

Edit /etc/ssh/sshd_config and add

PermitRootLogin yes

and then

systemctl restart sshd

Picking the Version of the Ubiquiti Controller

Note stable here:

root@unicon:/etc/apt/sources.list.d# cat 100-ubnt-unifi.list
deb https://www.ui.com/downloads/unifi/debian stable ubiquiti