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).
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
Post a Comment