16
General Discussion / Re: Feature request (sort of): dynamic DNS - NoIP over IPv6?
« on: February 14, 2021, 04:02:42 pm »
I think I finally got it working (ran it twice in the OPNsense console to make sure)! Here's the final script I have:
It would also have helped if I thought to check the file encoding before saving so many failed versions of my script - it was set to Windows, not Unix...
Thanks to everyone who chipped in .
Code: [Select]
#!/bin/sh
# just in case the other shell doesn't work: /usr/local/sbin/opnsense-shell
ipv6=`curl https://ipv6.icanhazip.com`
curl -X POST -u "<username>:<password>" https://dynupdate.no-ip.com/nic/update?hostname=<hostname> -d myipv6=${ipv6}
It would also have helped if I thought to check the file encoding before saving so many failed versions of my script - it was set to Windows, not Unix...
Thanks to everyone who chipped in .