IMPORTANT UPDATE!
If you are installing on FreeNAS 11.1, it's recommended you create the jail using iocage. This will future proof the jail and can be done via the new UI by visiting http:// <your_freenas_ip> /ui, or by using the iocage command line utility. This is not covered in the video.
How-to Video
Videos have been moved from YouTube to Odysee, a blockchain video streaming service using LBRY.
Please note, these videos should be considered "legacy" as they cover FreeNAS 9.10 and 11. The instructions can be adapted for TrueNAS as the process is more or less similar. Results may vary.
odysee.com
Installing
Once UniFi has started, you can access it by visiting https:// <jail IP> :8443/.
Notes for FreeNAS 11: If you're running FreeNAS 11, you may need to install OpenJDK and LLVM via pkg before building UniFi, as building OpenJDK and LLVM from ports will sometimes fail. Install using
If you followed the instructions correctly, you have just installed Ubiquiti's UniFi Controller. By using ports, you have installed a known and trusted release directly from Ubiquiti. As part of the process, you also successfully installed all of the dependencies that the UniFi controller requires, such as Java, LLVM and MongoDB.
Upgrading to the latest version
If you are installing on FreeNAS 11.1, it's recommended you create the jail using iocage. This will future proof the jail and can be done via the new UI by visiting http:// <your_freenas_ip> /ui, or by using the iocage command line utility. This is not covered in the video.
How-to Video
Videos have been moved from YouTube to Odysee, a blockchain video streaming service using LBRY.
Please note, these videos should be considered "legacy" as they cover FreeNAS 9.10 and 11. The instructions can be adapted for TrueNAS as the process is more or less similar. Results may vary.

Installing Ubiquiti UniFi Controller in a FreeNAS Jail
* Hello! It's been a while since this video was published and things have changed a lot with FreeNAS, now known as TrueNAS. I'm leaving this video up for historical reference. Please refer to the Tr...

Installing
- Create a jail and enable VIMAGE (See http://doc.freenas.org/11/jails.html#adding-jails for more details)
- SSH to your FreeNAS box and run:
jexec <jailname> csh
(replace<jailname>
with your jail's name) - Update pkgs:
pkg update && pkg upgrade -y
- Update ports:
portsnap fetch extract
- Change into /usr/ports/net-mgmt/unifi5
- Build UniFi:
make install clean BATCH=yes
- Enable UniFi at boot time:
sysrc unifi_enable=YES
- Start UniFi:
service unifi start
Ports Collection support for your FreeBSD version has ended
, run make
command with ALLOW_UNSUPPORTED_SYSTEM=yes make install clean BATCH=yes
Once UniFi has started, you can access it by visiting https:// <jail IP> :8443/.
Notes for FreeNAS 11: If you're running FreeNAS 11, you may need to install OpenJDK and LLVM via pkg before building UniFi, as building OpenJDK and LLVM from ports will sometimes fail. Install using
pkg
instead:pkg install bash llvm40 openjdk8
.
If you followed the instructions correctly, you have just installed Ubiquiti's UniFi Controller. By using ports, you have installed a known and trusted release directly from Ubiquiti. As part of the process, you also successfully installed all of the dependencies that the UniFi controller requires, such as Java, LLVM and MongoDB.
Upgrading to the latest version
- SSH to your FreeNAS box and run:
jexec <jailname> csh
- Update ports:
portsnap fetch extract
- Change to directory /usr/ports/net-mgmt/unifi5
- Stop UniFi:
service unifi stop
- Build and re-install:
make reinstall clean
- Start UniFi:
service unifi start