Ticker

6/recent/ticker-posts

How to Set up and Connect Synology Nas as a VPN Server?

IA VPN allows you to privately access online activities no matter where you are by encrypting your connection to the Internet.

How to Set up and Connect Synology Nas as a VPN Server?

In this article, I will show you how to setup a VPN server on your Synology NAS as a way to access your LAN from any location.

Step 1: CREATING NEW USER

Let's start by creating a new user on our Synology NAS.

Fill in only the Name and the Password inputs and click Next. Go through the remaining steps of the wizard without changing anything. Finally on the last page Confirm settings click Done to save changes and create new user.

Step 2: INSTALLING VPN SERVER

Go to the Package Center and search for vpn server. Install the application and open it.
Next, go to the General Settings tab and uncheck Grant VPN permission to newly added local users.

Next, go to Privilege tab, remove privileges to all users for all VPN servers except of granting it to the openvpn user under OpenVPN server type

Step 3: ENABLING OPENVPN SERVER

Under Set up VPN Server section, click on the OpenVPN tab.
Click on Enable OpenVPN server and ensure the Dynamic IP address does not conflict any of your existing network settings. Ensure what's the port number and enable the following settings:

- Enable compression on the VPN link
- Allow clients to access server's LAN
- Export Configuration openvpn.zip file and then we will config later on last step.

Step 4: DDNS

Now the goal is to establish a static hostname (needed for the VPN connection) as a solution for our home public IP address that may be changed dynamically at any time by your ISP). Go to Control Panel and under External Access click on the DDNS tab.

Step 5: PORT FORWARDING

On this step we go to open port  Open VPN on Synology Nas and Router

    1. Synology Nas

Go to Control Panel => Security => Firewall
 - Enable Firewall
 - Enable Firewall notifications
 - Under Firewall Profile click edit rule
  - Click Create


 - Ports Sect from a list of built-in applications and then click Select

 - Now find the port of Open VPN that we config above. For my OpenVPN that i open is 1194 and then Click OK

Now we are done for open port in Synology Nas.

    2. Router/Mikrotik


Step 6: CONFIGURATION OpenVPN File

Extract previously downloaded openvpn.zip and edit the VPNConfig.ovpn file.
The following code shows example content of this file.
-  Remote "Your Public IP Address" "Port VPN that you Open Above step"
Example: Remote: 43.230.200.2 1194
-dhcp-option DNS DNS "IP Address of Synology Nas"
Example: dhcp-option DNS DNS 192.168.123.81

After Done above step click save.

 Step 7: Download OpenVPN and Connect 

- This is link to Download OpenVPN and install it



- Now start to connect Click File=> Import your file OpenVPN that you config above and Click Open
- After Import now start to connect. then have prompt to enter your username and password "Your User Synology" and now already connected.


Step 8: Let start to test open Synology Nas

Press Start+run \\your local IP Address then your user and password of your Synology Nas
Example: my local IP Address: 192.168.255.1 

Now already Succussed to connect to your Synology Nas







Conclusion

In this post, we have made a step-by-step tutorial on How to Set up and Connect Synology Nas as a VPN Server?.I hope you liked it and please do share it with your friends and follow our social media for more.

If you face any problems with the code or have any questions, please feel free to ask in the comments section or contact us.

Post a Comment

0 Comments