Tutorial Configure Private Internet Access VPN On A Synology NAS

FallenLondon

Active Member
Aug 5, 2016
715
501
To answer my own question from: : yes we can! Here's a tutorial for people that want to configure a VPN on their NAS.

Starting assumptions:
Your NAS runs DSM 6+
You don't need to access your NAS from the Internet.
You have an account from Private Internet Access.

1. Download the configuration files and certificates from and unpack it.
upload_2017-2-11_15-1-28.png
2. Open the Network applet on your Synology from the control panel.
upload_2017-2-11_15-3-29.png
3. Select Network Interface in Network, click create, choose Create VPN profile
upload_2017-2-11_15-6-21.png
4. Choose OpenVPN (via importing a .ovpn file) and click Next.
upload_2017-2-11_15-7-33.png
5. Fill in a name for your new connection, and fill in the username and password you got from Private Internet Access when you created your account. Click Browse to Import your ovpn file next.
upload_2017-2-11_15-10-40.png
6.Select one from the folder where you extracted the zip-file from step 1. Usually close to home is better for performance, but there might be reasons to make your connections appear from another country. I'll use Brazil as an example.
upload_2017-2-11_15-14-3.png
7. Choose the certificate ca.rsa.2048.crt. Do yourself a solid and configure explorer to always show extensions.
upload_2017-2-11_15-16-47.png
8. Open Advanced Options.
View attachment 2033
9. Leave everything blank except, and this is vital, the Certificate Revocation. You won't be able to connect if you don't do that. So click browse and choose crl.rsa.2048.pem.
<continued in next post because of file limit>
 

FallenLondon

Active Member
Aug 5, 2016
715
501
10. Your profile should look like this (no client key or certificate, no tls-auth key). Click Next if you're satisfied.
upload_2017-2-11_15-24-31.png
11. Check "Use default gateway on remote network (if you don't this exercise is completely futile), and "Reconnect when the VPN connection is lost". The latter one is for your convenience. Click Apply to create the new connection. Choose the middle one only if you can explain to a systems engineer why you need it and why it is going to work.
upload_2017-2-11_15-28-22.png
12. RMB on your new connection and choose connect.
upload_2017-2-11_15-29-29.png

If you did everything correctly all traffic originating from your NAS will be routed through the VPN. Assuming you selected Use default gateway on remote network. If you didn't, disconnect and edit.

Important: how to check if it works? You can download a torrentfile to test this.

Visit .

Scroll down a bit until you find the section Torrent Address Detection. Click Activate.
upload_2017-2-11_15-34-1.png

Ipleaks.net will generate a magnet link for you. Copy that link (don't click on it, we're not testing your PC now).
upload_2017-2-11_15-35-38.png
Import the magnet link in Download Station
upload_2017-2-11_15-36-51.png
Enter the URI and click OK.
upload_2017-2-11_15-37-45.png
Go back to the browser on your PC. The Torrent Address detection will show another IP address than the one in the section Your IP address.

And that's all. This should work pretty much on all NAS-devices, but I can't assist you with that. And, as mentioned before, if you're using the NAS to deliver Internet services VPN isn't a good fix.
 
Last edited:
  • Like
Reactions: Cirro84

FallenLondon

Active Member
Aug 5, 2016
715
501
Something is going horribly wrong with the inline images. Can a mod sort that out please? Cause every attempt I make to fix it only makes it worse.