- The IP address that DDNS has registered to global DNS servers must match the one on the WAN interface.
- Testing forwarding to internal servers must be done from a separate Internet connection. It does not work from inside the LAN.
... to 1: But the WAN IP address is/must be different to the FQDN from DDNS, isn't it? You normally will get an address from your inet provider for the WAN side and another from the DDNS provider.. I don't understand, how do they could match..(?)
.. to 2: ok, I see, looks like, I need a 2nd inet connection?
I'm saying that when someone looks up your FQDN to submit a web request to your site, the IP that the DNS system provides must be the one that the router has on its WAN interface.
That will not be the case if DDNS is not working properly, or if your ISP uses CGNAT.
For 2 you can use a smartphone as the separate Internet connection. Turn off the wifi on the phone so it is going through the cell network. Or go from your LAN to a port scan site. When you run the scan, the site's server tries to make a connection from outside, but it will only tell you that the port is open.
I'd expect you to follow the instructions.
Are you running 22.03 version by any chance?
... it seems that there is a problem with the DDNS config;
enclosed the latest log output:
090219 : Waiting 600 seconds (Check Interval)
091219 : Detect registered/public IP
091219 : #> /usr/bin/nslookup myhass.ddnssec.de >/var/run/ddns/myHassio.dat 2>/var/run/ddns/myHassio.err
091219 : Registered IP '100.65.147.210' detected
091219 WARN : Updating IP at DDNS provider failed - starting retry 70/0
091220 : Detect local IP on 'web'
091220 : #> /bin/uclient-fetch -q -O /var/run/ddns/myHassio.dat -Y off 'http://checkip.dyndns.com' 2>/var/run/ddns/myHassio.err
091221 : Local IP '62.176.253.68' detected on web at 'http://checkip.dyndns.com'
091221 : Update needed - L: '62.176.253.68' <> R: '100.65.147.210'
091221 : #> /bin/uclient-fetch -q -O /var/run/ddns/myHassio.dat -Y off 'http://username%40t-online.de:***PW***@www.dnshome.de/dyndns.php?hostname=myhass.ddnssec.de&ip=62.176.253.68' 2>/var/run/ddns/myHassio.err
091221 : DDNS Provider answered: nohost
091221 info : Update successful - IP '62.176.253.68' send
091222 info : Forced update successful - IP: '62.176.253.68' send
091222 : Waiting 600 seconds (Check Interval)
any ideas?
Looks like you're behind CGNAT. Not much you could do there, except to ask your ISP to port forward for you, if they support it.
got it. Nevertheless, I'll try another provider first... I'll report here again...
thanks so far and best
ok, other DDNS provider and here are the results:
115625 note : PID '6409' started at 2022-08-25 11:56
115625 : ddns version : 2.8.2-24
115625 : uci configuration:
ddns.myddns_ipv4.check_unit='minutes'
ddns.myddns_ipv4.domain='myccu.spdns.de'
ddns.myddns_ipv4.enabled='1'
ddns.myddns_ipv4.force_ipversion='1'
ddns.myddns_ipv4.force_unit='minutes'
ddns.myddns_ipv4.interface='wan'
ddns.myddns_ipv4.ip_source='web'
ddns.myddns_ipv4.ip_url='http://checkip.dyndns.com'
ddns.myddns_ipv4.lookup_host='myccu.spdns.de'
ddns.myddns_ipv4.password='***PW***'
ddns.myddns_ipv4.retry_unit='seconds'
ddns.myddns_ipv4.service_name='spdyn.de'
ddns.myddns_ipv4.use_ipv6='0'
ddns.myddns_ipv4.use_syslog='1'
ddns.myddns_ipv4.username='nn@wolfsburg.com'
ddns.myddns_ipv4=service
115625 : verbose mode : 0 - run normal, NO console output
115625 : check interval: 600 seconds
115625 : force interval: 4320 seconds
115626 : retry interval: 60 seconds
115626 : retry counter : 0 times
115626 : No old process
115626 : last update: never
115626 : Detect registered/public IP
115626 note : Busybox nslookup - no support to 'force IP Version' (ignored)
115626 : #> /usr/bin/nslookup myccu.spdns.de >/var/run/ddns/myddns_ipv4.dat 2>/var/run/ddns/myddns_ipv4.err
115626 : Registered IP '62.176.253.30' detected
115626 info : Starting main loop at 2022-08-25 11:56
115626 : Detect local IP on 'web'
115626 : #> /bin/uclient-fetch -q -O /var/run/ddns/myddns_ipv4.dat -4 -Y off 'http://checkip.dyndns.com' 2>/var/run/ddns/myddns_ipv4.err
115628 : Local IP '62.176.253.68' detected on web at 'http://checkip.dyndns.com'
115628 : Update needed - L: '62.176.253.68' <> R: '62.176.253.30'
115628 : #> /bin/uclient-fetch -q -O /var/run/ddns/myddns_ipv4.dat -4 -Y off 'https://update.spdyn.de/nic/update?hostname=myccu.spdns.de&myip=62.176.253.68&user=nn%40wolfsburg.com&pass=***PW***' 2>/var/run/ddns/myddns_ipv4.err
115631 : DDNS Provider answered:
*good 62.176.253.68*
115631 info : Update successful - IP '62.176.253.68' send
115631 : Waiting 600 seconds (Check Interval)
120631 : Detect registered/public IP
nslookup:
Server: 192.168.1.1
Address: 192.168.1.1#53
Non-authoritative answer:
Name: myccu.spdns.de
Address: 62.176.253.68
all in all seems to be ok, but I'm still not able to ping the DDNS IP. . .
Changing your DDNS provider doesn't change your IP address as issued by your internet service provider. It is the ISP that has issued you a CG-NAT IP address...
The above is likely the WAN address of your OpenWrt router... you can check it yourself. Via the web interface, login and you should see the status page... scroll down and look at the Network section of that screen, specifically the IPv4 upstream. What does it say there?
Changing your ISP (or asking them if they can provide a real public IP address) is the only way to deal with this issue (at least for IPv4... you may possibly have a real IPv6 address).