找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
楼主: sensel

[分享]适用于OpenWRT/LEDE自带DDNS功能的阿里云脚本,完美嵌入

 火... [复制链接]
发表于 2018-8-2 09:42 | 显示全部楼层
本帖最后由 liuleisail 于 2018-8-2 20:15 编辑

之前可以,结果我冲刷系统后怎么也不行了,求救;

  1. 092420       : ************ ************** ************** **************
  2. 092420  note : PID '8116' started at 2018-08-02 09:24
  3. 092420       : ddns version  : 2.7.7-6
  4. 092420       : uci configuration:\nddns.ali.domain='@liXXX.top'
  5. ddns.ali.enabled='1'
  6. ddns.ali.interface='vwan1'
  7. ddns.ali.ip_network='vwan1'
  8. ddns.ali.lookup_host='liuleisail.top'
  9. ddns.ali.password='*password*'
  10. ddns.ali.service_name='aliyun.com'
  11. ddns.ali.username='LTXXXXXXNFl97'
  12. ddns.ali=service
  13. 092420       : verbose mode  : 0 - run normal, NO console output
  14. 092420       : check interval: 600 seconds
  15. 092420       : force interval: 259200 seconds
  16. 092420       : retry interval: 60 seconds
  17. 092420       : retry counter : 0 times
  18. 092420       : No old process
  19. 092420       : last update: never
  20. 092420       : Detect registered/public IP
  21. 092420       : #> /usr/bin/nslookup liuleisail.top  >/var/run/ddns/ali.dat 2>/var/run/ddns/ali.err
  22. 092420       : Registered IP '182.33.163.152' detected
  23. 092420  info : Starting main loop at 2018-08-02 09:24
  24. 092420       : Detect local IP on 'network'
  25. 092420       : Local IP '182.33.163.197' detected on network 'vwan1'
  26. 092420       : Update needed - L: '182.33.163.197' <> R: '182.33.163.152'
  27. 092420       : parsing script '/usr/lib/ddns/update_aliyun_com.sh'
  28. 092420       : #> /usr/bin/wget-ssl -nv -t 1 -O /var/run/ddns/ali.dat -o /var/run/ddns/ali.err --no-proxy 'http://alidns.aliyuncs.com/?Action=DescribeSubDomainRecords&SubDomain=%40.liuleisail.top&Format=JSON&Version=2015-01-09&AccessKeyId=LTAID15sLMuNFl97&SignatureMethod=HMAC-SHA1&Timestamp=2018-08-02T01%3A24%3A20Z&SignatureVersion=1.0&SignatureNonce=29ec0226-286b-4db1-9805-4dfcec98417f&Signature='
  29. 092420 ERROR : GNU Wget Error: '8'
  30. 092420       : http://alidns.aliyuncs.com/?Action=DescribeSubDomainRecords&SubDomain=%40.liXXXXil.top&Format=JSON&Version=2015-01-09&AccessKeyId=LTXXXXXXXl97&SignatureMethod=HMAC-SHA1&Timestamp=2018-08-02T01%3A24%3A20Z&SignatureVersion=1.0&SignatureNonce=29ec0226-286b-4db1-9805-4dfcec98417f&Signature=:
  31. 2018-08-02 09:24:20 ERROR 400: Bad Request.
  32. 092420  WARN : Transfer failed - retry 1/0 in 60 seconds

复制代码


翻看上面的帖子,看到这种情况似乎是因为openssl-util没有安装成功导致,查看结果发现已经安装好了啊。然后看到前面帖子说运行下
  1. echo test | openssl dgst -sha1
复制代码

看看结果,结果如下:
  1. root@OpenWrt:~# echo test | openssl dgst -sha1
  2. Error relocating /usr/bin/openssl: BIO_f_zlib: symbol not found
  3. Error relocating /usr/bin/openssl: COMP_zlib_cleanup: symbol not found
复制代码

请问楼主,这种情况应该如何处理?@sensel
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2018-8-2 22:34 | 显示全部楼层
liuleisail 发表于 2018-8-2 09:42
之前可以,结果我冲刷系统后怎么也不行了,求救;

把 libopenssl 和 openssl-util 更新到同一版本。这种情况一般是固件自带低版本libopenssl,然后又安装了高版本openssl-util导致两者版本不匹配。

点评

经过检查,libopenssl和openssl-util是一个版本,都是1.0.2o-1版本。然后我删除后重新添加仍旧是我上个帖子中的log……  详情 回复 发表于 2018-8-3 14:48
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-8-3 08:29 | 显示全部楼层
谢谢楼主的分享!!!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-8-3 14:48 | 显示全部楼层
本帖最后由 liuleisail 于 2018-8-3 21:43 编辑
sensel 发表于 2018-8-2 22:34
把 libopenssl 和 openssl-util 更新到同一版本。这种情况一般是固件自带低版本libopenssl,然后又安装了 ...

经过检查,libopenssl和openssl-util是一个版本,都是1.0.2o-1版本。然后我删除后重新添加仍旧是我上个帖子中的log……

ps:查找了半天,发现[url=]Dynamic DNS跟55r冲突……唉,无语了。只要打开ddns,55r就会失效,算了,最后用docker解决解析问题……[/url]

我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-8-3 15:59 | 显示全部楼层
这个牛叉
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-8-25 21:45 | 显示全部楼层
No or private or invalid IP '192.168.50.199' given! Please check your configuration
我的是二级路由,我想更新外网IP,高级设置里面IP地址来源选什么

点评

二级用URL,然后找出一个可用的获取外网IP网址。  详情 回复 发表于 2018-9-10 00:09
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-9-5 23:35 | 显示全部楼层
233213       : #> /usr/bin/wget-ssl -nv -t 1 -O /var/run/ddns/myddns_ipv4.dat -o /var/run/ddns/myddns_ipv4.err --no-proxy 'http://alidns.aliyuncs.com/?Action=DescribeSubDomainRecords&SubDomain=www.xxxx.top&Format=JSON&Version=2015-01-09&AccessKeyId=LTAIfxxxxILTB&SignatureMethod=HMAC-SHA1&Timestamp=2018-09-05T15%3A32%3A13Z&SignatureVersion=1.0&SignatureNonce=b7305da0-e676-4be3-b287-fa12f428118a&Signature='
233215 ERROR : GNU Wget Error: '8'
233215       : http://alidns.aliyuncs.com/?Acti ... 18a&Signature=:
2018-09-05 23:32:15 ERROR 400: Bad Request.
233217  WARN : Transfer failed - retry 5/0 in 60 seconds


一直都是这个错不知道怎么回事,麻烦您帮看一下

点评

你这种提示也是因为openssl未能计算出正确的签名。解决方法参考92楼,但如果是94楼这种情况,,,我也没办法。  详情 回复 发表于 2018-9-10 00:07
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2018-9-10 00:07 | 显示全部楼层
lbmzly 发表于 2018-9-5 23:35
233213       : #> /usr/bin/wget-ssl -nv -t 1 -O /var/run/ddns/myddns_ipv4.dat -o /var/run/ddns/mydd ...

你这种提示也是因为openssl未能计算出正确的签名。解决方法参考92楼,但如果是94楼这种情况,,,我也没办法。

点评

我也出现了同样问题,GNU Wget error 8以及Bad Request error 400。但是我没有92楼的情况。我不知道是不是域名解析的问题,请问域名解析怎么填?是要A记录还是CNAME,或者我从前面看了下,可能是NS?  详情 回复 发表于 2019-4-2 02:20
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2018-9-10 00:09 | 显示全部楼层
zbsmtd 发表于 2018-8-25 21:45
No or private or invalid IP '192.168.50.199' given! Please check your configuration
我的是二级路由 ...

二级用URL,然后找出一个可用的获取外网IP网址。详细请参考openwrt网站的ddns说明部分。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-9-15 18:08 | 显示全部楼层
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-9-16 14:46 | 显示全部楼层
谢谢分享!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-9-28 08:38 | 显示全部楼层
感谢分享,但是提示 GNU Wget Error: '8',是怎么回事,强迫症不解
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-10-14 13:18 | 显示全部楼层
我在做一个ipv6的应用的时候遇到一个小问题,同一个域名在更新ipv4的a记录和ipv6的aaaa记录的时候会互相覆盖,而不是一样建立一个,楼主遇到过这个问题吗?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-10-16 09:51 | 显示全部楼层
哥们太厉害了,崇拜中
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-10-16 11:23 | 显示全部楼层
急,安装后还是没有阿里云的选项,不知道为什么, 还有,那个sh的文件能用在openwrt吗?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-18 10:33

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表