找回密码
 立即注册

QQ登录

只需一步,快速开始

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

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

 火... [复制链接]
发表于 2018-1-7 02:02 | 显示全部楼层
本帖最后由 leeyonwang 于 2018-1-7 02:17 编辑
leeyonwang 发表于 2018-1-6 01:52
我用的固件自带了阿里云ddns,就是lean的那种,然后我直接在putty里安装的你的ipk,安装成功了,但是现在我 ...

现在可以用了,多谢!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-1-10 10:10 | 显示全部楼层
用不到
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-1-12 21:00 | 显示全部楼层
谢谢谢谢正在找呢。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-1-14 16:24 | 显示全部楼层
编译用的源码。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-1-15 12:02 | 显示全部楼层

大神,支持。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-1-15 13:19 | 显示全部楼层




求教大神,这是怎么回事?

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×

点评

1、检查密码是否错误?从日志看不符合阿里云的格式。 2、使用HTTPS但没有指定证书的话,需要在最后一行的CA证书路径输入 IGNORE,即需要遵从下面的提示。  详情 回复 发表于 2018-1-15 13:49
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2018-1-15 13:49 | 显示全部楼层
橙の树下 发表于 2018-1-15 13:19
求教大神,这是怎么回事?

1、检查密码是否错误?从日志看不符合阿里云的格式。
2、使用HTTPS但没有指定证书的话,需要在最后一行的CA证书路径输入 IGNORE,即需要遵从下面的提示。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-1-15 13:54 | 显示全部楼层
删去以前的 重新添加就对了,密码账号都是直接复制粘贴的,应该没有错。不知道哪的问题。
不过现在已经正常了,
谢谢大神,这样嵌入在自带的ddns里面真的是很完美。

点评

多亏自带DDNS的功能完善,模块性和开放性也做得比较好,可以放心将界面、检测等功能托付,而且官方更新也很及时,有什么新技术都会在第一时间支持。 这样的话,我这个脚本完成后就不怎么需要修改了,除非阿里云那边  详情 回复 发表于 2018-1-15 14:19
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-1-15 13:56 | 显示全部楼层
技术帖,支持楼主,楼主辛苦
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-1-15 13:57 | 显示全部楼层
楼主辛苦,支持楼主
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2018-1-15 14:19 | 显示全部楼层
橙の树下 发表于 2018-1-15 13:54
删去以前的 重新添加就对了,密码账号都是直接复制粘贴的,应该没有错。不知道哪的问题。
不过现在已经正 ...

多亏自带DDNS的功能完善,模块性和开放性也做得比较好,可以放心将界面、检测等功能托付,而且官方更新也很及时,有什么新技术都会在第一时间支持。
这样的话,我这个脚本完成后就不怎么需要修改了,除非阿里云那边另有升级。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-1-15 15:03 | 显示全部楼层
谢谢正在找呢。....
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-2-20 12:16 | 显示全部楼层
特地过来顶一下!!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-2-23 21:02 | 显示全部楼层
本帖最后由 llq_1983 于 2018-2-23 22:35 编辑

我的4300  LEDE ,  安装折腾中..
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-2-24 09:06 | 显示全部楼层
报错:wget 错误代码: '8'。  按照回复区的方式,删除重新建立还是不行
基础设置如下:
Lookup Hostname:xxxx.top
Domain:  www.xxxxx.top

日志如下:
085150       : ************ ************** ************** **************
085150  note : PID '17094' started at 2018-02-24 08:51
085150       : ddns version  : 2.7.6-13
085150       : uci configuration:
ddns.ipv4.domain='www.sxxxxxxxxxxxxnt.top'
ddns.ipv4.enabled='1'
ddns.ipv4.interface='wan'
ddns.ipv4.ip_interface='pppoe-wan'
ddns.ipv4.ip_source='interface'
ddns.ipv4.lookup_host='sxxxxxxxxxxxxt.top'
ddns.ipv4.password='xxxxxxxxxxxxxxxx5n'
ddns.ipv4.service_name='aliyun.com'
ddns.ipv4.username='Lxxxxxxxxxxxx'
ddns.ipv4=service
085150       : verbose mode  : 0 - run normal, NO console output
085151       : check interval: 600 seconds
085151       : force interval: 259200 seconds
085151       : retry interval: 60 seconds
085151       : retry counter : 0 times
085152       : No old process
085152       : last update: never
085152       : Detect registered/public IP
085152       : #> /usr/bin/nslookup xxxxx.top  >/var/run/ddns/ipv4.dat 2>/var/run/ddns/ipv4.err
085152       : Registered IP '218.xxx.148' detected
085152  info : Starting main loop at 2018-02-24 08:51
085152       : Detect local IP on 'interface'
085152       : #> ip -o addr show dev pppoe-wan scope global >/var/run/ddns/ipv4.dat 2>/var/run/ddns/ipv4.err
085152       : Local IP '218.xxxx.14' detected on interface 'pppoe-wan'
085152       : Update needed - L: '218.xxxx.14' <> R: '218.xxx.148'
085152       : parsing script '/usr/lib/ddns/update_aliyun_com.sh'
085153       : #> /usr/bin/wget-ssl -nv -t 1 -O /var/run/ddns/ipv4.dat -o /var/run/ddns/ipv4.err --no-proxy 'http://alidns.aliyuncs.com/?Action=DescribeSubDomainRecords&SubDomain=www.xxxxx.top&Format=JSON&Version=2015-01-09&AccessKeyId=LTxxxxxxxxx&SignatureMethod=HMAC-SHA1&Timestamp=2018-02-24T00%3A51%3A52Z&SignatureVersion=1.0&SignatureNonce=2b734e96-506e-4908-9eb1-10e38d476cec&Signature='
085154 ERROR : wget 错误代码: '8'
085154       : http://alidns.aliyuncs.com/?Acti ... cec&Signature=:
2018-02-24 08:51:54 ERROR 400: Bad Request.
085154  WARN : 传输失败 - 1/0 在 60 秒后重试

点评

参数最后的Signature= 后面是空的?检查一下 openssl-util 有没有安装,签名HMAC值需要用它来计算。 如果是需要修改@记录,Domain: @xxxxx.top,Lookup Hostname:xxxxx.top 如果是修改www记录,Domain: www.xxx  详情 回复 发表于 2018-2-24 23:24
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-3-29 03:12

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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