惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

TaoSecurity Blog
TaoSecurity Blog
Jina AI
Jina AI
雷峰网
雷峰网
月光博客
月光博客
The GitHub Blog
The GitHub Blog
WordPress大学
WordPress大学
B
Blog RSS Feed
美团技术团队
C
CXSECURITY Database RSS Feed - CXSecurity.com
小众软件
小众软件
Security Latest
Security Latest
Microsoft Azure Blog
Microsoft Azure Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
C
Cybersecurity and Infrastructure Security Agency CISA
Last Week in AI
Last Week in AI
A
Arctic Wolf
Latest news
Latest news
Attack and Defense Labs
Attack and Defense Labs
I
Intezer
F
Fortinet All Blogs
罗磊的独立博客
MongoDB | Blog
MongoDB | Blog
Webroot Blog
Webroot Blog
S
Secure Thoughts
Help Net Security
Help Net Security
Apple Machine Learning Research
Apple Machine Learning Research
博客园_首页
V
Visual Studio Blog
P
Proofpoint News Feed
博客园 - 【当耐特】
P
Privacy International News Feed
V
Vulnerabilities – Threatpost
Stack Overflow Blog
Stack Overflow Blog
Know Your Adversary
Know Your Adversary
云风的 BLOG
云风的 BLOG
Hacker News: Ask HN
Hacker News: Ask HN
L
LINUX DO - 最新话题
H
Help Net Security
爱范儿
爱范儿
酷 壳 – CoolShell
酷 壳 – CoolShell
S
SegmentFault 最新的问题
Forbes - Security
Forbes - Security
T
Tailwind CSS Blog
量子位
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
T
Tenable Blog
Cloudbric
Cloudbric
N
News and Events Feed by Topic
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Hugging Face - Blog
Hugging Face - Blog

DDNS on Loong's Blog

暂无文章

Use DDNS To Access Intranet Devices
2024-07-06 · via DDNS on Loong's Blog

Featured image of post Use DDNS To Access Intranet Devices

Use DDNS To Access Intranet Devices

 Sometimes I need to access my home NAS when I go out. Since it is increasingly challenging to apply for a public IPv4 in China, and the official QuickConnect service of Synology is also very slow. After referring to relevant tutorials, I decided to resolve the domain name to public IPv6 through DDNS and access the intranet devices directly through the domain name.

 Based on the previous experiment of cracking the optical modem to get the superuser privileges to modify the routing mode, I connected the router to the optical modem. Then let the router dial and turn on IPv6, and after assigning the public network IPv6, I started the DDNS configuration process.

Through Synology’s DNS service

 Open the Control Panel, click External Access, select DDNS, then click Add, and select Synology as the service provider. Then customize the configuration below.

1

 If you need https access, check “Get a certificate from Let’s Encrypt” and click OK.

Using a DNS service from another provider

 The following only takes Tencent Cloud’s DNS service as an example. You need to apply for a domain name on Tencent Cloud’s official website in advance.

Using the ddns-go image

 To perform dynamic domain name resolution, you need your own NAS device to query the local IP address regularly, and then call the interface to update the domain name resolution field to implement DDNS.

 So you can’t change the method. There are many methods on the Internet. Here I provide a method to use Docker to update DDNS.

 Search for Docker in the package center and install Docker. The steps are omitted.

3

 Open Docker, select “Registry”, search for ddns, and install the first “ddns-go”

4

 After the installation is complete, open the image, select ddns-go, and click Start.

5

 Click Advanced Settings->Storage->Add Folder.

6

 Modify the mount path, my configuration is as follows:

7

 Click Network->Check Host Network->Apply.

8

 Click Next, click Finish.

Configuring DDNS

 Open http://[nas ip corresponding to the domain name]:9876/

9

 Configure DNS service provider, select Tencent Cloud, enter ID and Token, Note that the ID and Token here correspond to “DNSPod Token”, not “Tencent Cloud API Key”, the link is https: //console.dnspod.cn/account/token/token

 Only enable ipv6, my configuration is as follows:

10

 Before clicking “Save”, you need to configure the domain name resolution and add an AAAA type (indicating an IPv6 address) record. Fill it out and it will automatically update. My configuration is as follows:

11

 After the configuration is completed, click Save, and the latest history records will appear on the right.

12

 Finally, you can test it through domain name + port.

Additional

 In the summer of 2022, after the installation was completed, I asked my classmates to help test the speed of different prefecture-level cities in Jiangsu. The speed was still quite fast.

 After graduation, I went to other provinces. After finding my first job. I thought about NAS again and tried to continue using it, but found that the same method did not work at all, mainly because the network infrastructure varies greatly between provinces.

 If you are in a province where IPv6 has not been promoted, it is recommended to Avoid tossing. In addition, due to the proliferation of PCDN in the past few years, operators will check whether users have built PCDN based on the upstream speed of bandwidth. If DDNS is used maliciously, it may cause broadband to be blocked.


2022-06-19 Record

2023-07-07 Update