KORTHVEILSecurity firewall
Guides

Path checks: packet size (MTU) and asymmetric paths

Download as PDF All guides

From 1.7.4, Korthveil finds two network problems that are slow to find by hand: a path that carries smaller packets than the port, and a path where replies come back another way.

  • A path that carries smaller packets than the port. Small packets pass and large ones vanish: pages load halfway, a VPN connects but stalls, file transfers hang. It happens behind PPPoE lines, tunnels and some provider links when the "packet too big" answer never comes back.
  • An asymmetric path. The request goes out one way and the reply comes back another, or never passes the firewall at all: with two internet lines, or a second router on the network.

Where: System › Diagnostics › Path checks. Why can't this device connect? also names both for the device you check (guide).

Test the packet size of a port

  1. Open System › Diagnostics and choose Path checks.
  2. Under Interface, pick an internet port or a tunnel, for example wan0 or wg0.
  3. Leave Target empty to test towards a public resolver, or type an address you know answers pings, for example 192.0.2.1 or 2001:db8::1.
  4. Leave Family as it is, or pick IPv4 or IPv6.
  5. Press Test.

The test sends pings that may not be split ("don't fragment"), from the full size of the port down, until it finds the largest that gets through: at most 12 pings, one second each. One test per port and family a minute. It sends packets out of that port, so only administrators can run it, and only when they ask.

The answer:

Result What to do
full size (for example 1500 on a 1500 port) No packet-size problem on that path.
smaller than the interface (for example 1420 on a 1500 port) Set the port's MTU to the path's (on Network), or clamp TCP MSS to the number shown (path MTU minus 40 for IPv4, minus 60 for IPv6; for example 1380). Korthveil already clamps MSS on tunnels to the route's MTU, but a smaller path beyond the first router doesn't lower that.
failed The target didn't answer even small pings: pick a target that answers pings, or check that the port is up and routes there.

The results stay until the firewall restarts and show in the table with when and why they ran.

On a schedule

To test regularly, set a schedule in the settings (it goes through a commit like any change):

configure
set system pathCheck every daily
commit comment "daily path MTU test"

every is hourly or daily. By default every internet port is tested; set system pathCheck interfaces [ wan0 wg0 ] picks ports, and target4 and target6 pick the addresses (for example 192.0.2.1 and 2001:db8::1). IPv6 is tested on ports with a public IPv6 address, or when target6 is set. Without a schedule nothing is ever sent unless you press Test.

Asymmetric paths

The lower panel reads the connection table, the routes and the counters; it sends nothing. It shows:

  • One-way connections: TCP connections with ten or more packets one way and none back. Their replies take another way: a device whose default gateway is another router, or a second line into the network. (A far side that drops replies looks the same.)
  • Replies leaving another port: connections made to one of the firewall's addresses on one port whose replies the routes send out another, typical with two internet lines. The far side drops a reply from an address it never talked to. Add a policy route that sends replies back out the line they came in on.
  • Reverse-path drops: packets the firewall dropped because their source routes back through another port (edge protection's "spoofed source" and the kernel's reverse-path filter). On a network that really has two ways in, exempt that port from the check on Firewall › Edge protection rather than turn the check off.

The same checks elsewhere

  • Command line: diagnose path shows both panels; diagnose path-mtu wan0 runs a test (target 192.0.2.1, ipv4 or ipv6).
  • API: GET /api/v1/diagnose/path, POST /api/v1/diagnose/path-mtu.
  • Remote management (SentinelOps) never runs the packet-size test; its why-connect job only reads.

Download as PDF All guides