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

推荐订阅源

CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
D
Darknet – Hacking Tools, Hacker News & Cyber Security
F
Fortinet All Blogs
小众软件
小众软件
博客园_首页
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Microsoft Azure Blog
Microsoft Azure Blog
MongoDB | Blog
MongoDB | Blog
罗磊的独立博客
大猫的无限游戏
大猫的无限游戏
量子位
N
Netflix TechBlog - Medium
B
Blog
P
Proofpoint News Feed
月光博客
月光博客
Apple Machine Learning Research
Apple Machine Learning Research
人人都是产品经理
人人都是产品经理
云风的 BLOG
云风的 BLOG
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
腾讯CDC
Engineering at Meta
Engineering at Meta
Y
Y Combinator Blog
AI
AI
Stack Overflow Blog
Stack Overflow Blog
U
Unit 42
M
MIT News - Artificial intelligence
Vercel News
Vercel News
D
DataBreaches.Net
P
Palo Alto Networks Blog
宝玉的分享
宝玉的分享
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Cisco Talos Blog
Cisco Talos Blog
T
Threatpost
The Hacker News
The Hacker News
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Security Latest
Security Latest
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
有赞技术团队
有赞技术团队
Attack and Defense Labs
Attack and Defense Labs
Recent Announcements
Recent Announcements
Hugging Face - Blog
Hugging Face - Blog
Webroot Blog
Webroot Blog
Cyberwarzone
Cyberwarzone
美团技术团队
博客园 - 司徒正美
Cloudbric
Cloudbric
J
Java Code Geeks
T
Tailwind CSS Blog
The Last Watchdog
The Last Watchdog
A
About on SuperTechFans

Posts on Loong's Blog

Trip to Changchun National Day Records in 2025 Long Term Planning Remote Networking for Online Games Summary of 2024 Teamwork Using Git Development Environment Management Tools Blog Migration Two-month Life Experience In Hefei Automated Build Via Jenkins Crack The Optical Modem Superuser Password
Use DDNS To Access Intranet Devices
2024-07-06 · via Posts 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