Openwrt动态域名解析
书接上回,做armbian动态域名解析还可以用openwrt大法搞他
Armbian安装Docker之后的100种玩儿法《动态域名解析DDNS自动更新》
1》装官方arm64v8 openwrt用
docker pull openwrtorg/rootfs:aarch64_cortex-a53-21.02.3
2》创建macvlan网络
docker network create -d macvlan \
--subnet=192.168.100.0/24 \
--gateway=192.168.100.1 \
-o parent=eth0 \
macnet
3》运行openwrt
docker run -itd --name=openwrt \
--restart=always \
-v /mnt:/mnt \
--network=macnet \
--ip 192.168.100.6 \
openwrtorg/rootfs:aarch64_cortex-a53-21.02.3
4》用portainer进入openwrt的ash环境
5》用vi 编辑network
6》reboot一下openwrt 浏览器输入地址查看一下lan接口ip
7》用xshell工具ssh 到openwrt update一下软件列表
root@7cc10a52bceb:~# opkg update
Downloading https://downloads.openwrt.org/releases/21.02.3/targets/armvirt/64/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading https://downloads.openwrt.org/releases/21.02.3/targets/armvirt/64/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/21.02.3/packages/aarch64_cortex-a53/base/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_base
Downloading https://downloads.openwrt.org/releases/21.02.3/packages/aarch64_cortex-a53/base/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/21.02.3/packages/aarch64_cortex-a53/luci/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_luci
Downloading https://downloads.openwrt.org/releases/21.02.3/packages/aarch64_cortex-a53/luci/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/21.02.3/packages/aarch64_cortex-a53/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_packages
Downloading https://downloads.openwrt.org/releases/21.02.3/packages/aarch64_cortex-a53/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/21.02.3/packages/aarch64_cortex-a53/routing/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_routing
Downloading https://downloads.openwrt.org/releases/21.02.3/packages/aarch64_cortex-a53/routing/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/21.02.3/packages/aarch64_cortex-a53/telephony/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_telephony
Downloading https://downloads.openwrt.org/releases/21.02.3/packages/aarch64_cortex-a53/telephony/Packages.sig
Signature check passed.
root@7cc10a52bceb:~#
8》 给openwrt luci 汉化
root@7cc10a52bceb:~# opkg install luci-i18n-base-zh-cn
Installing luci-i18n-base-zh-cn (git-22.209.62380-c6d2885) to root...
Downloading https://downloads.openwrt.org/releases/21.02.3/packages/aarch64_cortex-a53/luci/luci-i18n-base-zh-cn_git-22.209.62380-c6d2885_all.ipk
Configuring luci-i18n-base-zh-cn.
root@7cc10a52bceb:~#
回到浏览器选择简体中文,保存
9》安装ddns 更新DDns服务列表
opkg install luci-i18n-ddns-zh-cn
添加新服务
基本设置
高级设置
定时设置
完成
原文链接:https://blog.csdn.net/weixin_37131373/article/details/126635899?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522168476299816800182144178%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fblog.%2522%257D&request_id=168476299816800182144178&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~blog~first_rank_ecpm_v1~times_rank-23-126635899-null-null.blog_rank_default&utm_term=NAS%E3%80%81%E7%BE%A4%E6%99%96%E3%80%81%E9%98%BF%E9%87%8C%E4%BA%91%E3%80%81%E5%9F%9F%E5%90%8D%E8%A7%A3%E6%9E%90%E3%80%81%E5%86%85%E7%BD%91%E7%A9%BF%E9%80%8F%E3%80%81ipv6%E3%80%81ddns%E3%80%81%E8%BD%BB%E9%87%8F%E7%BA%A7%E4%BA%91%E6%9C%8D%E5%8A%A1%E5%99%A8%E3%80%81%E9%93%81%E5%A8%81%E9%A9%AC%E3%80%81%E5%A8%81%E8%81%94%E9%80%9A%E3%80%81DSM%E3%80%81DSM6.0%E3%80%81%E7%BE%A4%E6%99%96nas%E3%80%81%E4%BA%91%E6%9C%8D%E5%8A%A1%E5%99%A8%E3%80%81%E8%9C%97%E7%89%9B%E6%98%9F%E9%99%85%E3%80%81%E9%BB%91%E7%BE%A4%E6%99%96%E3%80%81docker%E3%80%81%E5%AE%B9%E5%99%A8%E9%95%9C%E5%83%8F%E3%80%81%E5%9F%9F%E5%90%8D%E6%B3%A8%E5%86%8C%E3%80%81%E5%AE%9D%E5%A1%94%E3%80%81%E5%8F%8D%E5%90%91%E4%BB%A3%E7%90%86%E3%80%81nginx%E3%80%81frp%E3%80%81%E5%8A%A8%E6%80%81%E5%9F%9F%E5%90%8D%E8%A7%A3%E6%9E%90