Skip to content

Instantly share code, notes, and snippets.

@marcinantkiewicz
Last active June 8, 2018 06:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcinantkiewicz/45b0220d31e8573442a9f0ae06e7ac00 to your computer and use it in GitHub Desktop.
Save marcinantkiewicz/45b0220d31e8573442a9f0ae06e7ac00 to your computer and use it in GitHub Desktop.
Notes - setup of unifi controller in docker
USG and UAP - security gateway and access ponit adoption/initial config
- devices want to live on 192.168.1 network.
- IP address can be set through the controller, in the Networks tab, or using CLI (configure, set interfaces ethernet eth1 address 10.10.10.1/24, delete interfaces ethernet eth1 address 192.168.1.1/24,
commit)
- the DNS name used in the Controller tab must resolve to the right IP, else succesful adoption will requie login to the device and "mca-cli, set-inform http://controller-IP-or-resolving-fqdn):8080/inform
Controller setup:
-- runs fine in docker
-- cloud key is convenient, but it was flakey for me. This is not expected, people have good luck with them.
-- setup on RPI in progress.
-- service ports (docker, so RIP clean iptables). Using jacobalberty's for now.
## https://help.ubnt.com/hc/en-us/articles/218506997-UniFi-Ports-Used
mkdir -p unifi/{data,log}
-- test run (delete after run), do not use for normal operations
docker run --rm --init -p 8080:8080 -p 8443:8443 -p 3478:3478/udp -p 10001:10001/udp -e TZ='US/Central' -v ~/unifi:/unifi --name unifi jacobalberty/unifi:stable
-- permanent
docker run --restart=unless-stopped -d --init -p 8080:8080 -p 8443:8443 -p 3478:3478/udp -p 10001:10001/udp -e TZ='US/Central' -v ~/unifi:/unifi --name unifi jacobalberty/unifi:stable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment