Firewall FAQ: Security is a maintained concept

Summary

Lutz Donnerhacke's FAQ for the newsgroup de.comp.security.firewall answers the questions newcomers kept asking there. By its definition, a firewall is an organisational and technical concept for separating network zones, together with its correct implementation and ongoing maintenance. The FAQ clears up misconceptions about NAT, desktop firewalls, port scans and blocked ICMP.

Why blocked ICMP breaks connections

The FAQ explains a problem admins still run into today. Path MTU Discovery as defined in RFC 1191 from 1990 sends packets with the Don't Fragment bit set. If a packet does not fit along the way, the router reports the permitted size back via ICMP "fragmentation needed". Anyone who drops ICMP across the board throws away exactly this message: small packets arrive, large ones vanish, and the connection hangs.

This matters even more for IPv6, because under RFC 8200 only the source fragments, not the router. RFC 4890 from 2007 therefore lists "Packet Too Big" among the ICMPv6 messages a firewall must not drop. RFC 4821 describes Packetization Layer PMTUD as a way to detect such ICMP black holes without any feedback.

REJECT or DENY

The FAQ recommends rejecting actively. Silently dropping does not slow scanners down, because they probe thousands of targets in parallel and wait for all timeouts at once. Legitimate peers, by contrast, wait for the timeout every time, for example with ident queries.

Ideas

  • A firewall is a maintained concept, not just a device.
  • Security only ever applies to specifically named scenarios.
  • Deny everything and only allow what is justified on the merits.
  • NAT serves address translation and is not a security component.
  • Blanket blocking of ICMP breaks Path MTU Discovery.
  • A port scan alone is neither an attack nor reliable evidence of one.
  • Desktop firewalls help with learning but do not replace a security concept.

Insights

  • Protective measures that are not understood invite carelessness elsewhere.
  • Social problems such as forbidden tunnels cannot be solved by technology alone.
  • Many faults behind firewalls stem from too much filtering rather than too little.

Quotes

  • Ein NAT-Router ist deswegen keine Sicherheitskomponente. (Lutz Donnerhacke; "A NAT router is therefore not a security component.")

Facts

  • The FAQ describes the classic layout of two packet filters with a DMZ and proxies in between.
  • Lutz Donnerhacke defines a system as secure if the cost of attack never falls below the achievable gain.
  • RFC 1191 from 1990 describes Path MTU Discovery via ICMP feedback.
  • RFC 4890 counts ICMPv6 Packet Too Big among the messages a firewall must not drop.

References

Remarks

  • The post date is the earliest archived copy found, from 9 April 2001, not the first publication.
  • Many links in the reading list point to services that no longer exist; the core statements still hold.

Recommendations

  • Allow ICMP Destination Unreachable and ICMPv6 Packet Too Big in every filter rule set.
  • Before writing the first rule, write down which scenarios the firewall is meant to stop.
  • Use REJECT on perimeter firewalls wherever there is no specific reason for DROP.

Read the FAQ

Search the Web Archive

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