Hi everyone!
I’ve been fighting this for hours now!
This is my setup:
I’m using a Fritz!Box 5530 Fiber and a Dell Optiplex with Home Assistant OS 16 (15.2 up until 3 hours ago).
I’m using “myFritz sharing” for that device on my network to get a custom subdomain on the myFritz service, which always points to my public IPv4 as well as the IPv6 of the Dell Optiplex.
I’ve also forwarded Ports 80, 443 and 853 to the Optiplex.
Then I’ve created a CNAME record from homeassistant.mydomain.tld and adguard.mydomain.tld to that homeassistant.privatewhatever.myFritz subdomain. Works beautifully!
Now I can access Home Assistant and AdGuard using my own domains.
In Home Assistant I’ve installed and enabled the following addons:
- NGINX Proxy Manager
- AdGuard Home
I’ve configured NGINX Proxy Manager to proxy homeassistant.mydomain.tld with Let’s Encrypt to http://homeassistant.local:8123 to access the interface using SSL and without having to append the port. Works beautifully!
I’ve also configured the encryption settings in AdGuard Home so that I can use Private DNS settings on my Android phone using adguard.mydomain.tld, thanks to the forwarded port 853.
However, there is just one small problem:
It only works beautifully via IPv4!
Home Assistant gets the wrong IPv6. Only when I enter the correct one statically in the Home Assistant network settings, then IPv6 works as well, but since my provider rotates the IPs several times a day it’ll only ever work for a few minutes to a few hours. But once I enter the correct one, it’ll work INSTANTLY.
Here’s the details:
In my Fritz!Box I can see seven IPv6 for that device.
They are called:
- IPv6-LLA-Temporary (1)
- IPv6-LLA-Temporary (2)
- IPv6-ULA-Temporary
- IPv6-GUA-Temporary
- IPv6-ULA
- IPv6-LLA-Temporary (3)
- IPv6-GUA
The one the myFritz subdomain points to and the one that works is the IPv6-GUA (No. 7). The one that Home Assistant receives and displays in the network settings is the IPv6-GUA-Temporary (No. 4).
I’ve already used sysctl to set temp_addr=0 on all network devices and set ipv6.addr-gen-mode to eui64 on all network devices using nmcli but It did not change anything.
Please help me. I’m at a loss.
I’ve considered to listening to the IP change and using a script to update the static IP, though that seems more like a bandaid than a solution.