Unifi-controller unable to access from Unifi Network Portal

Hi Guys,

few months ago i lost the access to login from Unifi Network Portal into my Unifi-controller docker container. i have no problem accessing UC from the LAN but fail when trying remotely. i run the docker on a Ubuntu VM (installed on ESXi server), i also using Portainer to manage all containers. i’m not sure where is the issue, container port, controller settings, compose settings or Firewall. the issue has started around the same time we upgrad the internet service from Cable TV to HFC(Hybrid Fibre Coaxial) and one of my suspicion is that the new service/ ISP is blocking the 8443 port not sure how to test it, i tried “telnet PUBLICIP 8443” from the LAN unable to connect. are you able to assist troubleshooting this issue its really bothering me. as well how do you properly checking the ISP is not blocking my ports?

See below information or let me know if you need any other information

Thank you

  • Unifi Network Portal - show online container IP 172.17.0.X
  • Unifi Controller - under Controller Setting IP 192.168.X.X (
    Override inform host with controller hostname/IP is ticked).
  • Firewall Ports - i open port 8443 didn’t help (i read no need to open ports in the firewall)

╭─user`@docker ~
╰─# ifconfig 127 ↵
docker0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255
inet6 fe80::42:88ff:xx:xx:xx prefixlen 64 scopeid 0x20
ether 02:42:88:xx:xx:xx txqueuelen 0 (Ethernet)
RX packets 3286806 bytes 599475838 (599.4 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 3809894 bytes 1297091931 (1.2 GB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

ensxxx: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.X.X netmask 255.255.255.0 broadcast 192.168.X.255
inet6 fe80::20c::xx:xx:xx prefixlen 64 scopeid 0x20
ether 00:0c:29:xx:xx:xx txqueuelen 1000 (Ethernet)
RX packets 6504577 bytes 3095771620 (3.0 GB)
RX errors 0 dropped 71 overruns 0 frame 0
TX packets 4358262 bytes 802860730 (802.8 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1000 (Local Loopback)
RX packets 184864 bytes 19815324 (19.8 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 184864 bytes 19815324 (19.8 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

veth:xx:xx:xx: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::acd8::xx:xx:xx prefixlen 64 scopeid 0x20
ether ae:d8:34:xx:xx:xx txqueuelen 0 (Ethernet)
RX packets 508 bytes 183885 (183.8 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 649 bytes 110642 (110.6 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

veth:xx:xx:xx: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::d02e:27ff:xx:xx:xx prefixlen 64 scopeid 0x20
ether d2:2e:27:xx:xx:xx txqueuelen 0 (Ethernet)
RX packets 13073 bytes 2928355 (2.9 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 13284 bytes 4732771 (4.7 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

veth:xx:xx:xx: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::d02a:7ff:xx:xx:xx prefixlen 64 scopeid 0x20
ether d2:2a:07:xx:xx:xx txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 59 bytes 8304 (8.3 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Compose
version: “2.1”
services:
unifi-controller:
image: linuxserver/unifi-controller:latest
container_name: unifi-controller
environment:
- PUID=1000
- PGID=1000
volumes:
- /unifi/:/config
ports:
- 3478:3478/udp
- 10001:10001/udp
- 8080:8080
- 8443:8443
- 1900:1900/udp #optional
- 8843:8843 #optional
- 8880:8880 #optional
- 6789:6789 #optional
- 5514:5514 #optional
restart: always

VM Listen ports
╭─user@docker ~
╰─# sudo netstat -tlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.53:domain 0.0.0.0:* LISTEN 693601/systemd-reso
tcp 0 0 0.0.0.0:ssh 0.0.0.0:* LISTEN 705706/sshd: /usr/s
tcp6 0 0 [::]:8000 [::]:* LISTEN 692082/docker-proxy
tcp6 0 0 [::]:6789 [::]:* LISTEN 692241/docker-proxy
tcp6 0 0 [::]:9000 [::]:* LISTEN 692069/docker-proxy
tcp6 0 0 [::]:5514 [::]:* LISTEN 692254/docker-proxy
tcp6 0 0 [::]:8843 [::]:* LISTEN 692169/docker-proxy
tcp6 0 0 [::]:http-alt [::]:* LISTEN 692228/docker-proxy
tcp6 0 0 [::]:8880 [::]:* LISTEN 692127/docker-proxy
tcp6 0 0 [::]:ssh [::]:* LISTEN 705706/sshd: /usr/s
tcp6 0 0 [::]:8443 [::]:* LISTEN 692198/docker-proxy

╭─user@docker ~
╰─# sudo docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
04c89e70fd91 linuxserver/unifi-controller:latest “/init” About an hour ago Up About an hour 0.0.0.0:1900->1900/udp, 0.0.0.0:5514->5514/tcp, 0.0.0.0:6789->6789/tcp, 0.0.0.0:8080->8080/tcp, 0.0.0.0:8443->8443/tcp, 0.0.0.0:8843->8843/tcp, 0.0.0.0:3478->3478/udp, 0.0.0.0:10001->10001/udp, 0.0.0.0:8880->8880/tcp, 8883/tcp unifi-controller

I was able to solve it, in my case it was Portainer version, i was on 1.24.1 when i upgrade to 2.0 i was able to login remotely my controller, hope it helps others.

Thank you

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.