I'm trying to configure DDNS on my D-Link DWR-921 (has an embedded LTE modem) running OpenWrt 19.07.1.
I registered a domain on dlinkddns (which uses dyn.com) and configured the Dynamic DNS tab from the LuCi interface as described in this link. When running, I got this error:
** Advanced Settings - IP address source [IPv4]: can not detect local IP. Please select a different Source combination**
I tried viewing the log file under Services > Dynamic DNS > Log File Viewer and found the following:
235840 : ************ ************** ************** **************
235840 note : PID '2365' started at 2020-03-09 23:58
235840 : ddns version : 2.7.8-12
235840 : uci configuration:
ddns.myddns_ipv4.domain='xyz.dlinkddns.com'
ddns.myddns_ipv4.enabled='1'
ddns.myddns_ipv4.interface='wan'
ddns.myddns_ipv4.ip_interface='br-wan'
ddns.myddns_ipv4.ip_network='guest'
ddns.myddns_ipv4.ip_source='network'
ddns.myddns_ipv4.lookup_host='xyz.dlinkddns.com'
ddns.myddns_ipv4.password='***PW***'
ddns.myddns_ipv4.service_name='dyn.com'
ddns.myddns_ipv4.username='koko123'
ddns.myddns_ipv4=service
235840 : verbose mode : 0 - run normal, NO console output
235841 : check interval: 600 seconds
235841 : force interval: 259200 seconds
235841 : retry interval: 60 seconds
235841 : retry counter : 0 times
235841 : No old process
235841 : last update: never
235841 : Detect registered/public IP
235841 : #> /usr/bin/nslookup hoopoedigital.dlinkddns.com >/var/run/ddns/myddns_ipv4.dat 2>/var/run/ddns/myddns_ipv4.err
235841 : Registered IP '45.247.208.198' detected
235841 info : Starting main loop at 2020-03-09 23:58
235841 : Detect local IP on 'network'
235841 : Local IP '192.168.182.1' detected on network 'guest'
235842 : Update needed - L: '192.168.182.1' <> R: '45.247.208.198'
235842 ERROR : No or private or invalid IP '192.168.182.1' given! Please check your configuration
235842 ERROR : No update send to DDNS Provider
235842 : Waiting 600 seconds (Check Interval)
000842 : Detect registered/public IP
000842 : #> /usr/bin/nslookup hoopoedigital.dlinkddns.com >/var/run/ddns/myddns_ipv4.dat 2>/var/run/ddns/myddns_ipv4.err
000842 : Registered IP '45.247.208.198' detected
000842 WARN : Updating IP at DDNS provider failed - starting retry 1/0
000842 : Detect local IP on 'network'
000842 : Local IP '192.168.182.1' detected on network 'guest'
000842 : Update needed - L: '192.168.182.1' <> R: '45.247.208.198'
000842 ERROR : No or private or invalid IP '192.168.182.1' given! Please check your configuration
000843 ERROR : No update send to DDNS Provider
000843 : Waiting 600 seconds (Check Interval)
My current LTE real IPv4 is (105.202.54.209) .. and the IP (45.247.208.198) that shows in the log file is a previous IP that I was assigned last time I was testing on a landline connection.
Any reason why I'm unable to run the DDNS over LTE?
I believe the problem is in the IP showing at the Virtual dynamic interface (DHCP client) .. this is not my real IPv4. I'm not running the QMI in the raw_ip mode.
These are all my WAN interfaces .. WWAN0 is the one that has an IPv4 but it's not the same as the public IP that I can see on whatismyipaddress ..
I'm not a QMI expert, but I believe the issue is that the obtained IP on the Virtual Dynamic Interface is not usable with DDNS .. I'm not sure how to obtain the actual IP .. ifconfig shows the following:
I suspect it's related to not using raw_ip mode in QMI .. I tried to switch to it, but I couldn't even get connected to the internet, rather than obtaining an IP.