Skip to main content

Enabling Intranet access to Synology DSM through domain name for Merlin firmware routers

Introduction

I recently bought a Synology NAS, a DS218play machine that has been discontinued (due to lack of money), and started a long process of tinkering with it. Because I have been living on campus for a long time, I wanted to access the Synology NAS at home through the domain name to implement various functions, such as mapping disks on the external network. 

However, due to the NAT loopback restriction set by the network providers in China, I later found that I cannot access the Synology NAS using the domain name in the Intranet of my home. After a long period of exploration, I finally succeeded! Here I will share with you the specific method, which can be achieved without putty or secureCRT.

Text

First download the WinSCP software online, as shown in the figure after downloading and installing.


Select the SCP protocol. The host name is the IP of your router's management page. The username and password are the same as those used to log in to the routing management page. Just connect. The port remains unchanged. After filling in, click Login, as shown in the figure.


After connected, go all the way back to the routing root directory, enter the /jffs/configs directory, create a new dnsmasq.conf.add file, and write the following content: addn-hosts=/jffs/configs/hosts

The writing method is the same as editing a txt text document in Windows. Note that the file name is dnsmasq.conf.add

Create a new file, the file name is hosts, and write the following content (e.g. my Synology NAS intranet IP is 192.168.50.66).

192.168.50.66 yourdomain.com


After adding the two files, select "Yes" in the pop-up dialog box, and then restart the router. Then use the windows command line or powershell on any computer in the LAN (preferably other computers) to ping your domain name. If the intranet IP of nas appears, that means it successes!

Comments

Popular posts from this blog

Ways to bypass GFW as a foreigner in Mainland China

I'm surprised to find out there are very few tutorials for westerners living in Mainland China to bypass the Great Firewall built by CCP. Maybe you come to Mainland China due to multiple reasons, such as academic communication,work or live here. However, popular VPN providers like ExpressVPN,NordVPN and surfshark can't work very well here. The VPN traffic and socks5 proxy traffic has already been precisely detected and blocked by GFW for ages. Now, I will introduce some new techniques for you to bypass GFW: Consider using proxy servers running advanced proxy protocols such as Vmess,ShadowSocks and Trojan rather than VPN servers. These protocols are based on socks5 protocol which locates at the application layer of OSI model, and their performance are much greater than VPN protocols. You can buy those services from proxy providers("机场" in Chinese). They provide servers("节点" in Chinese) in multiple locations, even all over the world. Quality of service and loc

Welcome to my blog!

This is the English version of my tech blog. However, as a student, I'm busy with my study and don't have enough time to translate my blogs into English. Sorry for the inconvenience! The link of my Chinese version tech blog is:  https://hackerterry.netlify.app