unifi in a jail

FreeBSD 12.1, after iocage is installed...

iocage create -r latest -n unifi
iocage set ip4_addr="igb0|" unifi
iocage set boot="1" unifi
iocage start unifi
iocage console unifi
passwd root
echo 'sshd_enable="YES"' >> /etc/rc.conf
pkg update
pkg install bash
chsh -s /usr/local/bin/bash root
adduser nerd
pkg install unifi5
echo unifi_enable="YES" >> /etc/rc.conf
iocage restart unifi

Hard reset all unifi devices, for the ones I have, use a paperclip to hold the reset button while power (might be PoE) is being connected and for 10 seconds beyond.  The devices will then be ready for inclusion.

Add to DNS connect to https://unifi.home.galassi.us:8442/