Quick Wireguard Server

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
podman run \
  --name=wg-easy \
  -e LANG=en \
  -e WG_HOST=PUBLICIP \
  -e WG_DEVICE=tap0 \  
  -e PASSWORD=RANDOMPASSWORD \
  -v ~/.wg-easy:/etc/wireguard:Z \
  -p 51820:51820/udp \
  -p 51821:51821/tcp \
  --cap-add=NET_ADMIN \
  --cap-add=NET_RAW \
  --cap-add=SYS_MODULE \
  --sysctl="net.ipv4.conf.all.src_valid_mark=1" \
  --sysctl="net.ipv4.ip_forward=1" \
  --restart unless-stopped \
  ghcr.io/wg-easy/wg-easy

Simply awesome