openwrt lede

no-ip.com配置 (no-ip.com configuration)

In case that your home network gets a dynamic (public) IP address from the internet service provider (ISP) and you want to get access to your network services (NAS, IP Cam, any webserver etc.) over the internet, then a DDNS service is necessary.

如果您的家庭网络从Internet服务提供商(ISP)获得了动态(公共)IP地址,并且您希望通过Internet访问网络服务(NAS,IP Cam,任何Web服务器等),则需要使用DDNS服务是必要的。

Typical modems support DDNS service configuration out of the box (e.g. Fritzbox), but if that is not possible then any OpenWRT device on your network can help out.

典型的调制解调器开箱即用地支持DDNS服务配置(例如Fritzbox),但是如果不可能,则网络上的任何OpenWRT设备都可以提供帮助。

Content

内容

  • Setup a ddns-client on an OpenWrt Access Point where the Modem would not support dyndns out of the box ** The ddns-client will update the public IP periodically on the chosen DDNS service provider在调制解调器不支持dyndns的OpenWrt接入点上设置ddns客户端** ddns客户端将定期在所选DDNS服务提供商上更新公共IP

Port forwarding to the local services has to be configured on the modem.

端口转发到本地服务必须在调制解调器上配置。

Requirements

要求

  • Pick and register a free DNS name with a compatible DynamicDNS provider (e.g. no-ip.com)选择免费的DNS名称并向兼容的DynamicDNS提供商注册(例如,no-ip.com)
  • Your network needs to get a public dynamic IP address assigned from the internet service provider (ISP)您的网络需要获得互联网服务提供商(ISP)分配的公共动态IP地址

建立 (Setup)

ISP |LTE Modem           (Dynamic public IP; Modem configured with port-   |                  forwarding; Modem acts as router) |                    <lan interface>Access Point        (Local IP 192.168.1.2, Dumb WiFi Access Point;  |                   Configured DDNS client) | Local Service       (192.168.1.10, e.g. IP Cam; exposed to the                   internet via http://mydomain.ddns.net:8080/webcams)

在OpenWrt设备上安装软件包 (Install packages on OpenWrt device)

Install ddns scripts using opkg package manager.

使用opkg软件包管理器安装ddns脚本。

opkg update   opkg install ddns-scripts

Depending on your ddns service provider, additional packages may be necessary.

根据您的ddns服务提供商, 可能需要其他软件包 。

opkg install ddns-scripts_no-ip_com

The ddns-scripts are installed to /usr/lib/ddns:

ddns脚本已安装到/usr/lib/ddns

root@openwrt:/usr/lib/ddns# ll   -rwxr-xr-x    1 root     root         30151 Aug  1 16:31 dynamic_dns_functions.sh*   -rwxr-xr-x    1 root     root          4109 Aug  1 16:31 dynamic_dns_lucihelper.sh*   -rwxr-xr-x    1 root     root         10308 Aug  1 16:31 dynamic_dns_updater.sh*   -rwxr-xr-x    1 root     root          1366 Aug  1 16:31 update_no-ip_com.sh*

组态 (Configuration)

The ddns client can be configured directly in /etc/config/ddns.

可以在/etc/config/ddns直接配置ddns客户端。

Start with enabling the ddns client.

首先启用ddns客户端。

$ /etc/init.d/ddns enable

基本设定 (Basic setup)

First of all, you have to set your credentials from your provider.

首先,您必须从提供商处设置凭据。

config service 'myddns_ipv4-config'                     option lookup_host '<YOUR-DOMAIN-NAME>'                 option domain '<YOUR-DOMAIN-NAME>'  # e.g. myhome.ddns.net          option username '<YOUR-USER>'          option password '<YOUR-PASSWORD>'                                    option interface 'lan'                                              option ip_network 'lan'                                    option service_name 'no-ip.com'

检测公共IP (Detecting public IP)

The purpose of the ddns client is to update the dyndns service provider with your current IP address, so we have to configure that.

ddns客户端的目的是使用您当前的IP地址更新dyndns服务提供商,因此我们必须对其进行配置。

For that setup the ddns client is running on an arbitary Access Point, so an external service like http://ifconfig.me/ip is necessary to retrieve the public IP address.

对于该设置,ddns客户端在任意接入点上运行,因此必须使用外部服务(如http://ifconfig.me/ip )来检索公共IP地址。

Append to configuration:

追加配置:

config service 'myddns_ipv4-config'            option ip_source 'web'                                   option ip_url 'http://ifconfig.me/ip'           # external service retrieves public IP in plain text

更新DNS服务提供商 (Update DNS service provider)

This setting tells the client how to notify your dyndns service provider with your current IP.

此设置告诉客户端如何用您当前的IP通知您的dyndns服务提供商。

Next configure the setting update_url (depending on your service). Lookup the setting for your supported service provider (supported dyndns providers are listed in /etc/ddns/services)

接下来,配置设置update_url (取决于您的服务)。 查找支持的服务提供商的设置(受支持的dyndns提供程序列在/etc/ddns/services )

$ awk '$1 ~ /no-ip.com/ {print $2}' /etc/ddns/services  update_no-ip_com.sh

Append in service configuration:

附加在服务配置中:

config service 'myddns_ipv4-config'            option update_url 'update_no-ip_com.sh'
  • Sidenote: For no-ip.com the update_url setting uses on the additional installed update_no-ip_com.sh script. For other ddns providers the setting could be a http link pointing directly to an API, e.g. for opendns.com it would be http://[USERNAME]:[PASSWORD]@updates.opendns.com/nic/update?hostname=[DOMAIN]&myip=[IP].

    旁注:对于no-ip.com,update_url设置用于其他已update_no-ip_com.sh的update_no-ip_com.sh脚本。 对于其他ddns提供程序,该设置可以是直接指向API的http链接,例如对于opendns.com ,它将是http://[USERNAME]:[PASSWORD]@updates.opendns.com/nic/update?hostname=[DOMAIN]&myip=[IP]

打开日志 (Turn on the logs)

config service 'myddns_ipv4-config'            option use_logfile '1'

套用设定 (Apply configuration)

$ /etc/init.d/ddns restart

Check that your configuration works!

检查您的配置是否有效!

The log output should look like:

日志输出应如下所示:

104739       : Detect registered/public IP    104739       : #> /usr/bin/nslookup <your.ddns.net>  >/var/run/ddns/myddns_ipv4.dat 2>/var/run/ddns/myddns_ipv4.err    104743       : Registered IP '<YOUR-PUBLIC-DYNAMIC-IP>' detected    104743  info : Starting main loop at 2020-08-12 10:47    104743       : Detect local IP on 'web'    104743       : #> /bin/uclient-fetch -q -O /var/run/ddns/myddns_ipv4.dat -Y off 'http://ifconfig.me/ip' 2>/var/run/ddns/myddns_ipv4.err    104747       : Local IP '<PUBLIC-IP>' detected on web at 'http://ifconfig.me/ip'    104747       : Update needed - L: '<PUBLIC-IP>' <> R: '<PUBLIC-IP>'    104747       : parsing script '/usr/lib/ddns/update_no-ip_com.sh'    104747       : sending dummy IP to 'no-ip.com'    104747       : #> /bin/uclient-fetch -q -O /var/run/ddns/myddns_ipv4.dat -Y off 'http:<your.email@gmail.com>:***PW***@dynupdate.no-ip.com/nic/update?hostname=<YOUR.DDNS.NET>&myip=127.0.0.1' 2>/var/run/ddns/myddns_ipv4.err    104755       : 'no-ip.com' answered:   good 127.0.0.1    104756       : sending real IP to 'no-ip.com'    104756       : #> /bin/uclient-fetch -q -O /var/run/ddns/myddns_ipv4.dat -Y off 'http:<your.email@gmail.com>:***PW***@dynupdate.no-ip.com/nic/update?hostname=<YOUR.DDNS.NET>&myip=<PUBLIC-IP>' 2>/var/run/ddns/myddns_ipv4.err    104805       : 'no-ip.com' answered:   good 46.75.33.201    104805  info : Update successful - IP '<PUBLIC-IP>' send    104805  info : Forced update successful - IP: '<PUBLIC-IP>' send    104805       : Waiting 600 seconds (Check Interval)

Your dyndns setup is ready to use, configure port forwarding and you are set.

您的dyndns设置已准备就绪,可以使用,配置端口转发并设置好。

资源资源 (Resources)

https://openwrt.org/docs/guide-user/services/ddns/client

https://openwrt.org/docs/guide-user/services/ddns/client

翻译自: https://medium.com/@_chriz_/free-dynamic-dns-service-provider-configuration-on-an-openwrt-lede-access-point-f24c62b4e32d

openwrt lede


http://www.taodudu.cc/news/show-1946403.html

相关文章:

  • NC单点登录设置默认界面
  • NC5.X系列单点登录
  • 计算机管理用户u,discuz+uclient 手动提升普通用户至管理员权限网站安全 -电脑资料...
  • java被安全阻止解决及用友Uclient安装
  • openwrt下使用wget出现Failed to allocate uclient context
  • 用友NC6x单点登录实现——跳转到浏览器或Uclient
  • coTurn测试程序之 turnutils_uclient
  • 如何安装uclient_UClient软件下载-UClient客户端下载 v2.0.0.1580官方版--pc6下载站
  • 如何安装uclient_UClient官方版下载_UClient手机官方版下载v2.0.0.1580_3DM单机
  • 如何安装uclient_UClient客户端下载_UClient客户端官方下载-太平洋下载中心
  • 如何安装uclient_uclient软件下载|
  • uclient uc oracle,UClient下载
  • 如何安装uclient_uclient软件
  • 02-最基本的SELECT语句
  • STM32库函数: GPIO部分代码细究1
  • ARM各内核系列整型运算能力对比---DMIPS / MHz
  • 响应式网站开发基础
  • 盘点当前40种常用的芯片封装技术。
  • 芯片PM该知道的IC术语(二)封装的一些细节
  • Microsoft Dips Its Toe Into The iPhone With Seadragon Mobile
  • CIC Dips Its Toe Back In US Waters
  • 移动端H5解惑-页面适配
  • DSP课设项目(ICETEK-VC5509-EDU)
  • android 屏幕密度160与320换算,Android屏幕密度(Density)和分辨率的关系
  • windows核心编程之DIPS工具学习总结
  • Win2D 官方文章系列翻译 - DPI (每英寸点数)和 DIPs(设备独立像素)
  • 背景图(css sprite)尺寸设置,DIPS,设备像素比,Retina,,border 1px问题
  • 关于DIPS的DLL注入(第22章)
  • 关于DIPS的MVC 4.0项目发布与在IIS 7.0上的部署的方法
  • window核心编程 22.3 DIPS.exe的踩坑逻辑梳理

openwrt lede_在openwrt lede接入点上的免费动态dns服务提供商配置相关推荐

  1. 苹果电脑登不上苹果商店_附近没有苹果商店? 尝试苹果授权服务提供商

    苹果电脑登不上苹果商店 Apple Stores aren't the only place where you can buy Apple products and get them service ...

  2. 在Ubuntu上搭建DDNS动态域名解析服务

    文章目录 一.前置条件 二.具体步骤 2.1 下载脚本程序 2.2 修改配置文件 2.3 运行脚本进行测试 2.4 设置cron定时任务 三.参考文章 一.前置条件 1.已经在腾讯云上申请了dnspo ...

  3. android 极光 环信,环信、容联云通讯、极光推送和网易云信IM即时通讯功能接入方式_部署方式_企业服务汇...

    编者按:企业在挑选IM即时通讯功能服务商时,对于企业应当如何接入其IM功能.接入方式和部署方式有哪些等问题不太清楚.今天企业服务汇通过评测环信.容联云通讯.极光推送和网易云信这四家服务商来为你详细说明 ...

  4. 动态DNS——本质上是IP变化,将任意变换的IP地址绑定给一个固定的二级域名。不管这个线路的IP地址怎样变化,因特网用户还是可以使用这个固定的域名 这样看的话,p2p可以用哇...

    动态域名是因应网络远程访问的需要而产生的一项应用技术.因为没有固定IP,只能运用二级域名来应对经常变化的IP,动态域名的由来因此而产生. 它当前主要应用在:路由器.网络摄像机.带网络监控的硬盘录像机. ...

  5. linux下下载openwrt源码,OpenWrt下载编译

    不想啰嗦直接肝,依次执行: git clone git://github.com/openwrt/openwrt.git cd openwrt ./scripts/feeds update -a ./ ...

  6. 【openwrt】使用4G模块 移远EC20/25(2)pppd拨号与配置

    [openwrt]使用4G模块 移远EC20/25 :2)pppd拨号与配置 参考 Raspberrypi -- 实现 EC20 4G模块PPP拨号上网_梦小羊的博客-CSDN博客 添加链接描述 == ...

  7. 传感器如何将消息发送给云服务器,通过 NodeMCU (ESP8266) 将传感器数据上传至 MQTT 云服务...

    本示例将演示如何通过 基于 ESP8266 的 NodeMCU,把通过 DHT11 传感器搜集到的温.湿度数据通过 MQTT 协议将其上报到云端的 MQTT 服务,并且展示应用端如何订阅到这些数据并对 ...

  8. 干货 | 秒级上下线,携程服务注册中心架构演进

    作者简介 Alex,携程资深软件工程师,关注微服务架构及分布式缓存技术. 一.前言 携程的微服务框架产品从2013年发展至今,已经历了7年多的打造.其中所使用的服务注册中心也从最开始人工数据维护架构演 ...

  9. 一种为上而生的网络服务:内容存储网络CSN

    内容存储网络(Content Storage Network,简称CSN)是与内容分发网络(Content Delivery Network,简称CDN)相对应的概念.CDN是在终端和中心之间的缓存, ...

  10. WdOS系统上samba服务的基本配置

    为什么80%的码农都做不了架构师?>>>    WdOS系统上samba服务的基本配置 背景知识: Samba服务:提供不同系统之间的共享服务,还用拥有强大的打印服务功能.通过smb ...

最新文章

  1. 2022-2028年中国羧基丁腈胶乳行业市场发展调研及投资前景分析报告
  2. 成功解决ModuleNotFoundError: No module named engine
  3. 走在技术前沿的 iOS 架构实现
  4. 窗口缩小 怎么让定位的盒子不动_盒子模型
  5. VTK:可视化之TextSource
  6. CodeForces - 1313C2 Skyscrapers (hard version)(单调栈+dp/分治)
  7. Linux服务-Samba文件服务器部署
  8. 等待ajax,等待Ajax调用(post)完成
  9. Java代码中变量的特殊修饰符/修饰词/关键字
  10. min-width:100%和max-width:100%的区别
  11. pvrect r语言 聚类_R语言常用统计方法包+机器学习包(名称、简介)
  12. Comet:基于 HTTP 长连接的“服务器推”技术 (实例)
  13. MS SQL Server 事务回滚处理!
  14. 基于bp神经网络的房价预测,房价预测 神经网络
  15. 鸿蒙系统图标大小怎么调节,华为手机桌面图标大小怎么调?用华为手机的朋友这些技巧需要了解...
  16. 专访 | 阿里前辈李智慧:聊聊我这20年的架构经!
  17. js常用工具类(1)
  18. 用真金做的电路板——金手指
  19. 局域网socket传输视频流
  20. 面试题 17.16. 按摩师(简单题)

热门文章

  1. linux 系统下安装中文输入法
  2. sid更新 续订sas软件_更新SAS 9.4(64位) SID的方法
  3. Cadence元件库介绍
  4. proteus元件图片_最完整的Proteus元件库元件名称及中英对照表下载
  5. AXURE 9 # 汉化教程
  6. 在EditPlus中配置java快捷键
  7. java 从入门到精通PDF
  8. [Windows小工具]两款屏幕取色拾色器(免安装,1MB左右大小)
  9. mysql数据库导入导出sql文件
  10. 圈圈USB学习笔记5--关于HID协议