OPNsense Forum
Archive => 22.1 Legacy Series => Topic started by: mircsicz on June 22, 2022, 04:11:54 pm
-
Hi all,
os-dyndns stopped to work for me when I was using No-Ip Group Passwd's. So I had to revert to my Master Passwd for all machines using that account a while ago. That is why I was happy to read the os-ddclient is gonna replace os-dyndns!
Now that we're about to transition to 22.7 I looked into migration my setup's to os-ddclient but am facing some issue's with ddlcient:
I've already read this thread (https://forum.opnsense.org/index.php?topic=26446.255) and also this thread (https://forum.opnsense.org/index.php?topic=28225.msg137080#msg137080)
with my setup I see the followong in the logs:
2022-06-22T15:59:41 Notice ddclient[98565] 93904 - [meta sequenceId="7"] WARNING: found neither ipv4 nor ipv6 address
2022-06-22T15:59:35 Notice ddclient[52758] 73674 - [meta sequenceId="6"] WARNING: found neither ipv4 nor ipv6 address
2022-06-22T15:59:10 Notice ddclient[771] 37236 - [meta sequenceId="5"] WARNING: unable to determine IP address
2022-06-22T15:59:10 Notice ddclient[771] 35027 - [meta sequenceId="4"] WARNING: found neither ipv4 nor ipv6 address
2022-06-22T15:59:07 Notice ddclient[98070] 17061 - [meta sequenceId="3"] WARNING: unable to determine IP address
2022-06-22T15:59:07 Notice ddclient[98070] 16274 - [meta sequenceId="2"] WARNING: found neither ipv4 nor ipv6 address
2022-06-22T15:59:00 Notice ddclient[95522] 19804 - [meta sequenceId="1"] WARNING: found neither ipv4 nor ipv6 address
So far I've tried the following "Check ip method's"
But the log doesn't change...
This is what my ddclient.conf looks like:
daemon=300
syslog=yes # log update msgs to syslog
pid=/var/run/ddclient.pid # record PID in file.
ssl=yes
use=cmd, cmd="/usr/local/opnsense/scripts/ddclient/checkip -i pppoe0 -t 1 -s noip-ipv4",
protocol=noip, \
login=MYUSER, \
password=MYPASSWD \
foo.ddns.me
I'm hoping one of you spot's the missing link...
I've also read this hint (https://askubuntu.com/questions/578725/ddclient-running-info) and tried to run it from ssh like this:
# sudo ddclient -daemon=0 -debug -verbose -noquiet
-
I've had good luck with using the 'web' method of checking IP. As a test, comment out the below line in your ddclient.conf file:
use=cmd, cmd="/usr/local/opnsense/scripts/ddclient/checkip -i pppoe0 -t 1 -s noip-ipv4",
and insert these:
use=if, if=igb0
use=web, web=freemyip.com/checkip
Note: igb0 is my WAN connection, if yours is different you will need to adjust.
-
Thx for the hint, but that method seems to be unavailable when using the webinterface to configure ddclient...
I've now checked the source code of /usr/local/opnsense/scripts/ddclient/checkip and found this list inside:
service_list = {
'dyndns': '%s://checkip.dyndns.org/',
'freedns': '%s://freedns.afraid.org/dynamic/check.php',
'googledomains': '%s://domains.google.com/checkip',
'he': '%s://checkip.dns.he.net/',
'ip4only.me': '%s://ip4only.me/api/',
'ip6only.me': '%s://ip6only.me/api/',
'ipify-ipv4': '%s://api.ipify.org/',
'ipify-ipv6': '%s://api6.ipify.org/',
'loopia': '%s://dns.loopia.se/checkip/checkip.php',
'myonlineportal': '%s://myonlineportal.net/checkip',
'noip-ipv4': '%s://ip1.dynupdate.no-ip.com/',
'noip-ipv6': '%s://ip1.dynupdate6.no-ip.com/',
'nsupdate.info-ipv4': '%s://ipv4.nsupdate.info/myip',
'nsupdate.info-ipv6': '%s://ipv6.nsupdate.info/myip',
'zoneedit': '%s://dynamic.zoneedit.com/checkip.html'
}
after checking some of these I checked googledomains and that seems to work so far:
2022-06-22T23:48:17 Notice ddclient[771] 381 - [meta sequenceId="32"] SUCCESS: foo.ddns.me: skipped: IP address was already set to 185.xxx.xx.xx.
2022-06-22T23:48:10 Notice ddclient[98070] 96230 - [meta sequenceId="31"] WARNING: updating bar.dynns.com: nochg: No update required; unnecessary attempts to change to the current address are considered abusive
I also realized that when switching back to "noip-ipv4" it breaks again...
@franco: as an EBI you might consider adding a hint to the list of offered services that most of those are just webservices like whatismyip.com... Because I first expected it to be specific for my above choosen Provider like noIP...
-
True. You have to edit the ddclient.conf file directly.
-
I use SPdyn, DDNS and goip, all three not supported in a few days by OPNsense. What to do about that?
-
I use SPdyn, DDNS and goip, all three not supported in a few days by OPNsense. What to do about that?
Just use the "Custom" service for goip. I use it as well and it works without a problem. See attached screenshot.
-
Thank you for the solution, setting service to custom fixed my dynamic dns with no ip. :)
-
The same for me: DuckDNS is working while No-IP was not.
Switched to custom and now is everything ok:
Protocol: DynDns2
Server: dynupdate.no-ip.com
Username: <My No-IP Username>
Password: <My No-IP Password>
Wildcard: NOT Checked
Hostname: <The hostname i want to update>
Check IP Method: Interface
Check IP Timeout: 10
Force SSL: CHECKED
Interface to Monitor: <FTTH PPPoE Interface, in my case>