France possesses one of the most technologically advanced and fiber-dense telecommunications markets in Europe. Driven by proactive regulatory frameworks from ARCEP, French operators rapidly expanded residential IPv6 adoption to exceed 85% across fixed access lines. However, the architectural history of this transition created an enduring technical anomaly. In the late 2000s, Free Telecom (Free SAS, AS1221) pioneered and standardized IPv6 Rapid Deployment (6rd, RFC 5969) to deliver native-feel IPv6 prefixes across their legacy IPv4 subscriber aggregation infrastructure without waiting for complete hardware upgrades across their metro routing nodes.

While 6rd enabled Free and later Bouygues Telecom (AS5410) to deliver /60 and /64 IPv6 allocations to millions of Freebox subscribers years ahead of global competitors, it introduced an architectural trade-off that plagues modern high-performance VPNs. Because 6rd encapsulates IPv6 packets directly inside 20-byte IPv4 outer headers, the Maximum Transmission Unit (MTU) of the subscriber WAN interface is artificially constrained from the standard 1500 bytes down to 1480 bytes. When remote software engineers, enterprise branch offices, or gamers establish Layer 3 WireGuard tunnels over these connections, improper MTU sizing and silent Path MTU Discovery (PMTUD) blackholing cause catastrophic packet loss, stalled TLS handshakes, and erratic throughput degradation.

+-------------------------------------------------------------------------------+
|         FRENCH ISP 6RD PACKET ENCAPSULATION & MTU HEADROOM EXHAUSTION         |
+-------------------------------------------------------------------------------+
|                                                                               |
|  [Standard Physical Ethernet Frame: 1500 Bytes MTU]                           |
|  +-------------------------------------------------------------------------+  |
|  |  Standard L2 Frame Payload (1500 B)                                     |  |
|  +-------------------------------------------------------------------------+  |
|                                                                               |
|  [Freebox 6rd Subscriber Uplink: 1480 Bytes Native IPv6 MTU]                  |
|  +--------------------+----------------------------------------------------+  |
|  | IPv4 Header (20 B) | IPv6 6rd Payload (Max 1480 Bytes)                  |  |
|  +--------------------+----------------------------------------------------+  |
|                                                                               |
|  [Miscalibrated WireGuard over 6rd: MTU Exceeded (1420 + 80 = 1500 B)]        |
|  +--------------------+--------------------+------------+------------------+  |
|  | Outer IPv4 (20 B)  | IPv6 Header (40 B) | UDP (8 B)  | WG Data (1420 B) |  |
|  +--------------------+--------------------+------------+------------------+  |
|  Total WireGuard Frame = 1508 Bytes  ===>  EXCEEDS 1500 B WAN MTU!            |
|                                                                               |
|  [Result: Intermediate Routers Drop Packet / ICMPv6 Type 2 Code 0 Filtered]   |
|  ===> Silent PMTUD Blackhole: HTTPS Hangs, Git Stalls, SSH Keystrokes Pass    |
|                                                                               |
+-------------------------------------------------------------------------------+

Freebox 6rd Architecture & The 1480-Byte MTU Bottleneck

The 6rd protocol operates as a stateless tunneling mechanism that treats the operator's IPv4 routing fabric as a link layer for IPv6.

1. The 6rd Encapsulation Mechanism

When a subscriber's Freebox router (such as a Freebox Pop, Delta, or Ultra) receives an outbound IPv6 packet destined for an external server, it encapsulates the packet within an IPv4 wrapper. The destination IPv4 address is dynamically extracted from the upper bits of the destination IPv6 address or routed to a centralized 6rd Border Relay (BR):

 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|Version|  IHL  |Type of Service|          Total Length         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|         Identification        |Flags|      Fragment Offset    |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|  Time to Live | Protocol = 41 |           Header Checksum     |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                       Source IPv4 Address                     |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                    Destination IPv4 Address                   |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                                                               |
+                   Inner IPv6 Header (40 Bytes)                +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                     TCP / UDP / WireGuard Payload             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

As specified in RFC 5969, the IPv4 outer header consumes exactly 20 bytes (using IP protocol number 41: IPv6 encapsulation). Because the physical DSL or GPON carrier frame provides a standard MTU of 1500 bytes:

$$\text{MTU}_{\text{6rd}} = 1500\text{ bytes} - 20\text{ bytes} = 1480\text{ bytes}$$

Consequently, any native IPv6 interface provisioned behind a Freebox advertises a maximum MTU of 1480 bytes via ICMPv6 Router Advertisements (RA).

2. The WireGuard Encapsulation Stack Calculation

When an end-user client or home gateway launches a WireGuard tunnel routed over this 6rd IPv6 network, additional cryptographic and transport headers are added:

  • Outer Transport IPv6 Header: 40 bytes.
  • Outer UDP Header: 8 bytes.
  • WireGuard Encapsulation Overhead: 32 bytes (Type [4], Receiver Index [4], Counter [8], Poly1305 MAC [16]).
  • Total WireGuard Overhead: $40 + 8 + 32 = 80\text{ bytes}$.

If the client operating system uses the standard WireGuard default MTU of 1420 bytes (designed for 1500-byte links: $1500 - 80 = 1420$), the resulting wire frame size totals:

$$\text{Total Frame} = 1420\text{ (inner MTU)} + 80\text{ (WG overhead)} + 20\text{ (6rd IPv4)} = 1520\text{ bytes}$$

Because 1520 bytes exceeds the physical 1500-byte boundary, the packet cannot be transmitted over the physical interface without fragmentation.

Path MTU Discovery Failures & WireGuard Packet Blackholing

In an ideal networking environment, oversized packets trigger Path MTU Discovery (PMTUD, RFC 8201). The Freebox or edge router encountering an oversized packet should generate an ICMPv6 Type 2 (Packet Too Big, Code 0) control message containing the Next-Hop MTU (1480 or 1400 bytes), prompting the sender to downscale its transmission size.

1. The Anatomy of PMTUD Blackholing

In real-world carrier deployments across France, PMTUD frequently fails due to pervasive transit filtering:

  1. Aggressive Firewalls and Middleboxes: Many consumer routers, carrier NATs, and cloud security groups indiscriminately drop all inbound ICMP and ICMPv6 messages under the mistaken assumption that blocking ping enhances security.
  2. Asymmetric Return Path Drops: Because the return path of ICMPv6 control messages often traverses transit providers different from the data path, rate-limiters or anti-spoofing filters drop the notifications before they reach the client endpoint.
  3. WireGuard UDP Statelessness: WireGuard operates purely over Layer 4 UDP. The Linux kernel's WireGuard implementation (wireguard.ko) sets the Don't Fragment (DF) bit on outer IPv4 headers and relies on ICMP feedback. When ICMP messages are discarded in transit, the sender never learns that its packets were dropped.

2. Observable Symptoms in Production

This failure mechanism creates an insidious "black hole" condition:

  • Interactive Sessions Function Normally: Lightweight packets like DNS queries, NTP time synchronizations, and interactive SSH keystrokes remain below 500 bytes and traverse the tunnel without packet loss.
  • Bulk Data Transfers Stall Completely: As soon as an application initiates a large data burst—such as downloading an HTTPS payload containing an SSL certificate chain, executing a git push, or streaming video—the TCP window expands, sending full-size Maximum Segment Size (MSS) frames. These frames exceed 1480 bytes, are dropped at the 6rd boundary, and trigger endless TCP retransmissions until the connection times out.
+-------------------------------------------------------------------------------+
|         EDGE ROUTER WIREGUARD MTU OPTIMIZATION & TCP MSS CLAMPING             |
+-------------------------------------------------------------------------------+
|                                                                               |
|  [LAN Devices / Workstations / Smart Home (VLAN 10)]                          |
|            |                                                                  |
|            | Standard Ethernet MTU = 1500 (TCP MSS = 1460)                    |
|            v                                                                  |
|  +-------------------------------------------------------------------------+  |
|  |                 LINUX EDGE GATEWAY / OPENWRT ROUTER                     |  |
|  |                                                                         |  |
|  |  * WireGuard Client (wg0): MTU = 1400 (Explicit Overhead Headroom)      |  |
|  |  * nftables Rule: Clamps TCP SYN MSS to exactly 1360 bytes              |  |
|  |  * Drops no ICMPv6 Type 2; Maintains path transparency                 |  |
|  +-------------------------------------------------------------------------+  |
|            |                                                                  |
|            | Encapsulated UDP Packets (Max 1480 Bytes on Wire)                |
|            v                                                                  |
|  [Freebox / Bouygues 6rd Gateway (WAN MTU = 1480)]                            |
|            |                                                                  |
|            | 6rd Encapsulated Transit: 1480 B + 20 B IPv4 = 1500 B Line Rate  |
|            v                                                                  |
|  [Remote VPNRice Endpoint / Cloud Bastion: Zero Packet Loss / Full Speed]     |
|                                                                               |
+-------------------------------------------------------------------------------+

Router-Level TCP MSS Clamping & nftables Optimization

The most robust architectural solution for French broadband subscribers operating home routers behind a Freebox is enforcing TCP Maximum Segment Size (MSS) Clamping at the gateway.

Rather than modifying the network configuration of every smartphone, laptop, and IoT appliance on the local network, the edge gateway rewrites the TCP MSS option negotiated during the initial three-way TCP handshake (SYN and SYN-ACK packets), forcing all communicating hosts to restrict their payload sizes to fit comfortably within the 6rd MTU.

1. Calculating the Perfect MSS Value

For a 6rd WAN connection with an MTU of 1480 bytes running WireGuard:

  • WireGuard Inner MTU: $1480 - 80\text{ (WG overhead)} = 1400\text{ bytes}$.
  • Standard TCP/IPv4 Overhead: 20 bytes (IP) + 20 bytes (TCP) = 40 bytes.
  • Optimal TCP MSS (IPv4): $1400 - 40 = \mathbf{1360\text{ bytes}}$.
  • Optimal TCP MSS (IPv6): $1400 - 60 = \mathbf{1340\text{ bytes}}$.

2. Production nftables Ruleset for Linux and OpenWrt

Deploy the following nftables policy on the edge gateway to clamp TCP MSS dynamically to the path MTU and permit unhindered ICMPv6 discovery:

table inet router_mangle {
    chain forward {
        type filter hook forward priority mangle; policy accept;

        # Clamp TCP MSS for all traffic leaving via the WireGuard interface (wg0)
        # Clamps IPv4 TCP MSS to 1360 bytes
        oifname "wg0" tcp flags syn tcp option maxseg size set 1360

        # Clamps IPv6 TCP MSS to 1340 bytes
        oifname "wg0" meta nfproto ipv6 tcp flags syn tcp option maxseg size set 1340

        # Auto-clamp based on interface MTU for dynamic flexibility
        oifname "wg0" tcp flags syn tcp option maxseg size set rt mtu - 40
    }

    chain input {
        type filter hook input priority filter; policy drop;

        # Accept established sessions
        ct state established,related accept
        ct state invalid drop

        # CRITICAL: Allow all ICMPv6 Packet Too Big and discovery messages
        icmpv6 type { destination-unreachable, packet-too-big, time-exceeded, parameter-problem } accept
        icmpv6 type { echo-request, echo-reply, nd-router-solicit, nd-router-advert, nd-neighbor-solicit, nd-neighbor-advert } accept

        # Accept loopback traffic
        iifname "lo" accept

        # Permit WireGuard inbound transport on listening port
        iifname "eth0" udp dport 51820 accept
    }
}

Calibrating WireGuard Endpoints for Double Encapsulation Resilience

When configuring WireGuard clients directly on personal laptops, mobile devices, or dedicated gateway instances connected to a Freebox or Bouygues 6rd subscriber line, the interface configuration file must explicitly define the downscaled MTU.

1. Client-Side WireGuard Configuration File

Update the client configuration (wg0.conf) with calibrated MTU parameters:

[Interface]
# Internal cryptographic VPN address
Address = 10.200.80.2/24, fd00:cafe:80::2/64
PrivateKey = U1NUR1NlY3VyZUZyZWVib3hLZXlGcmFuY2UyMDI2MTExMg==
DNS = 10.200.80.1

# Explicit MTU calibrated for French 6rd WAN encapsulation (1480 - 80 = 1400)
MTU = 1400

[Peer]
# VPNRice Dedicated European Edge Gateway (Paris / Roubaix Datacenter)
PublicKey = Q0VOVFJBTE9QRVJBVE9SU0NBREFBVVRIRU5USUNBVEVEMTI=
PresharedKey = U0NSSVQwUEFDVE9SQUxTRUNVUkVEUEtFWUVYQU1QTEUxMjM=
Endpoint = 195.154.120.45:51820

# Encapsulate all user traffic through the secured tunnel
AllowedIPs = 0.0.0.0/0, ::/0

# Prevent carrier NAT state timeouts across Freebox aggregation nodes
PersistentKeepalive = 25

2. Operational Verification and Throughput Validation

After deploying the calibrated MTU and MSS clamping rules, network operators should verify path integrity using low-level packet tracing:

  1. Verify No-Fragmentation Ping: Execute an ICMP ping specifying the Don't Fragment bit and an exact payload size:
    ping -M do -s 1372 -c 4 10.200.80.1
    
    A payload of 1372 bytes plus 28 bytes of ICMP/IP headers equals exactly 1400 bytes, validating that packets transit the WireGuard interface without fragmentation.
  2. Validate HTTPS TLS Handshakes: Test a large TLS certificate exchange using curl:
    curl -Iv --interface wg0 https://vpnrice.com
    
    Observe the TLS Server Hello and Client Key Exchange; with MSS clamped to 1360 bytes, the multi-packet certificate chain arrives without stalls or packet retransmissions.
  3. Bridge Mode Consideration: For high-throughput power users, toggling the Freebox into Bridge Mode shifts PPPoE/DHCP termination directly to a dedicated pfSense, OPNsense, or OpenWrt gateway, simplifying MTU management and providing fine-grained control over 6rd decapsulation.

By addressing the specific 1480-byte encapsulation overhead of French 6rd deployments through disciplined MTU budgeting, dynamic TCP MSS clamping, and unblocked ICMPv6 signaling, subscribers eliminate PMTUD blackholes and restore line-rate throughput across all WireGuard connections.

Get VPNRice.