Setup VPN Client on Synology NAS (DSM 5.1)

In this article I’ll show you how you can configure you Synology NAS to use a VPN. In this case I’m using DSM 5.1.

Synology Logo

Why use a VPN client?

A VPN client will help mask your activities online by tunneling your traffic through an intermediary proxy.

Why would you want to configure your Synology NAS to use a VPN … well lets just say this might especially be of interest to 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.
    OpenVPN5
    OpenVPN6

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

  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!

Latest posts by Shane Bartholomeusz (see all)

Leave a Reply