UniFi

Lucian03

Cadet
Joined
Feb 24, 2023
Messages
2
Hi

I installed the UniFi application but it does not find the devices on the network. I think the problem is with the ports. How could I know if it has access to the ports:
p 8080:8080 -p 8443:8443 -p 3478:3478/udp ?

Thank you !
 

MrGuvernment

Patron
Joined
Jun 15, 2017
Messages
268
is your Unifi on the same subnet as your APs?
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
The OP is using the app which probably means its on that kubernetes network and broadcast/multicast discovery simply won't work.

You can tell your APs the IP address of the controller with DHCP option 43.
 
Last edited:

LudovicE

Cadet
Joined
Oct 12, 2023
Messages
1
Hi, i've got exacly same problem with unifi-controller from community and cannot use right port...
I added truechart with unifi program and work witout problem!
 

Gnome

Explorer
Joined
Aug 18, 2011
Messages
87
I'm sure OP has solved the problem already, but of posterity, the following ports have to be exposed (8080 and 3478)
1697369004487.png


The rest of the ports aren't required for adoption.
What I don't show here is that my Unifi web-app portion is behind a reverse proxy (Traefik)

Additionally, you need to use option 43 in DHCP as mentioned by Patrick above.
The L3 adoption article explains option 43: https://help.ui.com/hc/en-us/articles/204909754

To calculate what you need to put in Option 43, the following calculator works:

Last note, the ports above HAVE to be the ports shown there, sadly Unifi have decided those ports belong to them and changing them means you need manual intervention (ssh to the device to adopt). If you want to learn more, you can read https://help.ui.com/hc/en-us/articles/218506997-UniFi-Network-Required-Ports-Reference

If you have other apps running on those ports, I suggest using a reverse proxy and don't expose the ports, and if you absolutely HAVE to expose those ports on another application, you'll want to use something like MetalLB.
 

Redemption

Dabbler
Joined
Aug 3, 2022
Messages
32
I am experiencing the same problem. The truenas version of unifi does not detect any of my devices, if I install the truecharts version it works flawlessly with no additional modifications. I wanted to move away from Truecharts but this is making me rethink doing so.
 

requird

Cadet
Joined
Feb 23, 2023
Messages
7
I was able to find UniFi devices with the TrueNas Community release - not TrueCharts.
I did two things, but now I'm wondering if only the step 2 was needed.

1. I did Option 43 in DHCP (done in my OPNsense appliance) using this link that was shared above: https://tcpip.wtf/en/unifi-l3-adoption-with-dhcp-option-43-on-pfsense-mikrotik-and-others.htm
2. I checked the Host Network box as shown in Hedin's post. (Thank you @Hedin)

This solved the port 3478 in the community app for me.
View attachment 71423
View attachment 71424
 

adi.li

Cadet
Joined
Feb 9, 2024
Messages
2
Just registrerad here to confirm that @Hedin Solution worked like a charm. Thank you.
It looks like you dont need to do option 43 on @requird post. just activate HOST.
A simple install guide would have saved hours.
 

requird

Cadet
Joined
Feb 23, 2023
Messages
7
Does anyone know what that checkbox, Host Network does? I can't find any documentation on it.
 

adi.li

Cadet
Joined
Feb 9, 2024
Messages
2
From my understanding the apps are isolated with own virtual network and everything. When you activate host for the app it forces the app to show as part of the hosts ip (truenas) but on a different port. This means that the app will use the same ip as the host and will occupy the ports it needs. Ports that are now used from the app, in this case the unifi app will not be available for other apps or services. Correct me if i get this wrong.
 
Top