A post-quantum tunnel inside an existing IPsec VPN is a second, quantum-resistant encrypted tunnel that carries site-to-site traffic through, or around, the classical IPsec tunnel a firewall already builds with IKEv2 (RFC 7296). The aim is to protect today’s traffic from later decryption by a quantum computer without first replacing the firewalls.
For operators of OT and critical infrastructure, this layered approach is attractive because firewalls at substations, pumping stations or plant sites are often hard to touch. This article explains how nesting works, what it really adds, what it costs in overhead, and how to run two layers without losing control of troubleshooting.
Can I add a post-quantum tunnel on top of my existing firewall site-to-site VPN?
Yes. A separate quantum-safe gateway at each end can wrap or be wrapped by the firewall’s IPsec tunnel, and the main design decision is placement, because placement determines whether the firewall can still inspect traffic.
Nested tunnels are not new to IPsec. The original IPsec architecture already described iterated tunneling, and noted that nested tunnels can also occur where neither the source nor the destination endpoints of any of the tunnels are the same. That is exactly the situation when a dedicated post-quantum gateway sits next to a firewall that keeps its own IPsec peerings.
Placement A: post-quantum gateway on the LAN side (post-quantum tunnel inside IPsec)
The gateway encrypts traffic before it reaches the firewall. The firewall then wraps those already-encrypted packets in its own IPsec tunnel. This is the literal “post-quantum tunnel inside existing IPsec VPN” layout. The catch: the firewall now sees only ciphertext between the two gateways, so application-level inspection on that path is lost.
Placement B: post-quantum gateway on the WAN side (IPsec inside the post-quantum tunnel)
The firewall inspects cleartext from the LAN, applies its policy, builds its IPsec tunnel, and the post-quantum gateway then encrypts the IPsec packets. Inspection is preserved. For example, a QPN gateway from Quantum Network is designed to go in front of the existing firewall when that firewall has to keep inspecting traffic, and behind it when inspection is not needed on that path. It is integrated by adding or adapting a few routes rather than by replacing network equipment.
| Aspect | A: gateway behind firewall | B: gateway in front of firewall |
|---|---|---|
| Firewall inspection of site-to-site traffic | Lost on that path | Preserved |
| Which tunnel is outermost on the internet | Classical IPsec | Post-quantum tunnel |
| Routing changes | Route remote subnets to the gateway on the LAN | Point the firewall’s WAN next hop at the gateway |
| Typical fit | Paths with no inspection requirement | OT segments where the firewall enforces protocol policy |
A third option is a single upgraded tunnel. RFC 9370 lets IKEv2 run additional key exchanges, typically, one classical (EC)DH and the other one post-quantum algorithm. To do this, seven new Transform Types are defined. If your firewalls support RFC 9370 with ML-KEM, upgrading in place avoids nesting altogether. Many installed OT firewalls do not, which is why layering is common.
Does double encryption with a classical and a post-quantum tunnel add real security?
The post-quantum layer adds real protection against “harvest now, decrypt later” collection. The classical layer adds defence in depth against flaws in one implementation, but only if the two layers are truly independent.
The quantum risk in an IPsec VPN sits mainly in key establishment, not in the symmetric cipher. NIST’s timeline makes the deadline concrete:
- NIST IR 8547 (2026): quantum-vulnerable algorithms such as DH and MQV are deprecated after 2030 and disallowed after 2035 under NIST standards.
- Executive Order 14412 (NIST, 2026): the order requires federal high-value assets and high-impact systems to migrate by 2030 for key establishment and 2031 for digital signatures.
Wrapping a classical IPsec tunnel in a second classical tunnel does nothing against a future quantum adversary: both key exchanges fall to the same attack. The protection comes from the post-quantum layer. Most quantum-safe gateways use a hybrid key agreement themselves, which follows the same reasoning as RFC 9370. Its authors write that combining exchanges means “the overall security is at least as strong as each individual primitive.”
The classical outer or inner tunnel then serves a different purpose: implementation diversity. This is the reasoning behind the NSA’s Commercial Solutions for Classified program, whose Capability Packages, including the NSA CSfC Multi-Site Connectivity Capability Package, specify how to layer commercial technologies for protecting National Security Systems (NSS) data. The program rests on the principle that “properly configured, layered solutions can provide adequate protection of classified data”.
How much overhead and throughput loss does a nested tunnel cause?
Each layer adds its own headers to every packet and its own encryption pass. The practical cost is usually smaller effective MTU and fragmentation risk, not raw cipher speed.
- Per-packet header cost (IETF, 2022): the IETF IP-TFS comparison counts an IP+ESP overhead of 54 octets for a conventional IPsec tunnel. A nested design pays that plus the overhead of the second tunnel on every packet.
The bigger operational problem is MTU. NIST SP 800-77r1 explains that path MTU problems are often triggered because of the extra overhead of the ESP header making each 1500-byte original packet larger than 1500 bytes after the ESP header is added. It warns: “Similar problems can occur when tunnels are within other tunnels so that packets are encapsulated multiple times.” The recommended fixes still apply: TCP MSS clamping can be used on both IPsec endpoints to ensure that TCP sessions will use a lower MTU that prevents fragmentation.
Practical points for OT links:
- Small-packet traffic barely notices. Polling protocols and telemetry use small frames, so header growth rarely pushes them past the MTU. Bulk transfers such as historian replication, firmware distribution and backups are where fragmentation hurts.
- Handshake size is a separate issue. Post-quantum public keys and ciphertexts are large. An IETF CNSA 2.0 IPsec profile notes that ML-KEM-1024 in the first IKEv2 message would cause the initiator and responder messages to exceed the typical path MTU and necessitate in IP-level fragmentation. Links that drop fragments, such as some cellular and satellite paths, need testing.
- Throughput is capped by the slowest layer. Measure the firewall’s IPsec throughput and the gateway’s throughput separately, then together. Also measure latency under load, because each extra encryption hop adds a small delay.
- Test with real payloads. SP 800-77r1 notes that if a connection works for simple ping commands but not when an application is trying to use the IPsec connection, the cause is most likely due to broken path MTU discovery.
Should I keep or remove the old firewall VPN after adding a quantum-safe gateway?
Decide per path. Keep the classical layer where independent defence in depth or inspection placement justifies the extra overhead. Remove it, or turn it into a manual-only fallback, where simplicity matters more and automatic fallback would quietly downgrade protection.
| Option | Benefit | Cost or risk |
|---|---|---|
| Keep both layers permanently | Implementation diversity in the spirit of layered CSfC designs | Two stacks to patch, two MTU budgets, two sets of logs |
| Keep firewall VPN only as automatic failover | Availability if the post-quantum path fails | Failover traffic falls back to classical key exchange only, which removes the quantum protection without anyone noticing |
| Keep firewall VPN as manual, logged fallback | Availability with a deliberate, recorded decision | Requires an operating procedure and alerting |
| Remove the firewall VPN on that path | Simplest troubleshooting, larger effective MTU | Single implementation; firewall must still enforce policy on cleartext |
The failover row deserves attention in OT. A gateway that never falls back to unencrypted traffic and retries on its own after a line failure is designed to avoid silent exposure, but routing around it to a classical-only tunnel can still undo the protection. If your routing protocol or SD-WAN policy can prefer the old VPN when the new path flaps, document that choice and alert on it.
NIST’s guidance points the same way for planning: organizations must identify where vulnerable algorithms are used and plan to replace or update them. A classical VPN that remains in place should appear in that inventory with a retirement date.
How do nested tunnels affect troubleshooting, logging and rekey timing?
Nesting doubles the number of security associations, log sources and timers. Most problems become manageable once you troubleshoot strictly layer by layer and make sure the timers of the two layers do not work against each other.
Troubleshooting by layer
Always work outside-in. First confirm the outermost tunnel is up and passing traffic, then the inner tunnel, then the application. Keep a diagram per site that shows which device terminates which layer, the inner and outer addresses, and the expected MTU at each point. Packet captures on the LAN side of each device show whether a packet died before or after encapsulation.
Logging
The firewall logs IKEv2 and ESP events; the post-quantum gateway logs its own handshakes and tunnel state. Without a common time source, correlating them is guesswork, so synchronise both devices to the same NTP source. Note that some quantum-safe gateways deliberately send no telemetry and have no cloud dependency. Plan how their local logs are collected inside your own monitoring, especially in air-gapped OT networks.
Rekey timing
In IKEv2 (RFC 7296), each peer rekeys according to its own lifetime policy, and the two layers rekey independently. A post-quantum gateway may rekey far more often than a firewall: QPN, for instance, renews both its classical and post-quantum handshakes every two minutes. That is not a problem in itself, but two interactions need attention:
- Liveness timers. If the outer tunnel drops briefly during its own rekey or a line hiccup, the inner layer may declare its peer dead. Set dead-peer detection on the inner layer so it tolerates the outer layer’s normal recovery time, otherwise you get flapping that looks like a fault in the wrong device.
- Handshake packets across the other layer. In placement A, large post-quantum handshake messages travel inside the firewall’s ESP tunnel and are subject to its reduced MTU. Verify that handshakes succeed at the clamped MTU, not just data packets.
What is a sensible rollout sequence for OT and critical infrastructure sites?
Start with one non-critical site pair, prove MTU and failover behaviour, then roll out per path class rather than per site.
- Inventory every site-to-site, edge-to-cloud and remote-access path and note which ones carry data that must stay confidential beyond 2030.
- Choose placement per path based on whether the firewall must keep inspecting that traffic.
- Pilot one path: measure throughput, latency and effective MTU with both layers, and apply MSS clamping.
- Decide explicitly whether the classical VPN stays as a layer, a manual fallback, or is removed, and write it down.
- Add both devices to NTP, log collection and change management before scaling out.
Where Quantum Network fits
Quantum Network is a quantum-safe encryption gateway that protects the connections between your own locations, without replacing the network equipment you already run.

Skip to content