Open laikitleung opened 5 years ago
ddns.alidns.domain='@abc.def.com' ddns.alidns.enabled='1' ddns.alidns.lookup_host='abc.def.com' ddns.alidns.password='PW' ddns.alidns.service_name='aliyun.com' ddns.alidns.use_https='1' ddns.alidns.username='XXXXXXXXXXXXXXXX' ddns.alidns=service 110832 : verbose mode : 0 - run normal, NO console output 110833 : check interval: 600 seconds 110833 : force interval: 259200 seconds 110834 : retry interval: 60 seconds 110834 : retry counter : 0 times 110834 : No old process 110834 : last update: never 110834 : Detect registered/public IP 110834 : #> /usr/bin/nslookup abc.def.com >/var/run/ddns/alidns.dat 2>/var/run/ddns/alidns.err 110834 : Registered IP '14.12.125.173' detected 110834 info : Starting main loop at 2019-11-04 11:08 110834 : Detect local IP on 'network' 110835 : Local IP '192.168.1.2' detected on network 'wan' 110835 : Update needed - L: '192.168.1.2' <> R: '14.12.125.173' 110835 ERROR : No or private or invalid IP '192.168.1.2' given! Please check your configuration 110835 ERROR : No update send to DDNS Provider 110835 : Waiting 600 seconds (Check Interval)
设置页面里有4个tab,其中第二个是“高级设置”,下面第一个选项 IP address source,改成 URL 即可。
原理:不再从路由器本身的WAN口获取地址,而是访问一个网上的服务(默认是dyndns的一个网页),通过“外部视角”来获取你真实的外网 IP
别忘了在你的第一级路由上设置端口转发,要不然外网还是“够不着”你哦
ddns.alidns.domain='@abc.def.com' ddns.alidns.enabled='1' ddns.alidns.lookup_host='abc.def.com' ddns.alidns.password='PW' ddns.alidns.service_name='aliyun.com' ddns.alidns.use_https='1' ddns.alidns.username='XXXXXXXXXXXXXXXX' ddns.alidns=service 110832 : verbose mode : 0 - run normal, NO console output 110833 : check interval: 600 seconds 110833 : force interval: 259200 seconds 110834 : retry interval: 60 seconds 110834 : retry counter : 0 times 110834 : No old process 110834 : last update: never 110834 : Detect registered/public IP 110834 : #> /usr/bin/nslookup abc.def.com >/var/run/ddns/alidns.dat 2>/var/run/ddns/alidns.err 110834 : Registered IP '14.12.125.173' detected 110834 info : Starting main loop at 2019-11-04 11:08 110834 : Detect local IP on 'network' 110835 : Local IP '192.168.1.2' detected on network 'wan' 110835 : Update needed - L: '192.168.1.2' <> R: '14.12.125.173' 110835 ERROR : No or private or invalid IP '192.168.1.2' given! Please check your configuration 110835 ERROR : No update send to DDNS Provider 110835 : Waiting 600 seconds (Check Interval)