Hi,
I am trying to setup integration with Google Home without paying for the cloud and for that I firstly need to make my Home Assistant externally available with a certificate. I use Fritz!Box 1490 router and do not have an external IPv4 address (using DS Lite tunnel), hence my only option is to use IPv6. HA runs in a VirtualBox VM on a Windows device with bridged adapter.
I have installed DuckDNS add-on and configured it like so:
domains:
- <redacted>.duckdns.org
token: <redacted>
aliases:
- domain: <redacted-private-domain>
alias: <redacted>.duckdns.org
lets_encrypt:
accept_terms: true
algo: secp384r1
certfile: fullchain.pem
keyfile: privkey.pem
seconds: 300
ipv6:<redacted-ipv6-address>
ipv4: none
I have also added the following lines to configuration.yaml:
http:
ssl_certificate: /ssl/fullchain.pem
ssl_key: /ssl/privkey.pem
server_host: ::0
Finally, I have enabled port sharing for Home Assistant in FritzBox settings:
Unfortunately, I canât access HA interfaŃŃ externally. I have tried to debug the issue:
- for some reason DuckDNS add-on detectes my IPv6 incorrectly (it doesnât match with what FritzBox shows, but matches what ânetwork infoâ reports), so I hard-coded correct IP into the config
- nslookup on my private domain returns the configured IP address, so DNS setup is correct (including CNAME for private domain and cert challenges)
- curl -v http://:8123 fails with âCouldnât connect to the serverâ
- traceroute returns !H (unreachable)
- locally https://homeassistant.local:8123/ works, although I have to convince Chrome to ignore invalid certificate, which is issued for Duck DNS and my private domain
So, it seems like HA has correctly fetched certificates and is working as expected. The issue is connection from outside of my network. I have tried debugging this a bit more with Wireshark and concluded that using the IPv6 address from FritzBox is better because I get at least the âNeighbor Solicitationâ packets captured by Wireshark on Windows machine. If I use IPv6 address from HA VM, I donât see anything. However, due to the mismatch HA VM ignores those solicitation requests and never replies.
I suspect the reason for different IP address is because I have a bridged adapter. Is there any way to convince HA that it should use a different IP address? I have tried using ânetwork update enp0s3 --ipv6-address â, but it seems to have no effect.