OpenWrt Forum Archive

Topic: WRT1900AC v1: ddns issues - LEDE - spdyn

The content of this topic has been archived on 26 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello,

I installed LEDE on my WRT1900AC v1 and now am trying to get ddns working.
My prerequisites:
- linksys WRT1900AC v1 as router
- router is situated behind ISP-modem (Fritz!Box 7412)
- ddns-provider spdyn.de
- domain/user/password working in earlier firmware-versions (openwrt CC/DD)
What I did:
- installed LEDE v17.01.2
[...several other configuration stuff...]
- installed ddns-scripts luci-app-ddns ca-certificates curl

During luci configuration I wasn't able to use the preconfigured "spdyn"-entry from DDNS Service provider [IPv4], I would always get a domain/user/passwort-missing warning. So I chose the "custom"-entry.

Now I get the following picture:
https://abload.de/thumb/bildlqq36.png
and the corresponding log-output:

 083006       : ************ ************** ************** **************
 083006  note : PID '7733' started at 2017-08-21 08:30
 083006       : ddns version  : 2.7.6-13
 083006       : uci configuration:
ddns.ipv4_spdyn.cacert='/etc/ssl/certs'
ddns.ipv4_spdyn.check_interval='20'
ddns.ipv4_spdyn.domain='xxx.spdns.de'
ddns.ipv4_spdyn.enabled='1'
ddns.ipv4_spdyn.force_interval='12'
ddns.ipv4_spdyn.ip_source='web'
ddns.ipv4_spdyn.ip_url='http://checkip4.spdyn.de/'
ddns.ipv4_spdyn.lookup_host='xxx.spdns.de'
ddns.ipv4_spdyn.password='yyy'
ddns.ipv4_spdyn.retry_interval='5'
ddns.ipv4_spdyn.retry_unit='minutes'
ddns.ipv4_spdyn.update_url='http://[USERNAME]:[PASSWORD]@update.spdyn.de/nic/update?hostname=[DOMAIN]&myip=[IP]'
ddns.ipv4_spdyn.use_https='1'
ddns.ipv4_spdyn.username='xxx.spdns.de'
ddns.ipv4_spdyn=service
 083006       : verbose mode  : 0 - run normal, NO console output
 083007       : check interval: 1200 seconds
 083007       : force interval: 43200 seconds
 083007       : retry interval: 300 seconds
 083007       : retry counter : 0 times
 083007       : No old process
 083007       : last update: never
 083007       : Detect registered/public IP
 083007       : #> /usr/bin/nslookup [-].spdns.de  >/var/run/ddns/ipv4_spdyn.dat 2>/var/run/ddns/ipv4_spdyn.err
 083007       : Registered IP 'zzz' detected
 083007  info : Starting main loop at 2017-08-21 08:30
 083007       : Detect local IP on 'web'
 083007       : #> /usr/bin/curl -RsS -o /var/run/ddns/ipv4_spdyn.dat --stderr /var/run/ddns/ipv4_spdyn.err --capath /etc/ssl/certs --noproxy '*' 'http://checkip4.spdyn.de/'
 083007 ERROR : cURL Error: '48'
 083007       : curl: (48) Error
 083007  WARN : Transfer failed - retry 1/0 in 300 seconds

Error 48 is "unknown"/app specific, so I don't know exactly what went wrong. Obviously the ip-check doesn't work...
Any help is appreciated!

Thanks at least for reading,
ssdnvv

(Last edited by ssdnvv on 21 Aug 2017, 13:11)

From the log you can see, that curl cannot detect your WAN IP by calling "http://checkip4.spdyn.de/"
Does this work from your browser ?
Do you need to detect your WAN IP via web ? Normally it's better to detect via "network" or "interface".

Yes, you're right.
It does work by browser - what I forgot to write in my starting post: the router is situated behind my ISP-modem (Fritz!Box 7412).

The very same configuration works seamlessly for a TP-Link TL-WR842N/ND v1 and OpenWrt Chaos Calmer 15.05.1.

Please have a look here, it might help
https://forum.lede-project.org/t/ddns-s … error/1098

I never had problems when libcurl was compiled using OpenSSL.
The curl problems started with the decision to use PolarSSL now mbedTLS as default SSL.

If not really needing curl move to wget-ssl

No, I actually don't really need curl.
Thanks man, that made my day! :-) With wget it works instantly!

(Last edited by ssdnvv on 21 Aug 2017, 21:23)

The discussion might have continued from here.