Synology NAS - Download Station - L2TP/IPSEC Setup HOWTO
I have had many issues setting up my Synology NAS DS214 (running the latest DSM 5.2-5644 build) with an L2TP/IPSEC VPN connection to PIA and using Download Station. I would get it to connect for 60 seconds, then it would drop. I could get OpenVPN to connect, but Download Station wouldn't work. So after a lot of tinkering around, I was able to get it all to work, here's what I did.
1. Under Network -> General - Manually specify DNS Servers (8.8.8.8, 75.75.75.75, or whatever is your favorite). Under Advanced settings, make sure "Use multiple gateways" is checked.
2. Under Network -> Static Route - Create a static route for your local LAN(s) and point it to your default gateway (i.e. - If your router gives out 192.168.1.x addresses, then most likely you would set up a static route for 192.168.1.0 255.255.255.0, the gateway would be 192.168.1.1 and the interface would be LAN.
3. Create another static route for your DNS server (in the example above, the static route would be 8.8.8.8 255.255.255.255 and the gateway would be your local router and the LAN interface).
4. Now create your VPN connection.
- VPN type is L2TP/IPSEC
- server address: Has to be the IP Address of your fav PIA server, not a hostname. Just open a command prompt and type ping us-east.privateinternetaccess.com and record the IP address.
- the username/password is NOT your normal PIA login. It is a SOCKS/PPTP/L2TP username. Under Client Control Panel, scroll down to "PPTP/L2TP/SOCKS Username and Password) and either generate one or use the one's listed.
The username will begin with an "x", not a "p".
- the pre-shared key is "mysafety"
- click "Next"
- Then check the boxes "Use the default gateway on remote network", "Server is behind NAT" and also "Reconnect if lost"
- click "Ok"
5. Then highlight your VPN connection and hit "Connect". It should connect and stay connected. Make sure the sent and received bytes is incrementing and you should be good to go!
Comments
I have successfully set up my Synology NAS PIA connection.
I SSH'ed into my NAS and ran the command
curl -4 icanhazip.com to check that my IP address had changed to that of the VPN server, which it did.
I then ran
curl -6 icanhazip.com and it returned an ipv6 address. I disconnected from the VPN server and ran the same curl -6 icanhazip.com command again and I found that the address returned was exactly the same?
Is this expected behaviour as I am concerned that I may be leaking my real IP.
I have tried multiple VPN connections using a server in the UK and France and each time, the ipv4 address changes as expected however the ipv6 address remains the same.
Any help would be much appreciated.
Many thanks in advance