How to Find the Right MTU for a PPPoE Fibre Connection
Find the largest packet your PPPoE fibre line carries with a don't-fragment ping, then set MTU and MSS clamping to match. Windows, Linux and OPNsense.
The right MTU for a PPPoE fibre connection is the largest packet that crosses your line without being fragmented. You find it with a ping that’s forbidden to fragment, starting big and stepping down until it gets through. That payload size plus 28 bytes is your MTU. On most PPPoE lines the answer is 1492, but not all: on one 1 Gbps business line I tested, it was 1480, and assuming 1492 would have caused exactly the kind of fault that’s hardest to pin down.
Why PPPoE lowers the MTU
Ethernet carries packets of up to 1500 bytes. PPPoE wraps each packet in an 8-byte header (6 bytes of PPPoE plus 2 bytes of PPP), and those 8 bytes have to fit inside the same 1500, which leaves 1492 for your traffic.
Some providers carry PPPoE sessions through further tunnels inside their own network, and each one takes a few more bytes. Others support RFC 4638, which raises the Ethernet MTU to 1508 bytes so PPPoE can carry a full 1500. Neither is visible from your side, which is why you measure instead of assuming.
The symptoms of a wrong MTU
A too-large MTU rarely breaks everything. It breaks things selectively, which is what makes it hard to diagnose:
- Some websites load and others hang partway, or never get past a blank page.
- Small requests work, while large downloads or uploads stall.
- VPN tunnels connect but freeze when real traffic starts.
- Email with attachments times out while plain messages go through.
Normally, a router that can’t forward a big packet tells the sender with an ICMP message, and the sender shrinks its packets. When a firewall somewhere drops those messages, the large packets just disappear. That’s a path MTU “black hole”. RFC 2923 describes the pattern exactly: pings and small requests work, and a transfer hangs at its first large packet. A correct MTU and MSS on your own router avoids it.
Test the largest packet that gets through
Run these from a wired computer behind the router. The number you give ping is the payload; add 28 bytes (20 for the IPv4 header and 8 for the ICMP header) to get the packet size.
Windows (PowerShell or Command Prompt):
ping -f -l 1472 1.1.1.1
-f sets “don’t fragment” and -l is the payload size. A payload of 1472 makes a 1500-byte packet, so on PPPoE this should fail with Packet needs to be fragmented but DF set.
Linux:
ping -M do -s 1472 -c 3 1.1.1.1
macOS, and the OPNsense shell (FreeBSD):
ping -D -s 1472 -c 3 1.1.1.1
Recent macOS versions don’t always honour -D. If every size gets through on a Mac, repeat the test from Windows, Linux or the OPNsense shell.
Now step the payload down until replies come back:
| Payload | Packet size | What it tells you |
|---|---|---|
| 1472 | 1500 | Only works with RFC 4638 (or no PPPoE at all) |
| 1464 | 1492 | Standard PPPoE |
| 1452 | 1480 | The line I tested topped out here |
| 1432 | 1460 | Common where there’s extra tunnelling |
Once you find a size that works, try a few bytes larger to find the exact edge. The largest payload that gets replies, plus 28, is your MTU. On the line above, 1452 worked and 1453 didn’t, so the MTU was 1480.
A reply that never comes back looks the same as a packet that was too big. If even small pings time out, the target is ignoring ICMP; pick another.
Set the MTU and MSS in OPNsense
OPNsense handles a PPPoE WAN in a way that catches people out: the MTU field on the WAN interface sets the parent network port, and the PPPoE link gets that value minus 8. Leave it empty and the PPPoE link uses 1492. So entering your measured 1480 there would give a 1472 link.
To set a PPPoE MTU of 1480, do one of these:
- Set the link itself: under Interfaces > Devices > Point-to-Point, edit the PPPoE link, select Show advanced options, and set the MTU under the link parameters to 1480. This overrides the calculation, and is the clearest option.
- Or set the parent: in the WAN interface’s settings, enter your MTU plus 8, so 1488 for a 1480 link. (The Interfaces > [WAN] page has these fields and shows the calculated PPP MTU next to them. OPNsense 26.7 also has them in the edit dialog under Interfaces > Assignments.)
Then the MSS field, in the same WAN settings. This clamps the maximum segment size of TCP connections passing through, and in OPNsense you enter an MTU here, not an MSS: the firewall subtracts 40 bytes for IPv4 and 60 for IPv6 itself. So enter 1480 for a 1480 line, and TCP connections are clamped to 1440 over IPv4 and 1420 over IPv6.
Save, apply, and reconnect the PPPoE session.
OPNsense’s PPPoE client also clamps TCP connections to the link’s MTU on its own by default, which is one more reason to get the link MTU right. The MSS field is still worth setting: it applies the same limit in the firewall, for IPv6 as well.
Full 1500 over PPPoE: if your provider supports RFC 4638 and you measured 1500, set the WAN’s MTU to 1508, as OPNsense’s documentation describes. The PPPoE link then gets 1500, and OPNsense asks the provider for it automatically. The network port has to support slightly larger frames for this.
On other routers, look for “MTU” on the WAN or PPPoE page and “MSS clamping” (sometimes “TCP MSS fix”), and check the help text: some take the MTU, some the MSS itself, which is MTU minus 40.
Why MSS clamping matters as much as the MTU
Setting the MTU only tells the router how big its own outgoing packets may be. Computers behind it still think in 1500-byte terms, and they rely on those ICMP “too big” messages to find out otherwise. MSS clamping fixes this at the start of every TCP connection: the router rewrites the maximum segment size both ends announce, so neither side ever sends a packet that won’t fit. It’s the reason a correctly set router keeps working even when a remote network blocks ICMP.
Don’t forget IPv6
IPv6 routers never fragment packets. They rely entirely on “packet too big” messages reaching the sender, so make sure your firewall lets ICMPv6 through. OPNsense allows the necessary ICMPv6 types by default; custom rules sometimes block them by accident.
To test IPv6, add 48 bytes instead of 28 (a 40-byte IPv6 header plus 8 bytes of ICMPv6). On a 1480 line, the largest IPv6 ping payload is 1432. Windows can’t forbid fragmentation for IPv6 pings, so use Linux:
ping -6 -M do -s 1432 -c 3 2606:4700:4700::1111
Check it worked
- The largest don’t-fragment ping succeeds at your MTU minus 28, and fails one byte above.
- The sites and VPNs that hung before now load and stay up.
- A large download runs at full speed and doesn’t stall partway through.
If you’re chasing packet loss rather than odd stalls, an MTU problem usually isn’t it. That needs a ping graph over time, hop by hop, which is what pingrail is for.