Checklist: enable post-quantum key exchange on a site-to-site VPN

A preparation, change and rollback checklist for adding ML-KEM key exchange to a site-to-site IKEv2 tunnel between two gateways, with the checks that confirm the tunnel negotiated it.

On this page

How do you enable post-quantum key exchange on a site-to-site VPN without breaking the tunnel?

A network team that has to add post-quantum key exchange to an existing site-to-site tunnel can do it as a planned change, not an emergency. The core step is to add an extra ML-KEM key exchange to the IKE proposals on both gateways. On strongSwan, for example, version 6.0.0 or later can add x25519-ke1_mlkem768 to the proposal in swanctl.conf, which keeps the initial X25519 exchange and adds ML-KEM-768 after it. Then load the new configuration, verify that the tunnel negotiates and stays up, and keep a tested rollback ready before you start. The tunnel stays encrypted under the classic exchange throughout, because the additional round is layered on top of it rather than replacing it.

Before you touch production, confirm what each gateway actually runs. Use swanctl --version (or swanctl -V since 6.0.5) to see the installed strongSwan version, and swanctl --list-algs to confirm that ML-KEM is provided by a loaded plugin. The 6.0.0 announcement lists the providers: the botan plugin with Botan 3.6.0 or later, the wolfssl plugin with wolfSSL 5.7.4 or later, the openssl plugin with AWS-LC 1.37.0 or later, and the new ml plugin. If --list-algs shows no ML-KEM entry, the change cannot work on that gateway, whatever the proposal says. The newest release listed on the strongSwan blog as of this writing is 6.1.0, dated 7 September 2026, so check whether your gateways should be on the current series before you plan the window.

The change itself is short, but the order matters. Edit the proposal on one peer, load the connection with swanctl --load-conns (-c), and then bring it up with swanctl --initiate (-i). Check swanctl --list-sas (-l) to see the active IKE_SA and its negotiated key exchanges, and swanctl --list-conns (-L) to confirm the loaded settings. Repeat on the second gateway, then test traffic in both directions. Keep the previous swanctl.conf as a file you can reload, and know how to end and rebuild the connection with swanctl --terminate (-t). If the new round causes problems, the rollback is to restore the old proposal on both sides and reload, after which the tunnel returns to the classic exchange.

Who has to act on each end of the tunnel

Enabling post-quantum key exchange on a site-to-site tunnel touches more than one team. Each gateway operator, the administrator who checks both peers, and whoever owns a firewall or intermediary on the path each control a different part of the negotiation, so the change succeeds only when all three agree on what each one owns.

Gateway operator on each side

The operator of each gateway edits the connection in swanctl.conf and applies it. The key setting is the proposal, where extra key exchanges are written with the keX_ prefix, for example x25519-ke1_mlkem768. Each operator should first confirm the installed version with swanctl --version, since ML-KEM support depends on the release and on the cryptographic provider loaded. After editing, apply the change with swanctl --load-conns and confirm the connection appears with swanctl --list-conns. Keep the previous file so the change can be rolled back.

swanctl.conf docs

Peer administrator confirms proposals

The administrator confirms that both peers accept the same proposal. For IKE SA proposals, the key exchange method is mandatory, and peers must agree on a method for each round unless neither side defines one. A mismatch in extra rounds can prevent the tunnel from forming even when the base exchange matches. Compare the connection definitions on both gateways side by side, then bring the tunnel up with swanctl --initiate and check the result with swanctl --list-sas. Keep none or modpnone in mind for Child SAs, which make a separate key exchange optional.

proposals documentation

Firewall and path owner

The owner of any firewall or intermediary on the path controls whether large IKE messages arrive. Post-quantum key exchange moves key material into IKE_INTERMEDIATE messages, which are encrypted and can be fragmented, and fragments are not individually acknowledged, so a single blocked fragment forces retransmission of all of them. This owner should confirm that IP fragments are permitted between the two gateways and that nothing on the path drops them. The strongSwan FAQ notes that IP-layer fragments blocked by firewalls can cause retransmissions during IKE_AUTH.

strongSwan FAQ

Log review for both peers

Someone on each side should read the IKE_SA_INIT log messages to confirm the peer advertised fragmentation support, which appears as FRAGMENTATION_SUPPORTED (FRAG_SUP). Without that support on both ends, large post-quantum messages cannot be carried reliably. Checking the logs on both gateways lets the team separate a configuration mismatch from a path problem before changing anything else.

Rollback owner

One person should own the decision to revert. If the tunnel does not establish or drops after the change, that owner restores the previous swanctl.conf on the affected gateway, reloads with swanctl --load-conns, and terminates any stuck session with swanctl --terminate. Agree on this role before the change window opens, so a failed attempt does not leave one gateway on the new proposal and the other on the old one.

How do you check both gateways before you change anything?

This sequence confirms that both gateways can run ML-KEM and records the current proposal and tunnel state, so any change to the site-to-site tunnel can be compared against a known starting point and reversed if needed. Run each step on both gateways and keep the output from every command.

  1. Confirm the strongSwan version on each gateway

    Run swanctl --version on each gateway, or swanctl -V on releases from 6.0.5 onward, and record the version string from both sides. The ML-KEM proposal keywords (mlkem512, mlkem768 and mlkem1024) were introduced with strongSwan 6.0.0, so a gateway running an older release cannot negotiate them. Check that both versions are 6.0.0 or later before moving to the next step. Note that the newest release listed in the sources is 6.1.0, so confirm whether your gateway is on a supported patch level in your own maintenance process.

  2. List loaded algorithms and their plugins

    Run swanctl --list-algs on each gateway. The output prints each algorithm with its implementing plugin in square brackets, so look for ML-KEM entries and the plugin that provides them. The sources name four possible providers: the botan plugin (Botan 3.6.0 or later), the wolfssl plugin (wolfSSL 5.7.4 or later), the openssl plugin (AWS-LC 1.37.0 or later) and the new ml plugin. Confirm that each side lists an ML-KEM algorithm backed by a plugin and that the backing library meets the minimum version. Confirm the library versions in your own build, since the sources do not say which one your distribution ships.

  3. Record the current proposal settings

    Open the swanctl.conf on each gateway and find the connections.<conn>.proposals value for the tunnel. If the key is absent, the value is default, and the sources state that since 6.0.2 the default ESP proposals include all supported key exchange methods. Write down the exact value on each side in your change record. If the proposals line is missing and you rely on the default, record that fact, because the default will change behavior when the gateway is upgraded. Also note any children.<child>.esp_proposals settings, since they have their own default.

  4. List the loaded connection definitions

    Run swanctl --list-conns on each gateway to show the configurations currently loaded in the running daemon. Compare the output with the swanctl.conf file you recorded in the previous step. A mismatch means the daemon has not loaded the latest file, and you should run swanctl --load-conns before you rely on the result. Save the output from both gateways, because it is your baseline if you need to roll back.

  5. Capture the current security associations

    Run swanctl --list-sas on each gateway to see the active IKE_SAs and their state. Use the --ike <name> filter to narrow the output to the tunnel you plan to change, and --raw if you need the machine-readable form. A healthy tunnel shows an established IKE_SA with its child SAs installed. Record the state, the negotiated proposal and any rekey timing on both sides. If the tunnel is not established before you start, resolve that first, because you cannot tell later whether a change caused a failure.

  6. Save a rollback copy of the configuration

    Copy the current swanctl.conf and strongswan.conf on each gateway to a dated backup location before editing anything. Keep the copies alongside the output from the earlier commands so the baseline is complete in one place. The rollback path is to restore the saved file and run swanctl --load-conns, then confirm with swanctl --list-sas that the tunnel returns to its recorded state. Test the restore procedure on a lab gateway if you have one, so you know the steps work before you need them.

Which gateway situations change the plan

This table lists five gateway situations that change how you enable post-quantum key exchange on a site-to-site tunnel. Find the situation that matches your gateway or peer, read what it means, then take the next action before changing the connection.

SituationWhat it meansNext action
strongSwan older than 6.0.0The gateway predates RFC 9370 multiple key exchanges and ML-KEM support, so the mlkem proposal keywords and keX_ prefixes are not available.Plan an upgrade to 6.0.0 or later before you add ML-KEM proposals. Check the installed version with swanctl --version (-V on 6.0.5 and later).
No ML-KEM provider plugin loadedThe gateway may run 6.0.0 or later, but no plugin that implements ML-KEM is loaded, so the algorithm cannot be negotiated.Run swanctl --list-algs and look for ML-KEM entries in square brackets. If none appear, check that the botan, wolfssl, openssl or ml plugin is built and loaded at the versions the 6.0.0 announcement lists.
Peer from another vendor with a different proposal listThe two peers may not offer the same key exchange methods or rounds, so no common proposal exists for the exchange.Compare both proposal lists side by side. Align the additional key exchange settings on both sides, or temporarily fall back to a single method until both match.
Path where IP fragments may be blockedThe post-quantum IKE messages can be large and may be fragmented. A firewall that blocks IP fragments causes retransmissions during IKE_AUTH.Keep connections.<conn>.fragmentation enabled and check the IKE_SA_INIT logs for FRAGMENTATION_SUPPORTED (FRAG_SUP). Ask the firewall owner whether fragments are permitted on this path.
Connection that relies on default ESP proposalsSince strongSwan 6.0.2 the default ESP proposals include all supported key exchange methods, so the tunnel may negotiate something you did not intend.Set connections.<conn>.proposals and children.<child>.esp_proposals explicitly, then reload with swanctl --load-conns and confirm with swanctl --list-conns.

What to change depending on which gateway you operate

If you administer the strongSwan gateway making the change, you edit the proposals in swanctl.conf and then reload the connection. Post-quantum key exchange is added by prefixing an algorithm keyword with keX_, where X runs from 1 to 7. For example, x25519-ke1_mlkem768 runs an initial X25519 exchange and then adds ML-KEM-768 as a second round, and strongSwan allows up to eight key exchanges per SA. The ML-KEM keywords (mlkem512, mlkem768, mlkem1024) need a provider plugin, so confirm one is loaded before you edit.

  • Edit the proposal: Set proposals on the connection in swanctl.conf, and set esp_proposals on the child if you change the Child SA. Leave the default in place only if you intend the full set of supported methods.
  • Check the algorithm plugins: Run swanctl --list-algs and confirm each ML-KEM keyword is listed with a plugin in square brackets.
  • Use an optional round where needed: Write keX_none to make a round explicitly optional, if your peer may not support it.
  • Reload the connection: Run swanctl --load-conns to load the new configuration, then swanctl --list-conns to confirm it is present.
  • Start the tunnel: Run swanctl --initiate with the connection name, if this gateway initiates.

Before you move on, confirm the reloaded connection shows the proposal you wrote, not the one you replaced.

Which path leads from a planned change to a verified tunnel

The path starts with a version check, since the keX_ syntax and ML-KEM keywords need a release that supports them. Next, the same proposal edit is made on both peers in swanctl.conf, because each side must offer the same key exchange rounds. Then swanctl --load-conns reloads the configuration, and swanctl --initiate starts the tunnel. Confirm success with swanctl --list-sas, which shows an established IKE_SA. If the SA does not come up, terminate it with swanctl --terminate, restore the previous proposal on both peers, and reload before trying again.

The change path from version check to a verified tunnel, with the rollback branch.

How the extra key exchange rounds fit into the IKE handshake

The first key exchange in an IKEv2 negotiation always runs in IKE_SA_INIT, and that is where the classic method, such as x25519 or ecp384, is agreed. Additional post-quantum rounds added under RFC 9370 do not run there. According to the strongSwan 6.0.0 announcement, extra IKE rounds run in IKE_INTERMEDIATE, which is sent after the IKE SA is established and is encrypted, so the next key exchange payload can be fragmented. Additional rounds for Child SAs and for rekeying run later, in IKE_FOLLOWUP_KE, after CREATE_CHILD_SA. When you plan the change, confirm with each peer's vendor documentation which rounds it performs in each of these exchanges, because a gateway that supports only some of them will fail at the step it cannot handle.

The proposal syntax controls which rounds are attempted. In strongSwan, a prefix such as x25519-ke1_mlkem768 adds ML-KEM-768 as a second round, and up to eight rounds are allowed per SA. The keX_none form makes a round explicitly optional, so a peer that cannot perform it can still complete the exchange. For IKE SA proposals, the key exchange method transform is mandatory, and both peers must agree on a method for each round unless neither defines any algorithm for that round. Check that each side lists the same keX_ entries in connections.<conn>.proposals, and read the peers' logs to see which round was negotiated.

For Child SAs, the rule is different. The strongSwan proposals documentation says the keywords none or modpnone make a separate key exchange optional, and that since 6.0.2 the default ESP proposals include all supported key exchange methods. Decide whether each Child SA should require the post-quantum round or accept its absence, and set children.<child>.esp_proposals to match. Leaving both peers on the default value gives the same result only if both run a version where the defaults match, so record the versions on each gateway before you change anything.

What can break during the change and how to limit it

Adding post-quantum key exchange changes the size and number of IKE messages and the proposals each peer offers, so a tunnel that worked with classic keys can fail in ways that look like unrelated problems. The four risks below cover message fragmentation, default proposals, peer versions and firewall handling, and each card names the control to review before you change the connection.

IKE message fragmentation

Post-quantum key material makes the IKE_SA_INIT message too large to fragment, because strongSwan documents that fragmentation only protects encrypted messages and IKE_SA_INIT is sent unencrypted. Larger key exchange payloads move into IKE_INTERMEDIATE, which can be fragmented, but fragments are not acknowledged one by one, so losing a single fragment causes all of them to be retransmitted. Check connections.<conn>.fragmentation in swanctl.conf, which defaults to yes, and review charon.fragment_size in strongswan.conf, which defaults to 1280 bytes. Adjust the fragment size only after you confirm fragments are being lost on the path.

swanctl.conf docs

Default ESP proposals widen

Since strongSwan 6.0.2, the default ESP proposals include every supported key exchange method, the same methods proposed for IKEv2. A connection that previously used the default ESP proposal can therefore start offering post-quantum methods on the Child SA without any edit on your side. Set children.<child>.esp_proposals explicitly on both gateways so the Child SA offers exactly the methods you tested, and review the output of swanctl --list-conns after the reload.

Proposals docs

Peer not yet upgraded

A peer that runs an older release, or a vendor gateway that does not implement the RFC 9370 additional key exchanges, may reject a proposal that includes ML-KEM even when your side is configured correctly. The proposal keywords for ML-KEM, such as mlkem768, are only understood when both sides support them, and strongSwan documents that peers must agree on a method for each round unless no algorithms are defined by both. Before the change, confirm the other gateway's version and its support for RFC 9370, and keep a classic-only connection ready for rollback until the peer is confirmed. Ask the peer's vendor for their documented supported proposal list.

RFC 9370 text

Firewalls blocking IP fragments

Some firewalls and path devices drop IP-layer fragments, which causes IKE_AUTH retransmissions even when the gateways are configured correctly. The strongSwan FAQ advises keeping the fragmentation option enabled and checking for FRAGMENTATION_SUPPORTED (FRAG_SUP) in the IKE_SA_INIT log messages, which shows that both peers agreed to fragment. Confirm with your network team that UDP fragments on ports 500 and 4500 pass the firewall in both directions, and do not turn off connections.<conn>.fragmentation to hide the problem. Test with the new settings and watch the logs during the first handshake.

strongSwan FAQ

What do operators ask after they enable post-quantum key exchange on a tunnel?

Does the tunnel stay encrypted while I change the key exchange?

Yes, the change itself does not turn encryption off, but the tunnel is renegotiated, so existing security associations end and new ones form once the peers agree on a proposal. During the change, the IKE_SA_INIT exchange still runs in the clear, as it always has, and the post-quantum material travels in later rounds that are encrypted. Plan for a short interruption while the new SA is built. After the change, confirm the active SA with swanctl --list-sas and check that the expected key exchange is present on both gateways, since a successful negotiation is the only real proof the tunnel is protected.

Is enabling post-quantum key exchange on a VPN urgent?

The sources in this checklist do not state a deadline that applies to your tunnel, so do not treat the change as urgent on the basis of this page alone. Ask your security and compliance owners whether an internal policy, a customer contract or a federal requirement applies to your gateways. The NSA's December 2026 advisory, which applies to national security systems, is a reference point rather than a binding rule for a commercial organization, and any contractual obligation should be confirmed with your legal or procurement team. Use the time to inventory which tunnels use IKEv2 and which gateways support the needed key exchange methods.

Can I keep the classic key exchange in place alongside post-quantum?

Yes, the strongSwan documentation describes adding extra key exchanges after the initial one, so a classic method such as the first exchange can stay in place while a post-quantum round follows it. In strongSwan 6.0.0 and later, the initial exchange runs in IKE_SA_INIT and each added round uses the keX_ prefix, for example x25519-ke1_mlkem768. Keep the classic method first in your proposal so both gateways that do not yet support ML-KEM still have a common starting point. Confirm the exact order and behavior against the strongSwan proposals documentation for your version before you deploy.

What should I do if one side of the tunnel cannot upgrade?

If one peer cannot run a post-quantum method, the tunnel will not agree on a proposal that requires it. Two options exist. The first is to mark the additional round as optional with keX_none, which the strongSwan 6.0.0 announcement describes as making a round explicitly optional, so the tunnel can still come up with the classic exchange. The second is to keep the existing classic-only proposal on that tunnel and schedule the upgrade of the peer. Record which option you chose, because an optional round means the tunnel may fall back without anyone noticing unless you check the active SA.

Why must the proposal match on both gateways?

IKEv2 peers must agree on a key exchange method for each round, and strongSwan documents that peers have to agree on a method for each round unless no algorithms are defined by both. A mismatch in the list of key exchanges, their order or their keywords means no common proposal exists, and the negotiation fails with a proposal error. Check that both gateways list the same keX_ entries in the same order in swanctl.conf, and that the ML-KEM providers are installed on each side. The strongSwan 6.0.0 announcement lists the minimum versions of the ML-KEM providers for botan, wolfssl and openssl, so confirm your builds meet them.

How do I check that the post-quantum exchange actually ran?

Confirm the result on both gateways rather than trusting the configuration file. Run swanctl --list-sas to see the active IKE_SA, then swanctl --list-algs to confirm the ML-KEM algorithm is loaded and see which plugin provides it. Check the installed version with swanctl --version, or swanctl -V on strongSwan 6.0.5 and later. If the SA shows only a classic method, the post-quantum round did not run, and you should recheck the proposal and the optional-round setting before you call the change complete. Keep the output as change evidence.

When should I bring in outside help for a VPN change?

Bring in outside help when the change touches many tunnels, when peers come from different vendors, or when you cannot reproduce a clean negotiation in a test environment. DeployOpen plans, implements, tests and documents self-hosted platforms in your own infrastructure, and can review a tunnel change and prepare the evidence your compliance team asks for. Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts, and a quote follows from that scope. DeployOpen does not issue audit reports or certifications; an independent auditor does that. Ask for a written scope that names which gateways and tunnels are covered.

When a site-to-site change needs outside help

Some site-to-site changes cannot be made by the team that owns the tunnel alone. If a network has many tunnels across several vendors, appliances or managed gateways, the proposal list on each peer may not be editable by you. A managed gateway often exposes only a fixed set of IKEv2 transforms, and an appliance may need a firmware release before it accepts an additional key exchange round at all. Before you schedule any work, inventory every tunnel with its peer, its platform and version, and who controls its configuration. For each peer you cannot change directly, confirm with its vendor whether post-quantum key exchange is offered, which transforms it accepts, and whether the change requires an update. The strongSwan settings in this checklist only apply to gateways you run yourself, so the inventory tells you which tunnels this checklist covers and which need a vendor request.

Regulated environments add a second reason to get help. An auditor or internal risk team will usually want evidence that the change was planned, approved, tested and verified, not only that it works. Keep a record for each tunnel that shows the previous and new proposal lines, the strongSwan version reported by swanctl --version, the output of swanctl --list-algs showing the implementing plugin for each ML-KEM keyword, the change window, and the swanctl --list-sas output taken after the change. Where a vendor controls the peer, ask them in writing for the same evidence about their side. Agree in advance who signs off on each change and what counts as a passing verification, so the record is complete before the tunnel goes live.

DeployOpen can plan, document and carry out these changes inside your environment, including the inventory, the vendor questions, the change runbook, the rollback steps and the verification record. DeployOpen does not issue audit reports, attestations or certifications. Independent auditors and certification bodies make those determinations, and DeployOpen supplies them with the documentation and evidence they request.

How DeployOpen helps plan and verify a post-quantum tunnel change

DeployOpen works through a site-to-site tunnel change in four stages: scope, build, hand over and support. Each stage produces records your network team can review, including the proposal settings, the lab results and the rollback steps for both gateways.

How we scope

  • Confirm which gateway products and versions sit at each end of the tunnel and whether both support the ML-KEM providers listed for your build.
  • Record the current proposals in use, including any default ESP proposals, so the change can be compared against a known starting point.
  • Agree in writing which tunnels, peers and maintenance windows are in scope before any configuration changes begin. Engagements are fixed-scope.

How we build

  • Prepare the additional key exchange proposals (keX_ prefixes) in a lab that mirrors both gateways, and test them against the peer's listed algorithms.
  • Check fragmentation settings and IKE_INTERMEDIATE behavior, since fragments are not individually acknowledged and losing one retransmits them all.
  • Verify the change with swanctl --list-sas, --list-conns and --list-algs on each side, and confirm the loaded plugins match the expected ML-KEM providers.

How we hand over

  • Deliver the final swanctl.conf changes, a record of the tested proposals and the commands used to load and verify each connection.
  • Document the rollback steps for each gateway, including how to restore the previous proposals and reload connections with swanctl --load-conns.
  • Walk your network team through the verification output so they can repeat the checks during later maintenance windows.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer, including re-checks after gateway version changes.
  • Confirm with your gateway vendor and the strongSwan documentation which release fixes or changes your deployment depends on before each upgrade.
  • Retest the tunnel after any upgrade, certificate change or traffic-path change so the verification records stay current.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.