For those of you who use EdgeRouters you probably notice that Ubiquiti introduced hasn't introduced a simple way to update an IPv6 address on cloudflare. With IP Version 4 this is rather simplier and works directly with the config.boot:
However with version 6 we need to get our hands dirty and work with crontab and a shell script. To do this, simple create a folder called
Next step create a file called
cloudflare-ddns.sh under this folder and fill it with the following and edit your cloudflare credentials:
Make this script executable then with
chmod +x cloudflare-ddns.sh
One last thing we need to do now is to run this script to automatically update the IP on cloudflare.
One easy way to do this is with a cronjob. Simple type
sudo crontab -e -u root and add the following to it:
This will essentially run the script every minute to update the IP if there are any changes. I couldn't find a trigger that could be used instead.
You can check the results from the log-file located at
Over and Out,