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
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...
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
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
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.