← Back to section · Tutorials & Labs

Deployment in Practice: The Current Post-Quantum Options for IPsec and WireGuard

IPsec has two standardized paths — RFC 8784 preshared-key mixing and RFC 9370 multiple key exchanges; WireGuard relies on its built-in PSK as the symmetric safety net. This article gives each one's configuration surface and selection guidance.

Published 22 November 2026 · 6 min read · PQ Frontier

Deployment in Practice: The Current Post-Quantum Options for IPsec and WireGuard
AI-generated site artwork
Video explainer · Deployment tutorials: into real systems

VPN tunnels are another long-lived confidentiality channel, and recorded tunnel traffic faces the same future decryption risk. But post-quantum retrofitting for VPNs is not like TLS: there is no tidy “rename the group” here — IPsec and WireGuard each have their own realistic path. This article lays out both paths’ mechanisms, configuration surfaces, and applicable scenarios so you can pick the right tool at deployment time.

IPsec Path One: RFC 8784 Preshared Key Mixing

RFC 8784 (2020, “Mixing Preshared Keys in the Internet Key Exchange Protocol Version 2”) mixes a preshared key (PPK) into IKEv2’s key derivation: after completing a classical (or any) Diffie-Hellman exchange, both sides additionally bind the session keys with the PPK. Even if DH is broken by a quantum computer in the future, an attacker without the PPK still cannot derive the session keys; the PPK is a symmetric key, and 256 bits of it still offers roughly 128 bits of effective strength under Grover’s algorithm. Deployment essentials: both ends’ implementations must support RFC 8784 (mainstream implementations such as strongSwan do — consult each one’s official documentation for version specifics); in the connection configuration, specify a PPK identity and key file per peer, and set the connection to require the PPK rather than treat it as optional, or downgrade negotiation makes the protection nominal. PPK distribution is an out-of-band action (configuration management or manual delivery); it is essentially one extra symmetric key per tunnel, and the operational cost lives there, not in the protocol itself.

IPsec Path Two: RFC 9370 Multiple Key Exchanges

RFC 9242 defines the IKEv2 intermediate exchange (IKE_INTERMEDIATE), and RFC 9370 (2023, “Multiple Key Exchanges in IKEv2”) builds on it to allow several key exchanges to be performed serially during one IKE SA establishment, feeding the shared secrets of classical ECDH and post-quantum KEMs such as ML-KEM into key derivation together. This is the true “hybrid” path equivalent to TLS hybrid groups. Its cost is implementation maturity and interoperability: both ends must support 9242 + 9370 and implement the post-quantum KEM, and messages grow larger (ML-KEM public keys/ciphertexts can trigger IKE fragmentation issues — test MTU and fragmentation behavior on real links before deploying). The realistic deployment order is therefore: existing site-to-site tunnels go on PPK first to pin down the recording risk; new or heavily reworked tunnels pilot multiple key exchanges, and only after the interoperability matrix passes do you generalize.

How to choose between the two IPsec paths — three more criteria. First, peer controllability: for site-to-site tunnels where you control both ends, PPK has the lowest configuration cost, so go first; for tunnels interconnecting with external organizations, use whatever the peer’s implementation supports — RFC 8784 implementations are currently more widespread than 9370, making agreement easier at the negotiating table. Second, compliance wording: some industry guidance explicitly requires algorithmic hybridity (the key exchange itself containing a post-quantum KEM), which PPK alone may not satisfy for audit purposes — plan 9370 directly in those scenarios. Third, the packet environment: tunnels crossing the public internet with uncontrollable path MTUs should adopt 9370 cautiously and test fragmentation; data-center interconnects inside a network have no such concern. Record these three judgments in the tunnel ledger’s notes column so the reasoning behind each trade-off is visible at review time.

WireGuard: Use Its Native PSK Well

WireGuard’s design philosophy is a fixed algorithm suite with no negotiation, which means you cannot swap ML-KEM into it — any scheme claiming “WireGuard with integrated post-quantum algorithms” is a protocol-changing fork, not the original. But it leaves exactly the right opening: the PresharedKey field in each peer’s configuration. The protocol mixes the PSK into session key derivation, so tunnel confidentiality depends on both Curve25519 and this 256-bit symmetric key; a quantum computer breaking the former still cannot pass the latter. The deployment action is therefore very concrete:

[Peer]
PublicKey = <peer public key>
PresharedKey = <32 random bytes, base64>
AllowedIPs = 10.0.0.0/24

Generate a separate PSK with wg genpsk for each pair of peers (never one shared across the whole network), distribute it out-of-band, and place it under the same custody and rotation regime as private keys. The boundary must be stated clearly: the PSK protects confidentiality (against recorded-traffic decryption); it provides no quantum resistance for identity authentication — authentication still rests on Curve25519 public keys, and breaking those means future active impersonation risk, the same division of labor as TLS’s “key exchange first, certificates later.” There is no timetable for an official WireGuard with negotiable algorithms; deploying the PSK scheme above is the correct answer today.

Key Asset Management: How to Manage PPKs and PSKs

Both paths ultimately land on the same operations job: a new batch of symmetric keys to manage. PPKs and PSKs are managed at the same grade as private keys, concretized in four rules. One: one-to-one — an independent key per tunnel and per peer pair; never share one across the network, because a single leak zeroes the post-quantum protection of every tunnel at once, and you cannot rotate just the affected one. Two: out-of-band distribution — keys are delivered through configuration management or encrypted channels, never appearing in tickets, chat logs, or code repositories; the configuration files themselves go into sensitive-file scanning. Three: regular rotation — align the rhythm with the certificate cycle, and design rotation as a dual-key overlap period (old and new both configured, old withdrawn after the peer switches) so rotation itself never drops the tunnel; IKEv2’s PPK identity (PPK_ID) mechanism natively supports coexistence of several keys, which is exactly the opening left for rotation. Four: ledger registration — every key’s purpose, tunnel, creation time, rotation time, and owner go into the asset ledger, consistent with this section’s monitoring article. A team that cannot meet these four rules should fix its key management process before retrofitting tunnels — the strength of the post-quantum protection ends up equal to the management strength of these symmetric keys.

Verification and Selection Summary

On the IPsec side, verify two things: the negotiation log shows the PPK identity or additional key exchanges, and deliberately corrupting the peer’s PPK makes tunnel establishment fail (proving it was actually required); on the WireGuard side, use wg show to confirm every peer carries a preshared key marker, and run the same wrong-key failure test. The selection conclusion compresses to three sentences: existing IPsec tunnels get RFC 8784 as a fast safety net, new tunnels evaluate RFC 9370; WireGuard enables PSK everywhere and manages it as a formal key asset; and for both tunnel types, “did the negotiation actually include a PQ component” belongs in inspection checks — not merely whether the tunnel is up.

Tags: IPsecWireGuardVPNRFC 8784