Subscribers on the Free (Iliad AS12322) optical network in France frequently encounter an unexpected barrier when configuring remote firewall VPNs or WireGuard peer tunnels on Freebox Ultra, Pop, and Revolution gateways. While Fiber to the Home (FTTH) 10G-EPON connections deliver symmetrical multi-gigabit speeds, the scarcity of public IPv4 addresses led Free to pioneer Mapping of Address and Port with Encapsulation (MAP-E, RFC 7597) in residential deployments. Under this architecture, four distinct subscribers share a single public IPv4 address, each restricted to an isolated quarter of the TCP/UDP port range.

When network administrators configure default WireGuard interfaces bound to UDP port 51820, inbound handshakes drop silently if the subscriber's assigned quadrant lies outside the 49152–65535 boundary. Packets reach the Border Relay gateway but fail to translate, leaving tunnels uninitialized without descriptive error logs. Overcoming this restriction requires mastering MAP-E port allocations, requesting dedicated full-stack IP routing, and tuning WireGuard for low-latency native IPv6 transport.

+---------------------------------------------------------------------------------------+
|          FREEBOX FTTH MAP-E ARCHITECTURE: IPV4 PORT SHARING & WIREGUARD PEERING       |
+---------------------------------------------------------------------------------------+
|                                                                                       |
|  [Public IPv4: 82.64.X.Y] <---+ Shared across 4 Subscribers                           |
|                               |                                                       |
|  +----------------------------+----------------------------------------------------+  |
|  | Quadrant 1: Ports 1 - 16383       | Quadrant 2: Ports 16384 - 32767             |  |
|  | Subscriber A (Default Range)      | Subscriber B                                |  |
|  +-----------------------------------+---------------------------------------------+  |
|  | Quadrant 3: Ports 32768 - 49151   | Quadrant 4: Ports 49152 - 65535             |  |
|  | Subscriber C                      | Subscriber D (Contains WireGuard 51820)     |  |
|  +-----------------------------------+---------------------------------------------+  |
|                                                                                       |
|  [Subscriber A Problem]: Runs WireGuard on Port 51820 -> Outside Assigned Quadrant 1  |
|  Result: Inbound UDP Packets Dropped at Freebox Gateway (Silent Handshake Timeout)     |
|                                                                                       |
|  [SOLUTION PATHS]:                                                                    |
|  1. Rebind WireGuard ListenPort to Assigned Range (e.g., ListenPort = 12450)          |
|  2. Request 'IP fixe V4 pleine' (Full Stack Dedicated IPv4) via Free Subscriber Area   |
|  3. Migrate Tunnel to Native IPv6 Endpoint (2a01:e0a:... / MTU 1420)                  |
+---------------------------------------------------------------------------------------+

Architecture of Freebox MAP-E IPv4 Address Sharing

To comply with ARCEP IPv6 transition mandates while managing acute IPv4 exhaustion, Free transitioned its fixed-line broadband subscriber base from native dual-stack point-to-point links to MAP-E (Mapping of Address and Port with Encapsulation). Under MAP-E, an IPv4 packet is encapsulated inside an IPv6 packet between the customer premises equipment (Freebox CPE) and the ISP Border Relay (BR) router. The public IPv4 address is mathematically partitioned into four disjoint 16-bit port sets using a 2-bit Port Set ID (PSID):

  • First Quarter (PSID 0): Ports 1 to 16,383
  • Second Quarter (PSID 1): Ports 16,384 to 32,767
  • Third Quarter (PSID 2): Ports 32,768 to 49,151
  • Fourth Quarter (PSID 3): Ports 49,152 to 65,535

The subscriber's Freebox gateway receives an algorithmic IPv6 prefix containing the embedded IPv4 address and the assigned PSID. The internal stateful NAT engine inside Freebox OS refuses to forward any external incoming connection whose destination port does not belong to its designated 16,383-port slice. Because standard port forwarding rules in Freebox OS silently reject ports outside this range, administrators attempting to establish firewall servers or remote WireGuard ingress discover that external packets never traverse the NAT table.

While outbound connections remain transparent thanks to source-port translation across the assigned range, inbound peer-to-peer tunnels fail completely unless explicitly configured within the allocated port slice.

Anatomy of the WireGuard UDP Handshake Drop

WireGuard operates statelessly over UDP, relying on a 1-RTT cryptographic handshake initiated by an incoming packet directed at a configured listening port. In canonical deployments across cloud VPS instances and enterprise routers, documentation prescribes listening on UDP port 51820.

Under Freebox MAP-E port sharing, three out of every four subscribers (those assigned PSID 0, 1, or 2) cannot receive inbound UDP datagrams on port 51820. When an external peer transmits a 148-byte WireGuard Initiation message to the subscriber's public IPv4 address on port 51820, the incoming packet arrives at Free's central Border Relay. The router examines the destination IPv4 address and port number. Because port 51820 falls mathematically into Quarter 4 (PSID 3), the Border Relay routes the packet exclusively to Subscriber D's optical line terminal (OLT).

If the initiating tunnel was intended for Subscriber A (who occupies Quarter 1), Subscriber A's Freebox never sees the packet. In the local WireGuard client logs, this failure manifests not as an explicit ICMP Port Unreachable error, but as an endless silent retry loop:

[DEBUG] wireguard: Handshake for peer 1 did not complete after 5 seconds, retrying...
[DEBUG] wireguard: Sending handshake initiation to 82.64.120.45:51820
[DEBUG] wireguard: Handshake timeout, dropping pending packets

Diagnostic tools such as tcpdump executed on the internal home server capture zero incoming packets, confusing operators into diagnosing local firewall misconfigurations or faulty physical Ethernet cabling.

Technical Resolution: Rebinding, Full IPv4 Requisition, and IPv6 Peering

Network engineers operating on Free FTTH networks can resolve port-sharing constraints through three distinct technical workflows, depending on operational requirements.

Method 1: Rebinding WireGuard to the Assigned Port Quarter

An immediate operational fix requires identifying the exact port range assigned to the Freebox gateway and modifying the WireGuard interface configuration accordingly. Operators inspect the assigned range in Freebox OS by navigating to Paramètres de la Freebox > Connexion Internet > État de la connexion.

# /etc/wireguard/wg0.conf (Freebox MAP-E Quarter 1 Bound)
[Interface]
Address = 10.100.0.1/24
# Select a port inside assigned slice 1 - 16383 (e.g., 14520)
ListenPort = 14520
PrivateKey = 2K4E7M9Q1T3V5X7Z9B2D4F6H8J0L2N4P6R8T0V2X4Z=
MTU = 1420

[Peer]
PublicKey = 8H2J4L6N8P0R2T4V6X8Z0B2D4F6H8J0L2N4P6R8T0V=
AllowedIPs = 10.100.0.2/32

In Freebox OS, navigate to Gestion des ports > Redirection de ports and create a redirect forwarding incoming UDP traffic on port 14520 to the internal LAN IP of the WireGuard server. Remote peers must update their Endpoint = 82.64.X.Y:14520 directive to complete the handshake.

Method 2: Requesting Dedicated Full-Stack IPv4 (IP fixe V4 pleine)

For infrastructure requiring standard port assignments (such as IPsec, DNS on port 53, or multi-tunnel aggregation), Free provides a complimentary option to request a full IPv4 address:

  1. Log into the official Espace Abonné Freebox portal.
  2. Navigate to Ma Freebox > Demander une adresse IP fixe V4 pleine.
  3. Confirm the request. Within 30 minutes, Free reprovisions the line, assigning a dedicated IPv4 address with unrestricted access to all 65,535 ports.
  4. Reboot the Freebox gateway to terminate the MAP-E encapsulation tunnel and restore full dual-stack routing.

Method 3: Native IPv6 WireGuard Transport

Because Free assigns every subscriber a static /60 IPv6 prefix (providing 16 distinct /64 subnets), tunneling over native IPv6 eliminates IPv4 NAT and MAP-E altogether. WireGuard encapsulates encrypted payloads identically across IPv4 and IPv6:

# /etc/wireguard/wg0-v6.conf
[Interface]
Address = 10.100.0.1/24, fd00:cafe::1/64
ListenPort = 51820
PrivateKey = 2K4E7M9Q1T3V5X7Z9B2D4F6H8J0L2N4P6R8T0V2X4Z=

[Peer]
PublicKey = 8H2J4L6N8P0R2T4V6X8Z0B2D4F6H8J0L2N4P6R8T0V=
AllowedIPs = 10.100.0.2/32, fd00:cafe::2/128
# Point directly to the Freebox host IPv6 address
Endpoint = [2a01:e0a:123:4560::10]:51820

In Freebox OS firewall settings, enable incoming IPv6 pinholing for UDP port 51820 toward the server's global IPv6 address. This achieves maximum wire-speed throughput without intermediary NAT translation.

Performance Benchmark & Enterprise Integration with VPNRice

Establishing encrypted network tunnels across residential French fiber infrastructures demands rigorous MTU tuning to prevent packet fragmentation. Because MAP-E adds IPv6 encapsulation overhead (40 bytes), nesting WireGuard inside IPv4 within MAP-E can reduce the effective Path MTU to 1420 or 1380 bytes. Setting MTU = 1420 in WireGuard configurations ensures clean packet delivery without ICMP packet-too-big blackholes.

VPNRice provides automated, carrier-aware tunneling architectures that seamlessly navigate complex ISP environments like Freebox MAP-E. With native dual-stack intelligence, VPNRice dynamically benchmarks latency across IPv4 and IPv6 endpoints, automatically routing traffic over the optimal unencumbered path.

With RiceGuard kernel acceleration modules, enterprise remote workers and homelab engineers using Freebox connections experience minimal latency overhead, zero packet loss, and robust failover. Whether managing complex port-sharing topologies in France or optimizing global multi-cloud mesh networks, VPNRice delivers the security, resilience, and speed required for mission-critical digital connectivity.