Because the ddclient
in EdgeRouter firmware is 3.8.3
, which doesn't support DDNS in IPv6. This script is aimed to upgrade the ddclient
to 3.9.0
.
Simply install a few perl modules which required by ddclient 3.9.0
and doesn't exist in the firmware, then replace the ddclient
.
libnetwork-ipv4addr-perl
libnet-ipv6addr-perl
libnet-netmask-perl
libdata-validate-ip-perl
libio-socket-inet6-perl
Device | Version |
---|---|
ER-X | 1.10.5 |
ER-X | 2.0.3 |
Use SSH to connect to your Router
Install the script and upgrade the ddclient
sudo su -
curl -o /config/scripts/ddclient.sh https://raw.githubusercontent.com/SpartaEN/ubnt-ddns-ipv6/master/ddclient.sh
chmod +x /config/scripts/ddclient.sh
sh /config/scripts/ddclient.sh
Make the script a scheduled task to auto upgrade the ddclient after firmware upgrade
configure
set system task-scheduler task update.ddclient executable path /config/scripts/ddclient.sh
set system task-scheduler task update.ddclient interval 1d
save
commit
Since some modules have been removed for wheezy, I switched to Stretch.