铁威马的花生壳绑定亲测已经失效…无奈改用noip,无奈服务DDNS仍旧无法启动….无奈只能自己动手了…
其他存储也可参考此方法。
注意:请事先开启并映射常用端口到铁威马,如:22,21等
1.注册DDNS解析账号
网址:https://www.noip.com/
2.进入"Hosts/Redirects->Manage Hosts”标签添加Host
3.Root权限进入铁威马NAS,编写DDNS同步脚本/run/ip.sh
#!/bin/sh wip=`curl -s icanhazip.com`; curl -s -o /dev/null 'http://用户名:密码@dynupdate.no-ip.com/nic/update?hostname=nashare.no-ip.org&myip='${wip}; |
4.添加Crontab计划任务,5分钟同步一次
*/5 * * * * /run/ip.sh |
5.测试(gao ding)
原文链接:https://blog.csdn.net/iteye_3204/article/details/82647183?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171828022116800180643007%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fblog.%2522%257D&request_id=171828022116800180643007&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~blog~first_rank_ecpm_v1~times_rank-26-82647183-null-null.nonecase&utm_term=nas+%E9%93%81%E5%A8%81%E9%A9%AC