Notes to Self

Alex Sokolsky's Notes on Computers and Programming

Unifi Controller in a Proxmox Container

Maybe better yet:

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


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 Script.


root@unicon:~# wget
--2020-10-24 11:44:03--
Resolving (
Connecting to (||:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 149804 (146K) [text/x-sh]
Saving to: ‘’                     100%[=================================================================>] 146.29K   104KB/s    in 1.4s

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

root@unicon:~# chmod a+x

Controller Setup

Point browser at https://unicon:8443

Step 1/6: Name controller: Apricot960


Set DHCP Server Option 43

Unifi L3 Adoption with DHCP Option 43

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

Name:	unicon.lan
  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 stable ubiquiti

3 Years later

MongoDB 3.6 got obsolete:

oot@unicon:~# apt update
Get:1 stable InRelease [2292 B]
E: Repository ' stable InRelease' changed its 'Codename' value from 'unifi-7.5' to 'unifi-8.0'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
Do you want to accept these changes and continue updating from this repository? [y/N] Y
Hit:2 focal InRelease
Get:3 focal-updates InRelease [114 kB]
Get:4 focal-security InRelease [114 kB]
Ign:5 xenial/mongodb-org/3.6 InRelease
Get:6 stable/ubiquiti amd64 Packages [714 B]
Hit:7 xenial/mongodb-org/3.6 Release
Err:8 xenial/mongodb-org/3.6 Release.gpg
  The following signatures were invalid: EXPKEYSIG 58712A2291FA4AD5 MongoDB 3.6 Release Signing Key <>
Get:9 focal-updates/universe amd64 Packages [1140 kB]
Get:10 focal-security/universe amd64 Packages [915 kB]
Fetched 2286 kB in 13s (178 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
10 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: xenial/mongodb-org/3.6 Release: The following signatures were invalid: EXPKEYSIG 58712A2291FA4AD5 MongoDB 3.6 Release Signing Key <>
W: Failed to fetch  The following signatures were invalid: EXPKEYSIG 58712A2291FA4AD5 MongoDB 3.6 Release Signing Key <>
W: Some index files failed to download. They have been ignored, or old ones used instead.

Downloaded latest version of the Installation Script and ran it. It gave me an opportunity to update MondoDB to 4.4. Outstanding!

Configure UniFi controller for remote logging to syslog server

In GUI: Setting / System / Advanced / Remote Logging Location pick Remote Server, check syslog, enter server IP address.