OpenBSD Handbook

    Theme
    • Part I. Install & Configure
      • Introduction to OpenBSD
      • Installing OpenBSD
      • The X Window System
      • Networking on OpenBSD
      • System Configuration
      • OpenBSD Basics
      • Managing Software: Packages and Ports
    • Part II. Daily Operations
      • OpenBSD Desktop Environments
      • Multimedia
      • Printing
      • Linux Compatibility
      • Windows Compatibility
      • Games
    • Part III. System Administration
      • Virtualization
      • Storage and File Systems
      • Updating and Upgrading
      • Localization
      • The OpenBSD Boot Process
      • Security
    • Part IV. Networking & Daemons
      • Services
        • Database
          • MariaDB
          • PostgreSQL
          • Redis
          • memcached
        • Directory
          • YP (NIS)
          • LDAP
        • File
          • NFS
          • Samba
        • FTP Services
          • ftpd
          • ProFTPD
          • vsftpd
          • Pure-FTPd
          • TFTP
        • Mail
          • OpenSMTPD Mail Server
          • Dovecot IMAP and POP3 Server
          • Postfix
          • Exim
          • Rspamd
        • Name
          • Unbound DNS Resolver
          • NSD Authoritative DNS Server
          • BIND DNS Server
        • Networking
          • OpenBGPD
          • rad
          • DHCP on OpenBSD
          • slaacd
        • Web
          • Apache HTTP Server
          • nginx Web Server
          • OpenBSD httpd Web Server
          • relayd Reverse Proxy
        • Logging
          • syslogd
        • Monitoring
          • SNMP
        • Remote Access
          • Audit OpenSSH
          • OpenSSH Server
        • File Synchronization
          • rsync
        • Messaging
          • RabbitMQ Message Broker
        • Time
          • NTP Time Synchronization
      • PF
        • pfctl cheat sheet
        • PF Anchors
        • PF Filter Rules
        • PF Forwarding
        • PF Lists and Macros
        • PF Load Balancing
        • PF Logging
        • PF NAT
        • PF Options
        • PF Policies
        • PF Shortcuts
        • PF Tables
      • Advanced Networking
        • High Availability and State Replication
        • Multi-WAN and Policy-Based Routing
        • VPN and Cryptographic Tunneling
        • Classic and Lightweight Tunnels
        • IPv6 at Scale
        • QoS and Traffic Shaping
        • MPLS and Label Distribution
        • Network Services at Scale
        • Virtualization and Host Networking
        • Large-Scale L2 and L3 Design
        • Telemetry, Logging, and Flow Export
        • Hardening and Operational Safety
        • Reference Architectures
        • Troubleshooting Playbooks
      • Serial Communication
    • Part V. Miscellaneous
      • Virtualization Cheat Sheet
      • OpenBSD Cheatsheet
      • How-to Guides
        • Complete the First 30 Minutes After Installation
        • Check Hardware Compatibility Before Installing
        • Bootstrap Wi-Fi Firmware Without Ethernet
        • Set Up OpenBSD as a Laptop or Workstation
        • Configure Laptop Power Management
        • Run OpenBSD as a Virtual Machine Guest
        • Install OpenBSD on a VPS or Cloud Server
        • Install OpenBSD with Full-Disk Encryption
        • Troubleshoot Web Browsers on OpenBSD
        • Create an Administrator Account with doas and SSH Keys
        • Establish a Conservative Security Baseline
        • Manage OpenBSD with Ansible
        • Recover Access and Reset the Root Password
        • Collect OpenBSD Diagnostic Evidence
        • Configure Secure Remote Access with OpenSSH
        • Set Up WordPress on OpenBSD
        • Build Third-Party Software from Ports
        • Use FIDO Security Keys with OpenSSH
        • Build OpenBSD from Source
        • Configure Wi-Fi Roaming and Wired Failover
        • Dual-Boot OpenBSD on a UEFI System
        • Troubleshoot PF, NAT, and Routing
        • Automate OpenBSD Installation with Autoinstall and PXE
        • Route Multiple VLANs with PF
        • Configure a Road-Warrior WireGuard VPN
        • Troubleshoot Package Installation and Update Failures
        • Route IPv6 Networks without NAT
        • Schedule Recurring Maintenance
        • Plan a Docker Workload Migration to OpenBSD
        • Build a Mail Server with OpenSMTPD, Dovecot, and Rspamd
        • Build a Simple Router and Firewall
        • Monitor an OpenBSD System
        • Back Up and Restore an OpenBSD System
        • Configure softraid RAID1
        • Recover an OpenBSD System That Does Not Boot
        • Install Z shell (zsh)
      • OpenBSD for Linux Users
      • OpenBSD for FreeBSD Users
      • OpenBSD for macOS Users
    • OpenBSD FAQ
    • OpenBSD Architectures
      • OpenBSD Package Search

        unifi-9.0.118p0

        Package search / Categories / Current snapshot
        โ† Back to search
        OpenBSD branch
        OpenBSD 8.0 releaseCurrent snapshot

        Current snapshot ยท amd64

        controller for Ubiquiti uniFi (wifi/routing/switching/voip)

        Description

        This package contains controller software for Ubiquiti UniFi access points, switches, gateways and phones. It uses the 9.x branch which Ubiquiti are using on their "Unifi Express" hardware and still seem to be maintaining.

        Package information

        Ports path
        net/unifi/v9
        Package architecture
        amd64
        Maintainer
        Stuart Henderson <stu.ports@spacehopper.org>
        Categories
        net, java
        Available flavors
        None listed
        Only for architectures
        amd64

        Ports list build and test dependencies as well as runtime dependencies. pkg_add selects those needed for installation.

        Direct dependencies

        Runtime

        • net/unifi/snappy-java
        • devel/jdk/21 jdk->=21v0,<22v0

        Build

        • archivers/unzip
        OpenBSD README

        This README contains unresolved ports variables; replace them before using its commands.

        +-----------------------------------------------------------------------
        | Running unifi on OpenBSD
        +-----------------------------------------------------------------------
        
        After installing and starting UniFi, connect to https://localhost:8443/ to
        configure. (Additional UDP and TCP ports are used for AP<>controller
        communications; check the documentation if you are configuring firewalls).
        
        Importing CA-signed certificates (optional)
        -------------------------------------------
        If you would prefer to replace the auto-generated self-signed certificate
        with a CA-signed certificate, you can import it like this:
        
        # rcctl stop unifi
        # cd ${TRUEPREFIX}/share/unifi/data
        # openssl pkcs12 -export -in /etc/ssl/server.crt \
           -inkey /etc/ssl/private/server.key \
           -certfile /etc/ssl/intermediate.crt -out unifi.p12 \
           -name unifi -password pass:aircontrolenterprise
        # $JAVAHOME/bin/keytool -importkeystore -srckeystore unifi.p12 \
           -srcstoretype PKCS12 -srcstorepass aircontrolenterprise \
           -destkeystore keystore.new -storepass aircontrolenterprise
        # rcctl start unifi
        
        Migrating between MongoDB versions
        ----------------------------------
        Unifi uses MongoDB to store its database. Databases can only be updated
        directly across one major MongoDB version (3.4->3.6, 3.6->4.0, 4.0->4.2,
        4.2->4.4).
        
        If you need to update MongoDB across a larger gap, the simplest way to
        move Unifi data across is to make sure you have an up-to-date Unifi .unf
        backup (check /usr/local/share/unifi/data/backup and maybe trigger one
        from the web interface). Then stop Unifi and move the old MongoDB
        database out of the way (the directory /usr/local/share/unifi/data/db),
        restart Unifi and open the web interface; it will create a new database
        and allow restoring from a backup file.
        
        Alternatively "mongodump" (in the mongo-tools package) can be used.
        You probably won't need it, but here are some instructions that worked
        for the port maintainer and may be useful.
        
        Backup with the old mongodb version installed and unifi running -
        
        $ mkdir unifi-backup; cd unifi-backup
        $ mongodump --port=27117
        $ doas rcctl stop unifi
        $ doas cp -rp /usr/local/share/unifi /usr/local/share/unifi.backup
        
        Then after installing the newer mongodb you can restore - the steps
        below increase the number of file handles from the default to avoid
        problems.
        
        # su -m _unifi -i
        $ ulimit -n 1024
        $ mv /usr/local/share/unifi/data/db /usr/local/share/unifi/data/db.old
        $ mkdir /usr/local/share/unifi/data/db
        $ mongod --dbpath /usr/local/share/unifi/data/db \
          --wiredTigerEngineConfigString=cache_size=256M --bind_ip 127.0.0.1 &
        $ mongorestore
        $ pkill mongod
        $ exit
        
        and restart unifi:
        
        # rcctl start unifi
        

        Package guides

        • Installing and updating packages

        Package details as JSON

        Report a bug