WireGuard and AmneziaWG config generator with QR code

Keys, addresses and ready files: wg0.conf for the server and one file per client, with a QR code for phones. Turn on AmneziaWG and both ends get the same Jc, Jmin, Jmax, S1, S2 and H1–H4 parameters.

Runs in your browser, nothing is sent

Settings
Result

The result will show up here.

Everything is worked out in your browser: keys and addresses are not sent anywhere.

Reference

FAQ

How does an AmneziaWG config differ from WireGuard?

It is the same WireGuard file with the Jc, Jmin, Jmax, S1, S2 and H1–H4 parameters. They change what the packets look like so the network doesn't recognize WireGuard by its first bytes, and they must match on the server and the client — the generator writes the same values to both.

What else does the server need?

Install wireguard-tools, turn on packet forwarding with net.ipv4.ip_forward=1, put wg0.conf into /etc/wireguard/ and run wg-quick up wg0. AmneziaWG needs its own build with amneziawg-tools: there the file goes to /etc/amnezia/amneziawg/awg0.conf and starts with awg-quick up awg0. The PostUp and PostDown lines set up NAT through the external interface — check its name.

Why PresharedKey and PersistentKeepalive?

A PresharedKey is a second shared key on top of the usual ones, one more layer of protection. PersistentKeepalive = 25 sends a packet every 25 seconds so the tunnel doesn't fall asleep behind a phone's or router's NAT.

How do I add the file to Veli?

Profiles → “Add”: paste the file's text or choose it with “Open a file”. On an Android phone, Add → “Scan a QR code” reads its QR code. Veli understands both WireGuard and AmneziaWG.

Links, subscriptions and configs open in Veli, a free client for Windows, macOS, Linux and Android. Download Veli