DDNS on 19.07 behind ISP router detects private ip freedns.afraid.org

I have a openwrt 19.07. router behind my ISP router on its own subnet:

I want to set up DDNS on openwrt and followed the guide for openwrt at freedns.afraid.org:
service_name afraid.org-v2-token
domain [Your FQDN]
username [NOT used. Set to a character of your choice, because LuCI does not accept empty field]
password [Your authorisation token, NOT your account password]

When try to start the service i get the following error:

 172844       : ddns version  : 2.7.8-12
 172844       : uci configuration:
ddns.entry1XXX.enabled='1'
ddns.entry1XXX.lookup_host='ownnameXXX.us.to'
ddns.entry1XXX.password='***PW***'
ddns.entry1XXX.service_name='afraid.org-v2-token'
ddns.entry1XXX=service
 172844       : verbose mode  : 0 - run normal, NO console output
 172844       : check interval: 600 seconds
 172844       : force interval: 259200 seconds
 172845       : retry interval: 60 seconds
 172845       : retry counter : 0 times
 172845       : No old process
 172845       : last update: never
 172845       : Detect registered/public IP
 172845       : #> /usr/bin/nslookup ownnameXXX.us.to  >/var/run/ddns/entry1XXX.dat 2>/var/run/ddns/ahelusto.err
 172845       : Registered IP '71.111.1.211' detected
 172845  info : Starting main loop at 2020-01-13 17:28
 172845       : Detect local IP on 'network'
 172845       : Local IP '192.168.8.100' detected on network 'wan'
 172845       : Update needed - L: '192.168.8.100' <> R: '71.111.1.211'
 172845 ERROR : No or private or invalid IP '192.168.8.100' given! Please check your configuration
 172846 ERROR : No update send to DDNS Provider
 172846       : Waiting 600 seconds (Check Interval)

(all word ending with XXX are set to private here, also public ip changed....)
Note that the 192.168.8.100 is the Ip set for the Modem integratet in my own subnet.

So i tried on luci at the advanced register card: Force IP Version activated the checkbox with the following solution:

 173630  note : PID '29327' terminated by 'SIGTERM' at 2020-01-13 17:36
 173634       : ************ ************** ************** **************
 173634  note : PID '30144' started at 2020-01-13 17:36
 173634       : ddns version  : 2.7.8-12
 173634       : uci configuration:
ddns.entry1XXX.enabled='1'
ddns.entry1XXX.force_ipversion='1'
ddns.entry1XXX.lookup_host='ownnameXXX.us.to'
ddns.entry1XXX.password='***PW***'
ddns.entry1XXX.service_name='afraid.org-v2-token'
ddns.entry1XXX=service
 173634       : verbose mode  : 0 - run normal, NO console output
 173634       : check interval: 600 seconds
 173635       : force interval: 259200 seconds
 173635       : retry interval: 60 seconds
 173635       : retry counter : 0 times
 173635       : No old process
 173635       : last update: never
 173635       : Detect registered/public IP
 173635  note : Busybox nslookup - no support to 'force IP Version' (ignored)
 173635  WARN : PID '30144' exit WITH ERROR '2' at 2020-01-13 17:36

Anybody a simple solution configurating with luci as i am no expert and 1 am not use the console!
Big Thanks in Advance

The same issue as here: Dynamic dns - configuration issue
You should not supply your public IP in the update since you don't have one on this router.

1 Like

Thanks i am trying to check that, hope i understand the solution

Sorry i have no idea what to do....
Can you give me a dummy solution? The thing is that ddns worked with an old version of openwrt, but i can not recounstract the setting because the hole interface changed...

The simplest workaround: select "custom" instead of "afraid.org-v2-token"
then use the following "Custom update-URL":

https://sync.afraid.org/u/your-v2-token-here/

The ready-to-use link should be available on this page.

1 Like

That does not work for me: Config says: Basic Settings - Custom update-URL: missing / required.
I just copied my personal link unter "custom"... ???

This is the logfile:

182001  note : PID '4937' started at 2020-01-13 18:20
 182001       : ddns version  : 2.7.8-12
 182001       : uci configuration:
ddns.helusto.enabled='1'
ddns.helusto.lookup_host='ownnameXXX.us.to'
ddns.helusto.update_url='https://freedns.afraid.org/dynamic/update.php?bmQ0a2xqUmhJOUJvbExSbVh6Y045SFFGOXXXXXXXXX'
ddns.helusto=service
 182001       : verbose mode  : 0 - run normal, NO console output
 182001       : check interval: 600 seconds
 182001       : force interval: 259200 seconds
 182001       : retry interval: 60 seconds
 182001       : retry counter : 0 times
 182001       : No old process
 182002       : last update: never
 182002       : Detect registered/public IP
 182002       : #> /usr/bin/nslookup ownnameXXX.us.to  >/var/run/ddns/XXXname.dat 2>/var/run/ddns/XXXname.err
 182002       : Registered IP '77.777.7.777' detected
 182002  info : Starting main loop at 2020-01-13 18:20
 182002       : Detect local IP on 'network'
 182002       : Local IP '192.168.8.100' detected on network 'wan'
 182002       : Update needed - L: '192.168.8.100' <> R: '77.777.7.777'
 182002 ERROR : No or private or invalid IP '192.168.8.100' given! Please check your configuration
 182002 ERROR : No update send to DDNS Provider
 182002       : Waiting 600 seconds (Check Interval)

OK, one more step is required - on Advanced page:
IP address source [IPv4] URL
URL to detect [IPv4] will be autopopulated with http://checkip.dyndns.com

1 Like

if i put the personal url from v2 from https://freedns.afraid.org/, the interface tells me: Basic Settings - Custom update-URL: missing / required

If v2 URL is not working for whatever reason you can use v1 syntax as shown here, just take Direct URL at the bottom of the page.

1 Like

Sorry to bother you again, but it is still not working, the log file tells me:

184234       : ************ ************** ************** **************
 184234  note : PID '10252' started at 2020-01-13 18:42
 184234       : ddns version  : 2.7.8-12
 184234       : uci configuration:
ddns.1_Eintrag.enabled='1'
ddns.1_Eintrag.ip_source='web'
ddns.1_Eintrag.lookup_host='ownnameXXX.us.to'
ddns.1_Eintrag.update_url='https://freedns.afraid.org/dynamic/update.php?bmQ0a2xqUmhJOUJvbExSbVh6Y045XXXXXXXXXXXXX'
ddns.1_Eintrag=service
 184234       : verbose mode  : 0 - run normal, NO console output
 184234       : check interval: 600 seconds
 184234       : force interval: 259200 seconds
 184234       : retry interval: 60 seconds
 184234       : retry counter : 0 times
 184234       : No old process
 184234       : last update: never
 184234       : Detect registered/public IP
 184234       : #> /usr/bin/nslookup ownnameXXX.us.to  >/var/run/ddns/1_Eintrag.dat 2>/var/run/ddns/1_Eintrag.err
 184234       : Registered IP '77.777.7.777' detected
 184234  info : Starting main loop at 2020-01-13 18:42
 184234       : Detect local IP on 'web'
 184234       : #> /bin/uclient-fetch -q -O /var/run/ddns/1_Eintrag.dat -Y off 'http://checkip.dyndns.com' 2>/var/run/ddns/1_Eintrag.err
 184235       : Local IP '77.777.7.777' detected on web at 'http://checkip.dyndns.com'
 184235       : Forced Update - L: '77.777.7.777' == R: '77.777.7.777'
 184235       : #> /bin/uclient-fetch -q -O /var/run/ddns/1_Eintrag.dat -Y off 'https://freedns.afraid.org/dynamic/update.php?bmQ0a2xqUmhJOUJvbExSbVh6Y045XXXXXXXXX' 2>/var/run/ddns/1_Eintrag.err
 184235 ERROR : uclient-fetch Error: '1'
 184235       : /bin/uclient-fetch: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
 184235  WARN : Transfer failed - retry 1/0 in 60 seconds

Ok got it, no https but http!

Thank you for your big help, i seems to work now...
!!
:slightly_smiling_face:

Just install missing packages, I suggest to get both - ca-bundle and ca-certificates
Everything should work with afraid.org-v2-token, no custom URL is required.
v1 URL works fine in custom mode, while v2 does not.

1 Like

Please don't forget to mark topic as solved.

1 Like

am i Stupid? :crazy_face:
Where can i put the topic to solved?

Ok got it...

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.