Skip to content

Instantly share code, notes, and snippets.

@AnteaterKit
Created May 16, 2023 10:52
Show Gist options
  • Save AnteaterKit/d9b48b0327a75d76566a1594b0d7df40 to your computer and use it in GitHub Desktop.
Save AnteaterKit/d9b48b0327a75d76566a1594b0d7df40 to your computer and use it in GitHub Desktop.
docker run -d \
--name=wg-easy \
-e WG_HOST=YOUR_SERVER_IP \
-e PASSWORD=YOUR_ADMIN_PASSWORD \
-v ~/.wg-easy:/etc/wireguard \
-p 51820:51820/udp \
-p 51821:51821/tcp \
--cap-add=NET_ADMIN \
--cap-add=SYS_MODULE \
--sysctl="net.ipv4.conf.all.src_valid_mark=1" \
--sysctl="net.ipv4.ip_forward=1" \
--restart unless-stopped \
weejewel/wg-easy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment