
OpenWrt
opkg update && opkg install luci-proto-wireguard qrencode # 24.10 and older
apk update && apk add luci-proto-wireguard qrencode # since 25.12
/etc/init.d/network restart- Network → Interfaces → Add new interface, protocol WireGuard VPN.
- Press Generate new key pair and fill in the port and IP address.
- Under Peers add the phones and computers with their public keys and allowed IPs.
- Put it into the lan zone in Firewall Settings, then allow the UDP port in Traffic Rules.
Recent versions show a QR code for each peer.
Docker: wg-easy
wg-easy packs WireGuard and a web page together: add devices, show codes and pause them by clicking.
mkdir wg-easy && cd wg-easy
curl -o docker-compose.yml https://raw.githubusercontent.com/wg-easy/wg-easy/master/docker-compose.yml
docker compose up -dOpen UDP 51820. The web page is on 51821; keep it off the internet, behind a reverse proxy with HTTPS.
Synology and QNAP
Synology kernels are old and most models lack the module, so the kernel version will not run. Put WireGuard on the router or a small box next to the NAS, which then needs nothing; see reaching home.
Why on the router?
One installation, and printers, cameras and the NAS are reachable without installing anything on them.
Is a router fast enough?
It depends on the chip. Old single-core models do tens of megabits, recent ARM ones several hundred.