Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
unifi-controller [05/09/2022 - 09:29] – gelöscht - Externe Bearbeitung (Unknown date) 127.0.0.1 | unifi-controller [17/08/2024 - 07:06] (aktuell) – Externe Bearbeitung 127.0.0.1 | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
+ | ====== Ubiquity Unifi Controller ====== | ||
+ | |||
+ | ===== Allgemeine Doku ===== | ||
+ | |||
+ | Troubleshooting [[https:// | ||
+ | |||
+ | config.properties: | ||
+ | |||
+ | ===== Betrieb in Docker Container ===== | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | Docker Compose (V2, golang): | ||
+ | < | ||
+ | |||
+ | --- | ||
+ | version: " | ||
+ | services: | ||
+ | unifi-controller: | ||
+ | image: lscr.io/ | ||
+ | container_name: | ||
+ | environment: | ||
+ | - PUID=1000 | ||
+ | - PGID=1000 | ||
+ | - MEM_LIMIT=1024 #optional | ||
+ | - MEM_STARTUP=1024 #optional | ||
+ | volumes: | ||
+ | - / | ||
+ | ports: | ||
+ | - 8443:8443 | ||
+ | - 3478: | ||
+ | - 10001: | ||
+ | - 8080:8080 | ||
+ | - 1900: | ||
+ | - 8843:8843 #optional | ||
+ | - 8880:8880 #optional | ||
+ | - 6789:6789 #optional | ||
+ | - 5514: | ||
+ | restart: unless-stopped | ||
+ | |||
+ | </ | ||
+ | |||
+ | Danach | ||
+ | |||
+ | < | ||
+ | docker-compose up | ||
+ | |||
+ | </ | ||
+ | |||
+ | Dauerbetreib | ||
+ | |||
+ | < | ||
+ | docker run -d \ | ||
+ | --name=unifi-controller \ | ||
+ | -e PUID=1000 \ | ||
+ | -e PGID=1000 \ | ||
+ | -e MEM_LIMIT=1024 `#optional` \ | ||
+ | -e MEM_STARTUP=1024 `#optional` \ | ||
+ | -p 8443:8443 \ | ||
+ | -p 3478: | ||
+ | -p 10001: | ||
+ | -p 8080:8080 \ | ||
+ | -p 1900: | ||
+ | -p 8843:8843 `#optional` \ | ||
+ | -p 8880:8880 `#optional` \ | ||
+ | -p 6789:6789 `#optional` \ | ||
+ | -p 5514: | ||
+ | -v <path to data>:/ | ||
+ | --restart unless-stopped \ | ||
+ | lscr.io/ | ||
+ | |||
+ | </ | ||
+ | |||
+ | ===== Aktuelle Config ===== | ||
+ | |||
+ | < | ||
+ | cat / | ||
+ | |||
+ | </ | ||
+ | |||
+ | ====== Ports ====== | ||
+ | |||
+ | ^Typ^Port^Zweck| | ||
+ | |TCP|22|SSH access (controller & devices)| | ||
+ | |UDP|3478|STUN communication (AWS)| | ||
+ | |TCP|8080|Device and controller communication| | ||
+ | |TCP|8443|controller GUI/API as seen in a web browser| | ||
+ | |TCP|8880|HTTP portal redirection.| | ||
+ | |TCP|8843|HTTPS portal redirection| | ||
+ | |TCP|6789|UniFi mobile speed tes| | ||
+ | |TCP|27117|local-bound database communication| | ||
+ | |UDP|5656-5699|AP-EDU broadcasting.| | ||
+ | |UDP|10001|AP discovery| | ||
+ | |UDP|1900|Make controller discoverable on L2 network" | ||
+ | |||
+ | ===== Custom SSH Keys ===== | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | Auf den UAP per ssh anmelden (geht auch über den Controller, Werkzeuge, Debug | ||
+ | |||
+ | In / | ||
+ | |||
+ | Danach die Konfig mit | ||
+ | |||
+ | '' | ||
+ | |||
+ | neu einlesen und in den Flash schreiben lassen. | ||
+ | |||
+ | ===== Adoption ===== | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | Voraussetzungen: | ||
+ | |||
+ | DNS: " | ||
+ | |||
+ | DHCP: Option 43 muss die IP des Controllers liefern, siehe [[https:// | ||
+ | Diskussion zu Option 43: [[https:// | ||
+ | |||
+ | Beispiel für dnsmasq: | ||
+ | < | ||
+ | |||
+ | # unifi controller | ||
+ | dhcp-option=vendor: | ||
+ | |||
+ | </ | ||
+ | |||
+ | Konsole: auf Werkszustand zurück setzen (holt sich die IP per DHCP) | ||
+ | |||
+ | '' | ||
+ | |||
+ | Adoption auf der AP Seite auslösen | ||
+ | |||
+ | < | ||
+ | '' | ||
+ | |||
+ | UBNT-BZ.v3.9.27# | ||
+ | |||
+ | Adoption request sent to ' | ||
+ | |||
+ | </ | ||
+ | |||
+ | ===== Wireless Uplink ===== | ||
+ | |||
+ | 1. Factory reset if you have already been trying to get them to work | ||
+ | |||
+ | 2. Adopt the APs on a wired ethernet connection. Upgrade them if required to latest firmware. | ||
+ | |||
+ | 3. Manually set the Radio Channels (both frequency bands) to be the same on the AP you want to wirelessly uplink and the AP you want to downlink from to be the same. Note that the wireless uplink takes place in the 5GHz band and according to release notes uplinking on a DFS channel is being removed imminently (which somewhat limits options). | ||
+ | |||
+ | 4. Do NOT set a static IP address on the AP(s) you want to be wirelessly connected - undocumented quirk it seems! | ||
+ | |||
+ | 5. Make sure that in Settings> | ||
+ | |||
+ | 6. Remove the wired connection from the AP(s) you want to be wireless and connect just the PoE power and wait for it to reboot. | ||
+ | |||
+ | 7. The device to be wirelessly connected should go heartbeat missed, disconnected, | ||
+ | |||
+ | 8. In the AP Configuration go to Wireless Uplink and select the link icon on the AP to uplink to. If this box is blank give it a minute or two. if it stays blank something above has probably gone wrong! | ||
+ | |||
+ | 9. There will short delay while the AP acting as downlink is provisioned and then within a minute or two the AP being wirelessly connected should come out of Isolation and report Connected (Wirelessly) | ||
+ | |||
+ | 10. Resist the temptation to now try setting a static AP or you'll have to start over! | ||
+ | |||
+ | ===== Cloud-Key: ordentliche Zertifikate ===== | ||
+ | |||
+ | Cloud Key: Als primärer Webserver wird nginx benutzt, einfach die Zertifikate in /etc/nginx tauschen. Das Controller UI ist eine JVM mit einer Spring Boot Applikation ([[http:// | ||
+ | |||
+ | Doku [[https:// | ||
+ | |||
+ | 1. UI stoppen: | ||
+ | |||
+ | '' | ||
+ | |||
+ | 3. Daraus einen jks erzeugen: | ||
+ | |||
+ | '' | ||
+ | |||
+ | ===== Admin Reset über Mongodb ===== | ||
+ | |||
+ | < | ||
+ | User auflisten | ||
+ | |||
+ | '' | ||
+ | |||
+ | Neuen hash " | ||
+ | |||
+ | mongo --port 27117 ace --eval ' | ||
+ | |||
+ | Hash erstellen | ||
+ | |||
+ | ''# | ||
+ | |||
+ | </ | ||
+ | |||