I have been struggling with this problem. I recently replaced my Asus RT-AC66U router with Unifi Dream Machine. I configured Home Assistant with DuckDNS and port forwarding on Asus router, had no connecting problem. Worked inside the network and outside the network.
Port forwarding configuration is same in UDM like ASUS
No solution found, I have installed my old ASUS router again for cheaking where is the problem. whether it is my Homeassistant configuration or router. I was confused why my Homeassistant was not working properly. After I changed my router every thing is working fine now So That means there is something wrong with UDM settings.
Please let me know if you find anything solution.
I experience same issue as well. Bought UDM, made exactly same port forwarding.
I realized I’m able to access HA via xyz.duckdns.org:8123 from the outside (internet) but not from the lan. But what’s weird it’s inaccessible even in lan via IP (https://192.168.1.10:8123).
Is your HA server on a separate VLAN from the machine you are trying to access it from internally?
I use the same URL to access HA internally and external and then use a Pi Hole to resolve internal requests to xxx.duckdns.org back to my HAs internal IP. In my scenario I keep my HA server in my main LAN. Here is my UDM port forword rule:
HA is in same VLAN as I access it internaly. No extra firewall rules applied to restrict anything, using default ones in the UDM. The only difference in my port forwarding like shown in the picture is I have allowed TCP only. Not sure if this could be the case.
May be worth trying. I am not sure if HA needs both protocols for sure. I would have to look it up. Sorry, I do not see a picture in you post for some reason.