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

推荐订阅源

T
Tenable Blog
H
Heimdal Security Blog
K
Kaspersky official blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
S
Schneier on Security
G
GRAHAM CLULEY
U
Unit 42
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
C
CERT Recently Published Vulnerability Notes
Google DeepMind News
Google DeepMind News
罗磊的独立博客
Stack Overflow Blog
Stack Overflow Blog
阮一峰的网络日志
阮一峰的网络日志
Simon Willison's Weblog
Simon Willison's Weblog
C
Cisco Blogs
Cyberwarzone
Cyberwarzone
T
The Exploit Database - CXSecurity.com
Project Zero
Project Zero
Security Archives - TechRepublic
Security Archives - TechRepublic
www.infosecurity-magazine.com
www.infosecurity-magazine.com
博客园 - 司徒正美
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
V
Visual Studio Blog
博客园 - Franky
Engineering at Meta
Engineering at Meta
WordPress大学
WordPress大学
Jina AI
Jina AI
P
Proofpoint News Feed
P
Proofpoint News Feed
有赞技术团队
有赞技术团队
L
LINUX DO - 最新话题
宝玉的分享
宝玉的分享
N
News and Events Feed by Topic
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
博客园 - 聂微东
T
The Blog of Author Tim Ferriss
Spread Privacy
Spread Privacy
Application and Cybersecurity Blog
Application and Cybersecurity Blog
IT之家
IT之家
S
Security Affairs
博客园 - 叶小钗
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
小众软件
小众软件
N
News | PayPal Newsroom
Cloudbric
Cloudbric
AWS News Blog
AWS News Blog
W
WeLiveSecurity
The Last Watchdog
The Last Watchdog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
NISL@THU
NISL@THU

Tool on Loong's Blog

Remote Networking for Online Games Teamwork Using Git Development Environment Management Tools Blog Migration Automated Build Via Jenkins
Use DDNS To Access Intranet Devices
2024-07-06 · via Tool 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