Express VPN on Synolgy NAS
September 21st, 2024 2:58 PM Mr. Q Categories: Synology
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
OpenVPN
- Set up your Synology
- Turn off IPv6
- Find your ExpressVPN account credentials
- Create a new VPN profile
- Connect to a VPN server location
To turn off IPv6:
- Go to Control Panel > Network
- Click Network Interface > LAN
- Click Edit
- In the Edit menu, click IPv6
- For IPv6 setup, select Off
- Click OK
- Reboot your Synology
Here are the steps on how to create a new VPN profile:
- Go to Control Panel > Network
- Click Network Interface > VPN
- Click Create
- Select OpenVPN (via importing a .ovpn file)
- Click Next
- On the General Settings screen, enter the following information:
- Profile name
- User name
- Password
- Add the 4 files downloaded from your online account
- Click Next
- On the Network Settings screen, select the following options:
- Click Next
- On the Advanced Settings screen, leave the default settings
- Click Apply
- Click Connect
Once you have created a new VPN profile, you can connect to a VPN server location by following these steps:
- Go to Control Panel > Network
- Click Network Interface > VPN
- Select the VPN profile you created
- Click Connect
- Enter your password
- 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
How to use ExpressVPN for Synology using OpenVPN