WireGuard config checker and QR code generator
Paste a WireGuard or AmneziaWG .conf, or drop the file, and see every mistake with its line: broken keys, a peer with your own key, AllowedIPs without ::/0 (an IPv6 leak), a full tunnel without DNS, an Endpoint without a port, MTU, keepalive, and AmneziaWG's settings, from Jc to RandomTrailers, against their limits. It also names the AmneziaWG version: 1, 2.0, 3.0 or 3.1. Where the fix is clear, one click makes it. A client config becomes a QR code for your phone. Everything stays in your browser.
Runs in your browser, nothing is sent
Check your connection
Links and subscriptions
Network and router
DNS and addresses
The result will show up here.
Everything is worked out in your browser: keys and addresses are not sent anywhere.
Veli builds the config itself: paste a link, a subscription or a file into Add. Free, no sign-up.
Download VeliReference
WireGuard and AmneziaWG config fields
Every line a .conf file can have, with the values the checker holds it to. The tool shows the same notes next to the file you paste.
[Interface]
PrivateKey- This side's private key. It never leaves the device; the other side gets the public key made from it.
Address10.8.0.2/32, fd00::2/128- This side's address inside the tunnel. A client usually has one, with /32.
DNS1.1.1.1, 2606:4700:4700::1111- DNS servers while the tunnel is up. A name instead of an address is a search domain.
MTU1280–1420- The tunnel's largest packet. Without it, the MTU is worked out from the route to the server, which is usually right.
ListenPort51820- The UDP port this side listens on. A server needs a fixed one; a client usually goes without.
Tableauto, off- Which routing table gets the AllowedIPs routes; off adds no routes at all.
PreUp, PostUp, PreDown, PostDown- Shell commands wg-quick runs when the tunnel goes up or down, such as NAT on a server.
[Peer]
PublicKey- The other side's public key: the server's in a client file, the client's in a server file.
PresharedKey- An extra secret, the same on both sides. Optional; it adds one more layer of encryption.
AllowedIPs0.0.0.0/0, ::/0- Which addresses go into the tunnel to this peer, and which addresses it may send from. 0.0.0.0/0, ::/0 is the whole internet.
Endpoint203.0.113.10:51820, [2001:db8::1]:51820- Where the peer is: address or name and UDP port. A client needs it; a server learns its clients' addresses by itself.
PersistentKeepalive25, 22-30- Every how many seconds to send a small packet, so that a router on the way doesn't forget the connection. AmneziaWG 3 also takes a range.
AmneziaWG, in [Interface]
Jc0–128- AmneziaWG: how many junk packets go before every handshake. Only this side needs it.
Jmin≤ Jmax- AmneziaWG: the smallest junk packet, in bytes.
Jmax≤ 1280- AmneziaWG: the largest junk packet, in bytes.
S10–1000- AmneziaWG: random bytes in front of the handshake initiation (148 bytes). Must match the server.
S20–1000- AmneziaWG: random bytes in front of the handshake response (92 bytes). Must match the server.
S30–1000- AmneziaWG 2.0: random bytes in front of the cookie reply (64 bytes). Must match the server.
S40–1000- AmneziaWG 2.0: random bytes in front of every data packet. Must match the server; the MTU gets smaller by as much.
H1–H45–2147483647, a-b- AmneziaWG: the type values of the four messages, a number or a range a-b. Must match the server and must not overlap.
I1–I5<b 0x…><r 16><t>- AmneziaWG: decoy packets before the handshake, built from tags such as <b 0x…>, <r 16>, <t>. Only this side needs them.
AmneziaWG 3.0 and 3.1, in [Interface]
HeaderProtectionKeybase64, 32 B- AmneziaWG 3.0: the key that hides packet headers, 32 bytes as awg genkey prints them. Must match the server, and S1–S4 must be 12 or more. Veli doesn't support it yet.
ContentPaddingAddition16-128- AmneziaWG 3.0: bytes of padding inside every data packet, a number or a range. Each side has its own; better set on both.
RekeyAfterTime120, 100-140- AmneziaWG 3.0: after how many seconds a new key is asked for, 120 unless set. Each side has its own.
RekeyTimeout5, 4-7- AmneziaWG 3.0: after how many seconds an unanswered handshake is sent again, 5 unless set. Each side has its own.
RejectAfterTime180, 170-200- AmneziaWG 3.0: after how many seconds a key is no longer used, 180 unless set. Each side has its own; keep it above RekeyAfterTime.
KeepaliveTimeout10, 8-12- AmneziaWG 3.0: how many seconds after receiving data this side answers with an empty packet if it has nothing to send, 10 unless set. Each side has its own.
MaxHandshakeAttempts18, 15-20- AmneziaWG 3.0: how many times a handshake is repeated before giving up, 18 unless set. Each side has its own.
RandomTrailerson, off- AmneziaWG 3.1: random bytes at the end of packets. Must be the same on both sides; the same value for S1–S4 is advised with it.
DisableCookieson, off- AmneziaWG 3.1: no cookie replies, so probing shows less, but nothing protects from a flood of handshakes. Each side has its own.
FAQ
How do I check a WireGuard config?
Paste the .conf here or drop the file. The checker reads [Interface] and every [Peer] and lists what won't connect, what may not work and what to know, each with its line; the clear cases fix with one click. Whether the server answers can only be seen by connecting: the checker doesn't reach the server.
Why does WireGuard connect but there is no internet?
Most often the server doesn't pass traffic on: there is no NAT (the PostUp line with MASQUERADE) or IP forwarding is off. On the client, look at AllowedIPs, DNS and MTU: an MTU too big for the line opens small pages and hangs on big ones. If there is no handshake at all, the keys don't pair up or the server's port is closed.
How do I turn a WireGuard config into a QR code?
Paste the client's .conf and press “Show QR code”. In the WireGuard app on your phone, add a tunnel from a QR code and point the camera at the screen. The code holds the whole file, private key included, so show it only to your own phone.
Is it safe to paste my config here?
Yes: the check and the QR code are made in your browser, and the file goes neither to our site nor anywhere else. Private keys stay hidden in the table until you show them. The site's statistics count only page views and button clicks.
What do Jc, S1 and H1 mean in an AmneziaWG config?
They make WireGuard's packets look different. Jc junk packets of Jmin to Jmax bytes go before every handshake, S1–S4 put random bytes in front of messages, H1–H4 replace the message types. S1–S4 and H1–H4 must be the same on the client and the server; Jc, Jmin and Jmax may differ.
Which AmneziaWG version is my config?
Its lines tell. Jc, S1, S2 and single H1–H4 are version 1; S3, S4 or ranges such as H1 = 100-200 are 2.0; HeaderProtectionKey, ContentPaddingAddition, the timers and a range in PersistentKeepalive are 3.0; RandomTrailers and DisableCookies are 3.1. A program older than the file refuses lines it doesn't know. HeaderProtectionKey and RandomTrailers must be the same on both sides, like S1–S4 and H1–H4.