WireGuard operates in Linux kernel space, outperforming OpenVPN by over 400% in bandwidth while saving mobile battery life. This guide sets up WireGuard Easy with persistent configuration in under five minutes.
Docker Compose Deployment
services:
wg-easy:
environment:
- WG_HOST=vpn.yourdomain.com
- PASSWORD_HASH=$$2a$$12$$... # Generate with: docker run --rm -it ghcr.io/wg-easy/wg-easy wgpw 'YOUR_PASSWORD'
- WG_PORT=51820
- WG_DEFAULT_ADDRESS=10.8.0.x
- WG_DEFAULT_DNS=192.168.1.2 # Your local Pi-hole IP
- WG_ALLOWED_IPS=192.168.1.0/24 # Split-tunnel home LAN only
image: ghcr.io/wg-easy/wg-easy
container_name: wg-easy
volumes:
- /mnt/docker/wg-easy:/etc/wireguard
ports:
- 51820:51820/udp
- 51821:51821/tcp
restart: unless-stopped
cap_add:
- NET_ADMIN
- SYS_MODULE
sysctls:
- net.ipv4.conf.all.src_valid_mark=1
- net.ipv4.ip_forward=1
Verified Hardware Tested in This Blueprint
Tested in our physical engineering lab for power consumption, thermal stability, and Linux driver compatibility.