Skip to content

Instantly share code, notes, and snippets.

@dwerbam
Last active June 11, 2022 22:53
Show Gist options
  • Save dwerbam/3938bf319d49c3f4d34692179478aa22 to your computer and use it in GitHub Desktop.
Save dwerbam/3938bf319d49c3f4d34692179478aa22 to your computer and use it in GitHub Desktop.
wireguard vpn setup
docker run \
-d \
--name=wireguard \
--cap-add=NET_ADMIN \
--cap-add=SYS_MODULE \
-e PUID=1000 \
-e PGID=1000 \
-e TZ=Europe/Madrid \
-e SERVERURL=3.71.216.2 \
-e SERVERPORT=51820 \
-e PEERS=7 \
-e PEERDNS=8.8.8.8,8.8.4.4 \
-e INTERNAL_SUBNET=10.13.13.0 \
-p 51820:51820/udp \
-v /media/nextcloud/services/wireguard/appdata/config:/config \
-v /lib/modules:/lib/modules \
--sysctl="net.ipv4.conf.all.src_valid_mark=1" \
--restart unless-stopped \
linuxserver/wireguard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment