Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Support] - Unifi-Controller: Unifi. Unraid. Reborn.

Featured Replies

  • Author
6 minutes ago, MrTroll said:

Using Firefox private window or not it will not connect if I use Chrome it will connect but will flag the connection as experiencing performance issues. I can connect it via my phone however using the app. From memory this only kicked in around network server 8.xx. I have yet to try a full reinstall of the container but I've been trying to fix this on and off for a while.

What are you typing into the private browser window as the address?

 

also please disable the port forward on your firewall. It is not required at all. 

Edited by PeteAsking

  • Replies 994
  • Views 185.1k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • 8.0.28 has failed testing and will not be promoted to an unraid tag and will be skipped.

  • PeteAsking
    PeteAsking

    8.3.32-unraid tag is tested and available for home users in production.

  • Yeah not sure what is happening with Linuxserver.io or their images. I switched to binhex for everything.   As he didnt have a unifi docker I had to make one with 11notes. 11notes has docker

Posted Images

2 minutes ago, PeteAsking said:

What are you typing into the private browser window as the address?

I may not have been clear from the start this is via https://unifi.ui.com.

Here is some slightly different logs.

I'll also specify that the error I get when attempting to connect via Firefox is "Connecting to Site is taking longer than expected"

I've also got the container set to bridge mode.

logs.txt

  • Author
Just now, MrTroll said:

I may not have been clear from the start this is via https://unifi.ui.com.

Here is some slightly different logs.

I'll also specify that the error I get when attempting to connect via Firefox is "Connecting to Site is taking longer than expected"

I've also got the container set to bridge mode.

logs.txt 2.09 kB · 0 downloads

Is the docker in Bridge mode? If so please use the ip of your unraid server eg:

 

https://192.168.2.4:8443/

 

where 192.168.2.4 would be replaced with your unraid server ip address. 

 

 

  • Author

For that unifi.ui.com site - thats a unifi site hosted by unifi who owns the domain. To access that site it should load if you have a normal internet connection. 
 

once logged in you can access your controllers if you have sso turned on in the controller and also remote management here (as you are logging into their website you have to be using a username/password that is synced from the controller to their website):

IMG_1888.jpeg

Edited by PeteAsking

I have remote acess configured on the server container and had been using it for sometime without issue but around version 8.xx it wouldn't connect via Firefox and would give that connection warning on chrome. Using the mobile app it's always been able to remote access connect. I cannot connect using 8443 with my internal Lan address due to it being using by another container on my server so I since changed it to be 8445. Using that port I can connect without issue.

 

Just to be completely clear my issues have been with connecting using only the unifi.ui remote access method, I've not had any issues connecting from within my network. The soul issue is using Firefox at all and more broadly the slow connection tag in chrome.

  • Author
8 minutes ago, MrTroll said:

I have remote acess configured on the server container and had been using it for sometime without issue but around version 8.xx it wouldn't connect via Firefox and would give that connection warning on chrome. Using the mobile app it's always been able to remote access connect. I cannot connect using 8443 with my internal Lan address due to it being using by another container on my server so I since changed it to be 8445. Using that port I can connect without issue.

 

Just to be completely clear my issues have been with connecting using only the unifi.ui remote access method, I've not had any issues connecting from within my network. The soul issue is using Firefox at all and more broadly the slow connection tag in chrome.

This is why it does not work. You cannot change the port because the stun is hardwired to connect back to that port. 
 

for this setup you must change from bridge to macvlan and assign the container its own ip on the lan and allow it to use the native ports. This should resolve your issues. 
 

remember as far as the container knows it is using 8443 so if it informs the external website via stun it will inform it to connect back on 8443. This cant be solved without you making sure that this is reachable somehow. 
 

another option is to use nat rewrite rules on your firewall. I do not recommend exposing the container to the internet however. 

Edited by PeteAsking

  • Author

@MrTroll

 

to test this without making too many changes you could stop the container running on 8443 and then let the unifi controller use that port again, make sure you didnt have any firewall rules on that port etc. then check if its working. If this test solves it you can decide how best to change things internally to accommodate. 

Edited by PeteAsking

  • Author

Also check you dont have any super complex firewall setup interfering in addition. 

1 hour ago, PeteAsking said:

This is why it does not work. You cannot change the port because the stun is hardwired to connect back to that port. 
 

for this setup you must change from bridge to macvlan and assign the container its own ip on the lan and allow it to use the native ports. This should resolve your issues. 
 

remember as far as the container knows it is using 8443 so if it informs the external website via stun it will inform it to connect back on 8443. This cant be solved without you making sure that this is reachable somehow. 
 

another option is to use nat rewrite rules on your firewall. I do not recommend exposing the container to the internet however. 

So i've just changed it back it seems like whatever was using 8443 is no longer around.
However the issue remains.

The log has this from the point of the first attempted remote connection through unifi.ui
 

:0 TCP candidates not supported yet
:0 Permanent error code on allocate request: 420 - . This was after receiving a valid nonce
:0 TURN instance failed: TURN id:   3; fd: 228 0.0.0.0:46014 -> 141.101.90.1:3478 (all_interfaces) DTLS id:
:0 TCP candidates not supported yet
:0 Permanent error code on allocate request: 420 - . This was after receiving a valid nonce
:0 TURN instance failed: TURN id:   3; fd: 239 0.0.0.0:56798 -> 141.101.90.1:3478 (all_interfaces) DTLS id:
:0 STUN id:   4; fd: 225 172.17.0.2:52113 -> 159.196.184.248:55577 (eth0) DTLS id: 0 () (PEER) timed out
:0 STUN id:   5; fd: 225 172.17.0.2:52113 -> 104.30.144.186:28642 (eth0) DTLS id: 0 () (PEER) timed out
:0 STUN id:   6; fd: 225 172.17.0.2:52113 -> 104.30.144.186:65045 (eth0) DTLS id: 0 () (PEER) timed out
:0 STUN id:   7; fd: 225 172.17.0.2:52113 -> 104.30.144.186:14763 (eth0) DTLS id: 0 () (PEER) timed out
:0 STUN id:   8; fd: 225 172.17.0.2:52113 -> 104.30.144.187:26968 (eth0) DTLS id: 0 () (PEER) timed out
:0 STUN id:   9; fd: 225 172.17.0.2:52113 -> 104.30.144.187:35572 (eth0) DTLS id: 0 () (PEER) timed out
:0 TCP candidates not supported yet
:0 Permanent error code on allocate request: 420 - . This was after receiving a valid nonce
:0 TURN instance failed: TURN id:   3; fd: 236 0.0.0.0:50746 -> 141.101.90.1:3478 (all_interfaces) DTLS id:
:0 TCP candidates not supported yet
:0 Permanent error code on allocate request: 420 - . This was after receiving a valid nonce
:0 TURN instance failed: TURN id:   3; fd: 256 0.0.0.0:55003 -> 141.101.90.1:3478 (all_interfaces) DTLS id:
:0 STUN id:   4; fd: 229 172.17.0.2:44891 -> 159.196.184.248:54395 (eth0) DTLS id: 0 () (PEER) timed out
:0 STUN id:   5; fd: 229 172.17.0.2:44891 -> 104.30.144.187:9342 (eth0) DTLS id: 0 () (PEER) timed out
:0 STUN id:   6; fd: 229 172.17.0.2:44891 -> 104.30.144.186:23964 (eth0) DTLS id: 0 () (PEER) timed out
:0 STUN id:   7; fd: 229 172.17.0.2:44891 -> 104.30.144.187:16098 (eth0) DTLS id: 0 () (PEER) timed out
:0 STUN id:   8; fd: 229 172.17.0.2:44891 -> 104.30.144.187:42590 (eth0) DTLS id: 0 () (PEER) timed out
:0 STUN id:   9; fd: 229 172.17.0.2:44891 -> 104.30.144.186:47654 (eth0) DTLS id: 0 () (PEER) timed out
:0 STUN id:   4; fd: 233 172.17.0.2:54538 -> 159.196.184.248:59810 (eth0) DTLS id: 0 () (PEER) timed out
:0 STUN id:   5; fd: 233 172.17.0.2:54538 -> 104.30.144.186:52553 (eth0) DTLS id: 0 () (PEER) timed out
:0 STUN id:   6; fd: 233 172.17.0.2:54538 -> 104.30.144.187:21379 (eth0) DTLS id: 0 () (PEER) timed out
:0 STUN id:   7; fd: 233 172.17.0.2:54538 -> 104.30.144.187:9317 (eth0) DTLS id: 0 () (PEER) timed out
:0 STUN id:   8; fd: 233 172.17.0.2:54538 -> 104.30.144.187:20994 (eth0) DTLS id: 0 () (PEER) timed out
:0 STUN id:   9; fd: 233 172.17.0.2:54538 -> 104.30.144.186:17971 (eth0) DTLS id: 0 () (PEER) timed out
:0 STUN id:   4; fd: 253 172.17.0.2:45682 -> 159.196.184.248:56050 (eth0) DTLS id: 0 () (PEER) timed out
:0 STUN id:   5; fd: 253 172.17.0.2:45682 -> 104.30.144.186:11716 (eth0) DTLS id: 0 () (PEER) timed out
:0 STUN id:   6; fd: 253 172.17.0.2:45682 -> 104.30.144.187:45432 (eth0) DTLS id: 0 () (PEER) timed out
:0 STUN id:   7; fd: 253 172.17.0.2:45682 -> 104.30.144.187:45504 (eth0) DTLS id: 0 () (PEER) timed out
:0 STUN id:   8; fd: 253 172.17.0.2:45682 -> 104.30.144.187:31482 (eth0) DTLS id: 0 () (PEER) timed out
:0 STUN id:   9; fd: 253 172.17.0.2:45682 -> 104.30.144.187:51779 (eth0) DTLS id: 0 () (PEER) timed out

  • Author

I think something in your firewall is interfering. What is your firewall setup and is it complex?

@MrTroll

Edited by PeteAsking

7 minutes ago, PeteAsking said:

I think something in your firewall is interfering. What is your firewall setup and is it complex?

@MrTroll

I used to have a region block on everywhere that's outside of my home country but I removed that ages ago. Apart from that a bunch of port forwarding for game servers and that's about it.

  • Author
2 hours ago, MrTroll said:

I used to have a region block on everywhere that's outside of my home country but I removed that ages ago. Apart from that a bunch of port forwarding for game servers and that's about it.

Can you check your docker has internet?

 

Open the console of the reborn docker and do this:

image.thumb.png.6b1eeca5909f0b4076c587f23ae99e14.png

43 minutes ago, PeteAsking said:

Can you check your docker has internet?

 

Open the console of the reborn docker and do this:

image.thumb.png.6b1eeca5909f0b4076c587f23ae99e14.png

image.png.fe412b8eae8889a472d5da6558301feb.png

As requested

  • Author

@MrTroll

I agree I am running out of ideas here. Is the date correct (type date in the console and check not out more than 5 minutes).

  • Author

Also check you have this set like in this format:

 

IMG_1891.png

Sorry, quick qusetion.

Will this allow control of USG devices? or is it only for AP's & Switches?

 

Thanks

  • Author
17 minutes ago, tcshavasu said:

Sorry, quick qusetion.

Will this allow control of USG devices? or is it only for AP's & Switches?

 

Thanks

Only ap and switches

3 hours ago, tcshavasu said:

Sorry, quick question.

Will this allow control of USG devices? or is it only for AP's & Switches?

 

Thanks

I had a usg for a short time and yes the controller docker will work will all unifi equipment As long as you have the correct tag and unifi min version running for that hardware.

On unifi product page tech spec min unifi version is the tag you need to be at least running.
https://dl.ubnt.com/datasheets/unifi/UniFi_Security_Gateway_DS.pdf

also FYI unifi has dropped USG due to hardware software constraints.
https://community.ui.com/questions/USG-3P-End-of-Life/f0f57d71-c852-439d-8be7-d61b92f7905a

They will still work and function, but it would be a known security risk or attack vector.

Check and check.

I'm considering the nuclear option here brother. Will deleting my container, it's app data and starting again from scratch orphan my unifi devices requiring a reset for them to be able to enroll them. Screenshot_20250408-000349.png.943220659083093aad4617a0db057168.png

Screenshot_20250408-051750.png

11 minutes ago, MrTroll said:

Check and check.

I'm considering the nuclear option here brother. Will deleting my container, it's app data and starting again from scratch orphan my unifi devices requiring a reset for them to be able to enroll them. 


what is your docker network for the unfi application?

I would 2 3 things...

1. Move off ipvlan and use macvlan setting unraid docker setting to
image.png.7e057dc72df7bf51446a698ec80d52a9.png

-Macvlan is needed to give the container a random mac to be used latter...

Ip vlan use teh unraid host interface mac address causing problems when mutiple dockers use the same mac address...
 

2. edit the unfi controller template and use custom bro (bond0, br0, eth0 depending on other unraid settings)
image.png.929e32a30f7517796fc44ffb6f2608b6.png

3. add a host name and extra dns option for the docker to have dns routes out...

image.png.2af090a3d8f4d169cb8684e5c602c47a.png

--hostname unifi --dns=192.168.0.1 --dns=8.8.8.8

add and make these changes will 1 separate the unfi docker off the docker bride given it its own ip at 192.168.0.228 and all port open and accessible to that docker instance.

this will also give the docker its own mac address for later networking use of arp cache and accesses and helps the inform host as unfi calls the dns name unifi across the network and if running a dns service like adguard / pihole it is recommended to add a host option to unfi to the ip address of the controller...

when stun issue arise its always port and network cross talk issues...

https://community.ui.com/questions/STUN-Communication-Failed/226fb3e1-26ac-43d0-b265-714d9e45f161

 

 

3 hours ago, bmartino1 said:


what is your docker network for the unfi application?

I would 2 3 things...

1. Move off ipvlan and use macvlan setting unraid docker setting to
image.png.7e057dc72df7bf51446a698ec80d52a9.png

-Macvlan is needed to give the container a random mac to be used latter...

Ip vlan use teh unraid host interface mac address causing problems when mutiple dockers use the same mac address...
 

2. edit the unfi controller template and use custom bro (bond0, br0, eth0 depending on other unraid settings)
image.png.929e32a30f7517796fc44ffb6f2608b6.png

3. add a host name and extra dns option for the docker to have dns routes out...

image.png.2af090a3d8f4d169cb8684e5c602c47a.png

--hostname unifi --dns=192.168.0.1 --dns=8.8.8.8

add and make these changes will 1 separate the unfi docker off the docker bride given it its own ip at 192.168.0.228 and all port open and accessible to that docker instance.

this will also give the docker its own mac address for later networking use of arp cache and accesses and helps the inform host as unfi calls the dns name unifi across the network and if running a dns service like adguard / pihole it is recommended to add a host option to unfi to the ip address of the controller...

when stun issue arise its always port and network cross talk issues...

https://community.ui.com/questions/STUN-Communication-Failed/226fb3e1-26ac-43d0-b265-714d9e45f161

 

 

After following all your recommendations I have to report that the issue remains.
I really want to focus on the fact it works with Chrome and the app but not with Firefox.

 

  • Author
2 hours ago, MrTroll said:

After following all your recommendations I have to report that the issue remains.
I really want to focus on the fact it works with Chrome and the app but not with Firefox.

 

Do you use static ip addressing on any of the ap’s or switches? Please check you have dns assigned to the devices and or normal dhcp. If you use dns filter eg pihole please disable for an hour while you test. 

Edited by PeteAsking

3 hours ago, PeteAsking said:

Do you use static ip addressing on any of the ap’s or switches? Please check you have dns assigned to the devices and or normal dhcp. If you use dns filter eg pihole please disable for an hour while you test. 

Yup they're all set to a normal DHCP server.
Its all and all a very standard network setup with a pihole set and even after I tried turning off the error remained.

5 hours ago, MrTroll said:

After following all your recommendations I have to report that the issue remains.
I really want to focus on the fact it works with Chrome and the app but not with Firefox.

 

did the stun issues lesson or stop?

Are you using vlans?

 

? what works with chrome / app but not firefox?

Adaption for equipment?

Usauly if i see different behavior in one browser vs another its a issue with the web browser and how the engine decided to read the web page...

You mentioned running pihole. Did you set a custom dns host name of unifi to the inform ip and ip of the controller?


I would also Highly recomend clearing firefox cached data and coookies...

 

Also make sure your using the lattest firefox version and/or try the esr version... Different webkit engine...

 

https://support.mozilla.org/en-US/kb/switch-to-firefox-extended-support-release-esr

https://www.mozilla.org/en-US/firefox/all/desktop-esr/

 

and try again...

17 minutes ago, bmartino1 said:

did the stun issues lesson or stop?

Are you using vlans?

 

? what works with chrome / app but not firefox?

Adaption for equipment?

Usauly if i see different behavior in one browser vs another its a issue with the web browser and how the engine decided to read the web page...

You mentioned running pihole. Did you set a custom dns host name of unifi to the inform ip and ip of the controller?


I would also Highly recomend clearing firefox cached data and coookies...

 

Also make sure your using the lattest firefox version and/or try the esr version... Different webkit engine...

 

https://support.mozilla.org/en-US/kb/switch-to-firefox-extended-support-release-esr

https://www.mozilla.org/en-US/firefox/all/desktop-esr/

 

and try again...

Stun issues looked to remain the same.
I am not using Vlans.

I added the custom hostname to the extra parameters field as suggested.
Pihole is running on a custom Br0 network itself.

I cannot access my Unifi Network through the Unifi.UI when I select it in the site manager it never loads, but only in firefox.

In Chrome it will load with the globe icon in the top left being orange giving a speed warning.

The Unifi app works fine aswell.
Some of the digging I did on my own point to how firefox handles Stun vs chrome.
I've cleared firefox data and cookies many times, i've turned off enhanced protection which is on be default everything nothing changes. Yes I have the latest version.

My network is very simple, I use a single Unifi router, switch, ap.
I am not running behind a NAT as I've asked my ISP to disable it ages ago.

Edited by MrTroll
Clarity

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.