Hi,
I have an EasyBox router, Vodafone Station,
is it possible to access the homeassistant from outside using an ipv6 address?
No public ipv4 port,
only ipv6 are available, but they don’t work when I’m trying to access from another network, e.g. o2,
NOTE:
ds-lite is ipv6 <=> mobile o2 is ipv4 Not Work!
ds-lite is ipv6 <=> other ds-lite is ipv6 Work!
Add-on Duck DNS update ipv6 not work - cause hassio docker container work in only ipv4 S o l u t i o n !
!! For DS-LITE !! H A S S I O !! IPV6
1.Create an account on duckdns.
2.Make script sh udns.sh :
#!/bin/bash
# register a subdomain at https://www.duckdns.org/ to get your token
SUBDOMAIN="xxxxx.duckdns.org" GET From duckdns.org
TOKEN="xxxxxxxxxxxxxxxx" GET From duckdns.org
IPV6=`ip r get to 2001:4860:4860::8888 | perl -ne '/src ([\w:]+)/ && print "$1\n"'`
# no modification below needed
curl --silent "https://www.duckdns.org/update?domains=$SUBDOMAIN&token=$TOKEN&ipv6=$IPV6"
if [ $? -eq 0 ];
then
echo "update suceeded IPV6: "
echo $IPV6
else
echo "update failed"
fi
Install Add-on SSH & Web Terminal
Put the file script udns.sh to hassio host via Samba e.g. folder /config