Setup VPN Client on Synology NAS (DSM 5.1)

I recently setup my Synology NAS (DSM 5.1) with a VPN, so I thought I’d write a quick post on how to do this.

Why use a VPN client?

A VPN client will help mask your activity, in particular those using Synology Download Station.

How do I set it up?

  1. Open the CONTROL PANEL
  2. Navigate to the NETWORK tab
  3. Click the CREATE > CREATE VPN PROFILE button
  4. Choose the VPN connection method. It’s preferable to use OpenVPN as it’s the most secure, otherwise use LT2P/IPSEC if possible. For the purposes of this guide, I’m using OpenVPN.
  5. Enter the VPN connection details and attach the security certificate (which should come from your VPN provider). Make sure you tick the “Use default gateway on remote network” option to ensure internet traffic is routed through the VPN.OpenVPN5OpenVPN6

Enable the VPN

Once you’ve create the VPN profile, you’ll need to enable it by clicking the CONNECT button in the NETWORK INTERFACE panel.

Verify VPN

  1. Connect to the NAS via SSH. In this case I’m using Putty for this. If you haven’t already, you’ll need to enable SSH in the TERMINAL & SNMP tab within the CONTROL PANEL.OpenVPN4
  2. Running the IFCONFIG command should show you whether the VPN tunnel has been established.OpenVPN3
  3. Running command “traceroute www.google.com” should also show that the ping ICMP request is being routed through the VPN.OpenVPN2

 

And that’s it, easy!

Leave a Reply