VPN Service Using Synology NAS

When I went on a business trip to Ethiopia last January, I had the experience of not being able to use the movie service I had subscribed to. After hearing that a VPN can be used to bypass the country of the user’s access path, I searched for a VPN and found that I had to subscribe to a paid service.

When I looked at my Synology NAS, it said I could set up the VPN function, so I was able to set it up after a long period of time. Another advantage of this is that you can access and use files on the NAS from anywhere as if you were using your own hard disk. The installation procedure is as follows.

Install and configure the VPN server on the NAS.

The VPN server settings are as follows.

Add VPN to the router settings of your Synology NAS as follows.

The following address is a service that accesses the NAS from the local network, so it will be used later.

Firewall is added for port connection and VPN server connection as follows.

You need to access your home router and add port forwarding as follows. The address of the NAS may change in the router configuration. Because of this changed address, forwarding is not possible and the VPN suddenly does not work. Once before, I have been looking for a full day, so I will be careful of this problem in the future.

Export the OpenVPN configuration file using OpenVPN’s “Export Configuration” and open it using Tunnelblink on your local computer. And you can connect or disconnect as needed. At this time, there are cases where the server name is not written correctly in the configuration file, so make sure that the server name and address are correct.

After connecting with TunnelBlink, install “Go>Connect to Server” in Mac’s finder and enter the local IP of the NAS server you knew earlier. (After connecting via VPN, you are connected to the local network, so you should not use an external IP)

Now you can access and view the NAS directory like a local file.

In fact, the purpose was to manipulate Synology’s photos and other data files through Python’s local file operations, and the details of this work will be summarized later.

Leave a Reply

Your email address will not be published. Required fields are marked *