Date created: Friday, June 21, 2024 8:30:34 PM. Last modified: Friday, June 21, 2024 9:38:53 PM

Ubiquiti Unifi U6+

Unifi Network Controller

The only way to do the initial set-up of the device is by using Unifi's proprietary application. This can be downloaded from https://www.ui.com/download/unifi

The controller actually connects over SSH and configures the device over SSH. You can SSH to the device as ubnt@192.168.1.20 with the password "ubnt" but it's a BusyBox shell.

Some kind person has created a docker image of the Unifi controller software. It requires a MongoDB instance to run though.

$ mkdir unifi
$ mkdir unifi/mongo
$ mkdir unifi/controller
$ cat unifi/init-mongo.js db.getSiblingDB("MONGO_DBNAME").createUser({user: "MONGO_USER", pwd: "MONGO_PASS", roles: [{role: "dbOwner", db: "MONGO_DBNAME"}]}); db.getSiblingDB("MONGO_DBNAME_stat").createUser({user: "MONGO_USER", pwd: "MONGO_PASS", roles: [{role: "dbOwner", db: "MONGO_DBNAME_stat"}]});

$ cat unifi-docker-compose.yaml
---
services:
unifi-db:
image: docker.io/mongo:6.0
container_name: unifi-db
volumes:
- ./unifi/mongo:/data/db
- ./init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro
ports:
- 27017:27017
unifi-network-application:
image: lscr.io/linuxserver/unifi-network-application:latest
container_name: unifi-network-application
depends_on:
- unifi-db
environment:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
- MONGO_USER=MONGO_USER
- MONGO_PASS=MONGO_PASS
- MONGO_HOST=unifi-db
- MONGO_PORT=27017
- MONGO_DBNAME=MONGO_DBNAME
- MEM_LIMIT=1024 #optional
- MEM_STARTUP=1024 #optional
- MONGO_TLS= #optional
- MONGO_AUTHSOURCE= #optional
volumes:
- ./unifi/controller:/config
ports:
- 8443:8443
- 3478:3478/udp
- 10001:10001/udp
- 8080:8080
- 1900:1900/udp #optional
- 8843:8843 #optional
- 8880:8880 #optional
- 6789:6789 #optional
- 5514:5514/udp #optional

$ docker compose -f unifi-docker-compose.yaml up

After starting the container the web interface is accessible via https://127.0.0.1:8443/

 


Previous page: TP-Link TL-WPA8631P KIT
Next page: Docker