Misconfiguration as a Service: Answering undeliverable traffic sensibly

Summary

In February 2026 Lutz Donnerhacke redirects customer traffic to private IPv4 addresses that ends up in the provider network to a dedicated machine and looks at what arrives there. Instead of silently dropping the packets, this machine is meant to answer in a way that calms faulty devices and lets users see what is going wrong. On FreeBSD the necessary address rewriting fails, while on Linux it works with a short nftables rule.

Why the problem exists

RFC 1918 reserves 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 for private networks; these destinations are unreachable on the internet. Second-hand IoT devices, corporate traffic leaking past the VPN or old configurations still send packets there, often several times per second. Lutz Donnerhacke deliberately leaves out 100.64.0.0/10 from RFC 6598, because the provider uses it for its own end customers.

For DNS there is a related, long-established solution: the AS112 servers described in RFC 7534 answer reverse queries for private address ranges that would otherwise burden the responsible authoritative servers in the public DNS. Lutz Donnerhacke's approach carries this idea over to arbitrary protocols.

How the Linux solution works

An nftables rule in the prerouting hook rewrites all packets to private destinations to 127.0.0.2 via DNAT and remembers the mapping; on the way back the kernel restores the original address as the sender. With no services running, the kernel answers by itself: Echo Reply for ping, reset for TCP and Port Unreachable for UDP. nftables is available from Linux 3.13.

Ideas

  • Many devices do not stop on error messages but keep retrying.
  • Traffic to private addresses in a provider network reveals widespread misconfiguration.
  • A catch-all machine can answer this traffic deliberately.
  • Answers must appear to come from the originally requested destination.
  • The kernel answers ping, TCP and UDP correctly even without its own services.
  • Management access to the catch-all machine needs its own filter rule.

Insights

  • Silently dropping can create more load than a clear rejection.
  • Misconfigurations at the customer become an operational problem for the provider.
  • The same function can succeed or fail depending on the packet filter implementation.

Quotes

  • Leider geben sich die meisten Geräte nicht mit Ablehnungen und Fehlermeldungen zufrieden, sondern bestehen auf einer Antwort. (Lutz Donnerhacke; "Unfortunately, most devices are not satisfied with rejections and error messages, but insist on an answer.")

Facts

  • Observed traffic included ping, LDAP, DNS and access to a control console for PV systems.
  • In the state shown, the DNAT rule counted 2,598,458 redirected packets.
  • RFC 6598 reserves 100.64.0.0/10 as Shared Address Space for providers.
  • RFC 7534 describes AS112 servers for reverse queries on private address ranges.

References

Remarks

  • In the comments Lutz Donnerhacke reports that at least the DNS queries dropped noticeably.

Recommendations

  • Filter outgoing traffic to RFC 1918 destinations at your own network edge.
  • As a provider, analyse traffic to private destinations before dropping it.
  • Protect catch-all systems with a dedicated rule for management access.

Read the original article

Search the Web Archive

Found a mistake or have something to add? Get in touch.