feat: icmp-pmtud-blocked smell — blocking ICMP wholesale black-holes PMTUD (v1.25.0) - #38
Merged
Merged
Conversation
…PMTUD (v1.25.0) The IPv4 sibling of icmpv6-blocked, scoped to ICMP type 3 (fragmentation- needed). Two triggers, one id: the classic '-p icmp -j DROP' block-ping rule with no covering accept above it, and a deny-posture chain that accepts real traffic but never ICMP. RELATED-state accepts silence it (conntrack passes the errors); ESTABLISHED alone does not. Empty deny-posture FORWARD chains (non-routers) are exempt — no traffic, no black hole. New sample trips both variants; 33 → 34 smells. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
New linter smell
icmp-pmtud-blocked(warning) — the IPv4 sibling oficmpv6-blocked, scoped to the one message IPv4 genuinely cannot live without: ICMP type 3 (destination-unreachable, whose code 4 is fragmentation-needed). TCP sets DF on every segment and relies on routers answering "too big"; a firewall that swallows that message turns any smaller-MTU path (VPN, PPPoE, tunnels) into a black hole — the handshake passes, full-size payloads vanish, connections hang.Two triggers, one id
-p icmp -j DROP"block ping for security" rule with no covering accept above it. Order matters: the same drop below the conntrack RELATED accept is fine and stays quiet.Deliberately quiet
--icmp-type echo-request— blocking ping alone doesn't hurt PMTUD.FORWARD DROPwith no accepts passes no traffic whose PMTUD could break — correct config, not a black hole (this guard keeps every flagship sample clean).before.rulesaccepts dest-unreach invisibly) and ip6tables (the twin's job); nftables only forip/inetfamilies.Wiring
npm run lintclean.🤖 Generated with Claude Code