WireGuard and OpenVPN Config Audit Guide: Your VPN Config Is a Secrets File

A VPN configuration file is the text file that tells a client who it is (its private key), whom to trust (the server's key or CA), how to encrypt (cipher and authentication) and what to route (the tunnel's scope). It is also, not coincidentally, a secrets file — and it deserves the handling of one. This guide covers why a config should be audited locally or not at all, the two very different audit surfaces of WireGuard and OpenVPN, the full-tunnel versus split-tunnel choice, and the places configs actually leak — then shows how to audit your own in five minutes with the WireGuard / OpenVPN Config Auditor.

Your VPN config is a secrets file, in one sentence

A WireGuard .conf contains the client's private key in plain text; an OpenVPN .ovpn commonly embeds the client certificate and private key inline, between and tags, next to the CA that anchors trust. Whoever copies the file can impersonate the client until the key is revoked. That single fact decides how the file may be handled: it is not a document to paste into web forms, attach to tickets, commit to a repository or drop into a chat window for a second opinion.

It also decides how an audit has to work. A server-side config checker asks you to upload the one file that must never be uploaded. So the WireGuard / OpenVPN Config Auditor runs the whole audit in your browser, and its reports are redacted by construction: findings name the field and the length — “PrivateKey (44)” — and never the key. Audit it locally, or do not audit it at all.

Two formats, two audit surfaces

WireGuard's surface is deliberately tiny. A client config is an [Interface] (private key, address, DNS, maybe MTU) and a [Peer] (public key, optional preshared key, AllowedIPs, Endpoint, maybe PersistentKeepalive). The audit questions fit on an index card: is the key well-formed, is the address set, does the peer have an endpoint, is keepalive set behind NAT, and — the one real design decision — what does AllowedIPs route? There is no cipher negotiation to get wrong because there is no negotiation at all.

OpenVPN's surface is two decades of directives, and the risks live in the tail: comp-lzo or compress (the VORACLE precondition), auth SHA1 or MD5, BF-CBC or another pre-AEAD cipher, a missing tls-crypt leaving the control channel unwrapped, a missing remote-cert-tls letting any client certificate impersonate the server, a management interface listening, script-security high enough to run code. None of these is exotic — they are the lines old tutorials still hand out, copied from config to config long after the guidance changed. The WireGuard and OpenVPN Config Auditor with the OpenVPN demo loaded: score 66 out of 100, Needs work, 7 findings including VORACLE compression

The OpenVPN lines that carry the risk

Compression first, because it is the only one that is an attack rather than a weakness. VORACLE (2018) showed that when plaintext is compressed before encryption, an attacker who can influence the plaintext and observe ciphertext lengths can recover secrets — a session cookie, say — byte by byte. OpenVPN's own documentation now warns against compression, yet comp-lzo still sits in countless shipped configs because an old guide said it saved bandwidth. If your config compresses, removing that line is the single highest-value edit you can make.

Then the quiet trio. tls-crypt wraps the control channel in a shared static key, so the server ignores unauthenticated probes entirely instead of answering them with a TLS handshake. remote-cert-tls server makes the client check that the certificate it is shown is actually a server certificate — without it, any client certificate from the same CA can stand in for the server. And the cipher/auth pair decides the data channel's floor: AES-256-GCM is AEAD and self-authenticating; AES-CBC with auth SHA1 is a config that predates that world.

Full tunnel versus split tunnel: a choice, not a grade

AllowedIPs is where a WireGuard config states its politics. 0.0.0.0/0 plus ::/0 is a full tunnel: everything, IPv4 and IPv6, goes through the VPN — maximal privacy, broken local-network access, added latency on every packet. A shorter list is a split tunnel: the office subnets go through, the rest goes direct — fast and cheap, with the rest of your traffic unprotected. OpenVPN makes the same choice with redirect-gateway, usually pushed from the server. Neither answer is the secure one; they are different threat models wearing the same syntax.

That is why the auditor reports tunnel scope as a note in both directions instead of scoring one as a fault. What it will not let you do is make the choice accidentally: a full tunnel nobody noticed breaks printers and local services and gets the VPN blamed; a split tunnel nobody noticed leaves exactly the traffic the user cared about outside. The finding exists so the file's choice is on the record — whichever way you chose it.

Key hygiene: where configs actually leak

Configs rarely leak through exotic attacks. They leak through screenshots in support threads (the QR code a WireGuard app shows for a config is the whole config, private key included), through .ovpn files attached to helpdesk tickets, through example configs committed to git with the real keys left in, and through the 'temporary' copy in a shared downloads folder that outlives the trip it was made for. Every one of those copies is a working credential until the key is revoked.

The habits that close these holes are boring and complete: owner-only permissions (chmod 600) on config files, one key pair per device so revocation is surgical, no configs in repositories or tickets — share the server's public details and let each device generate its own private key, which never needs to travel at all — and rotation whenever a file has been somewhere it should not have been. A config that has been screenshotted into a public forum is not 'probably fine'; it is published.

Audit your own config in five minutes

Open the WireGuard / OpenVPN Config Auditor and paste your .conf or .ovpn — it never leaves your browser. Read the score as a triage order: errors first (compression, a missing remote-cert-tls, a missing key or endpoint), then warnings (SHA1, CBC, no tls-crypt, the management interface), then the infos, which are mostly the standing choices — private key present, tunnel scope, persist lines — recorded so you can confirm they are deliberate. The four demos show the scale: the WireGuard demo scores 97 with its three standing notes, its hardened twin 98; the planted OpenVPN demo scores 66 with 7 findings, its hardened twin 100.

Fix the file, re-audit to confirm, and store the fixed version where the old one lived — a fixed copy in a drawer changes nothing. The same local-audit habit covers the neighbouring secrets files: the SSH Server Config Auditor reads an sshd_config the same way, and the File Encryptor encrypts a config file in the browser when you genuinely must move one — the private key then travels inside AES-256-GCM, not in plain text.

The planted OpenVPN demo, in part

client
dev tun
proto udp
remote vpn.example.com 1194
auth SHA1
cipher AES-256-CBC
comp-lzo
auth-user-pass

Sources

Frequently asked questions

Is WireGuard inherently safer than OpenVPN because its config is smaller?

Its audit surface is smaller, which is a real advantage: there are fewer lines to get wrong, no cipher negotiation, and no compression switch. But a WireGuard config still carries a private key, still makes a full-versus-split-tunnel choice in AllowedIPs, and still fails silently behind NAT without PersistentKeepalive. Smaller is easier to audit — it is not self-auditing.

My provider gave me one .ovpn for all my devices. Should I use it?

It works, and it is also a shared credential: the same key on every device means a lost phone cannot be revoked without breaking the laptop too, and the provider cannot tell the devices apart. Where the provider allows it, generate or request a separate config per device. Where it does not, at least treat the file as the secret it is — and know that its compromise is an all-devices compromise.

Does a 100 score mean my VPN is secure?

No — it means this config file contains none of the risky patterns in the rule set. The audit reads the file, not the tunnel: it cannot see the server's configuration, whether the keys were exchanged safely, or what the provider does with your traffic. A clean audit is the start of trusting a setup, not the end of it.