English
简体中文繁體中文EnglishРусскийفارسی

Home › Download › Routers and Docker

Install on a router or in Docker

Installing luci-proto-wireguard on OpenWrt, running wg-easy with Docker, what to do with Synology and QNAP, and why the router is a good place.

On the router, every device at home benefits
On the router, every device at home benefits Mk2010, CC BY-SA 3.0

OpenWrt

Over SSH on the router
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
  1. Network → Interfaces → Add new interface, protocol WireGuard VPN.
  2. Press Generate new key pair and fill in the port and IP address.
  3. Under Peers add the phones and computers with their public keys and allowed IPs.
  4. 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.

A Linux box with Docker
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 -d

Open 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.

On the same round

Postcodes: WireGuard OpenWrt, WireGuard Docker, WireGuard Synology