Enhancing Skills

Express VPN on Synolgy NAS

I need to be able to connect to the WAN (internet) over a VPN. I use Express VPN for my solution. I also need to be able to use my local LAN at the same time.

Portainer Container build

docker run -d \
--name=portainer \
 -e PUID=1000 \
 -e PGID=1000 \
-p 8000:8000 \
-p 9000:9000 \
--restart=always \
-v /var/run/docker.sock:/var/run/docker.sock \
-v portainer_data:/data \
portainer/portainer-ce

Express VPN container

docker run \
      --env=CODE=ACTCODE\
      --env=SERVER=SMART \
      --cap-add=NET_ADMIN \
      --device=/dev/net/tun \
      --privileged \
      --detach=true \
      --tty=true \
      --name=expressvpn \
      --publish 80:80 \
      misioslav/expressvpn \
      /bin/bash

Sonar to verify

docker run \
-d\
  --name=sonarr \
  -e PUID=1000 \
  -e PGID=1000 \
  -p 8989:8989\
  -e TZ=america/new_york \
  --restart unless-stopped \
  linuxserver/sonarr

Here are the steps on how to set up 

ExpressVPN

 for Synology using 

OpenVPN

:

  1. Set up your Synology
  2. Turn off IPv6
  3. Find your ExpressVPN account credentials
  4. Create a new VPN profile
  5. Connect to a VPN server location

To turn off IPv6:

  1. Go to Control Panel > Network
  2. Click Network Interface > LAN
  3. Click Edit
  4. In the Edit menu, click IPv6
  5. For IPv6 setup, select Off
  6. Click OK
  7. Reboot your Synology

Here are the steps on how to create a new VPN profile:

  1. Go to Control Panel > Network
  2. Click Network Interface > VPN
  3. Click Create
  4. Select OpenVPN (via importing a .ovpn file)
  5. Click Next
  6. On the General Settings screen, enter the following information:
    • Profile name
    • User name
    • Password
  7. Add the 4 files downloaded from your online account
  8. Click Next
  9. On the Network Settings screen, select the following options:
    • Use default gateway on remote network
    • Redirect all traffic through VPN server
  10. Click Next
  11. On the Advanced Settings screen, leave the default settings
  12. Click Apply
  13. Click Connect

Once you have created a new VPN profile, you can connect to a VPN server location by following these steps:

  1. Go to Control Panel > Network
  2. Click Network Interface > VPN
  3. Select the VPN profile you created
  4. Click Connect
  5. Enter your password
  6. Click OK

You should now be connected to the VPN server location. You can verify this by checking your IP address. If your IP address has changed, then you are successfully connected to the VPN server location.


Reference

ExpressVPN Docker Synology

How to use ExpressVPN for Synology using OpenVPN


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.