Skip to content

Instantly share code, notes, and snippets.

@4piu
Created May 21, 2023 08:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 4piu/1ce601f2361751d7b71bd8ce0d792d99 to your computer and use it in GitHub Desktop.
Save 4piu/1ce601f2361751d7b71bd8ce0d792d99 to your computer and use it in GitHub Desktop.
How to Setup Wireguard VPN on Synology using Docker (without compiling/installing packages)
# The following command starts a wireguard-go container using wg0.conf
# I still can't find a boringtun container that works for Synology DSM 7.1
sudo docker run -d \
--cap-add NET_ADMIN \
--device=/dev/net/tun \
-v ❗/volume1/docker/wireguard/wg0.conf❗:/etc/wireguard/wg0.conf \
--sysctl net.ipv4.ip_forward=1 \
--name wireguard-go \
masipcat/wireguard-go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment