Zone Protection
Limit floods and drop attack packets as traffic enters a zone.
Use a zone protection profile to limit floods and filter incoming packets on a security zone. If several zones share a profile, each enforces its limits and counts packets independently.
How it works
On forwarding interfaces, the device checks incoming packets before the firewall creates or updates a session. Probe interfaces skip these checks.
- Built-in checks discard malformed packets in every zone.
- If the zone has a profile, the device applies its packet checks.
- Flood protection drops packets that exceed the packet rate for their protocol.
- If a packet could start a session and matches no existing session, the device applies the new-session limit and, when configured, SYN validation.
Packets dropped in the first two steps do not count toward the rate limits. A zone without a profile applies only the built-in checks and leaves TCP options intact.
Built-in checks
These checks have no settings and always apply:
- Land: the source and destination addresses are the same.
- TearDrop: fragments overlap or repeat.
- Ping of Death: a fragment that would make the reassembled IP packet exceed the protocol’s length limit.
- Inconsistent packet lengths, or an IP version that doesn't match the Ethernet type.
- IPv4 TTL or IPv6 hop limit of 0, IPv4 protocol 0, or an IPv4 martian address.
- TCP port 0, or an invalid combination of TCP flags.
The checks look at the outer IP header and the TCP header right after it. Routed traffic can be rejected earlier, before zone protection sees it.
Flood protection
All rate limits default to 0 (unlimited). TCP SYN traffic has a new-session limit only.
| Protocol | Packet rate | New-session rate |
|---|---|---|
| TCP SYN | — | SYNs per second |
| UDP | Packets per second | Packets per second |
| ICMP (IPv4) | Packets per second | Packets per second |
| ICMPv6 | Packets per second | Packets per second |
- Packet rate counts incoming packets for the protocol, including packets in established sessions. The device uses the outer IP header to identify the protocol, so UDP-encapsulated tunnel traffic counts as UDP. Each packet-processing worker gets an equal share of the limit. A busy worker can reach its share and start dropping packets even while the zone’s total rate is below the limit.
- New-session rate counts incoming packets that could start a session. Until a session exists, each retransmission counts as another attempt. All workers share one limit per protocol in the zone.
The device allows short bursts of roughly 10 milliseconds’ worth of traffic at the configured rate. It drops excess packets as the limit is reached, without waiting for a one-second interval to end.
SYN flood
When the SYN rate exceeds the limit, the device drops incoming SYNs by default. Two settings change how it handles them.
- First packet drop discards the initial SYN and allows a retransmission. The device remembers the connection attempt for about 6 to 12 seconds. This can filter simple floods, though a retransmission alone does not verify the client’s source address.
- SYN cookie lets the device answer on behalf of the server. It connects to the server only after the client completes the handshake. If both settings are enabled, the device drops the first SYN and answers the retransmission with a cookie.
The device cannot send a cookie for a SYN that carries data, arrives through a tunnel, PPPoE, or MPLS, or crosses a bridge. It drops these SYNs when the rate exceeds the limit. Below the limit, SYNs pass without validation. Setting the limit to 0 disables both flood responses.
Packet checks
The device inspects each packet as it arrives, using the outer IP header and the header immediately after it. For tunneled traffic, these checks apply to the outer packet. Unless indicated otherwise, the checks are off by default.
IP
| Check | Drops |
|---|---|
| Fragmented traffic | IPv4 fragments and IPv6 packets with a fragment header |
| Any IP option | Every IPv4 packet with an option, including the Router Alert option IGMP uses, so IGMP stops crossing a bridge in the zone |
| Strict source routing, Loose source routing | Packets that choose their own route, which can steer around destination-based rules |
| Timestamp, Record route, Security, Stream ID | Packets with that IPv4 option |
| Unknown option | Packets containing an undefined IPv4 option |
| Malformed option | Packets containing an option with an invalid length or one that extends beyond the IP header |
The IP option checks apply to bridged and virtual-wire traffic. Routed interfaces already drop IPv4 packets with options, except valid Router Alert options on IGMP.
TCP
| Setting | Effect | Default |
|---|---|---|
| SYN with data | Drop a SYN that carries data, including TCP Fast Open. The client resends the SYN without data. | On |
| SYN-ACK with data | Drop a SYN-ACK that carries data | On |
| Strip timestamp | Remove the TCP timestamp option from every packet. Enabling this setting interrupts existing connections that negotiated timestamps. | Off |
| Strip Fast Open | Remove the Fast Open option and its data from SYNs and SYN-ACKs. The client resends the data after the handshake | Off |
| Strip MPTCP | Remove MPTCP options so connections fall back to plain TCP | On |
Stripping applies only to packets that pass the checks and flood limits.
ICMP
| Check | Drops |
|---|---|
| Ping ID zero | Echo requests and replies with identifier 0 |
| ICMP fragment | ICMP messages that arrive in fragments |
| Large ICMP packet | ICMP packets over 1,024 bytes |
| ICMP error message | Destination unreachable, source quench, redirect, time exceeded, and parameter problem |
IPv6
| Check | Drops |
|---|---|
| Type 0 routing header | Packets with the deprecated Type 0 routing header |
| IPv4-compatible address | Packets to or from an IPv4-compatible address (::a.b.c.d) |
| Needless fragment header | Packets with a fragment header but no fragmentation |
| Packet Too Big below 1280 | Packet Too Big messages reporting an MTU under 1,280 bytes |
| Hop-by-hop options | Packets with a Hop-by-Hop Options header. Enabling this check also blocks MLD traffic across bridges in the zone |
| Routing header | Packets with any routing header |
| Destination options | Packets with a Destination Options header |
Apply a profile
Assign the profile to the zone, then publish the change. To delete a profile, first remove it from every zone that uses it.
Start with packet checks and leave the rate limits at 0. Before setting a limit, measure the zone’s peak rate during normal operation. Allow room above that peak so legitimate bursts can pass.
Attack statistics
Each second, the device records attack counts by zone, attack type, and destination address. For SYN, UDP, and IPv4 ICMP floods, it counts packets dropped over the rate limit. For Land, TearDrop, and Ping of Death, it counts every matching packet. ICMPv6 has its own flood limits, and drops over these limits are currently excluded from the attack statistics.
SYN flood statistics also show how many SYNs the device answered with a cookie. If an attack affects many destinations at once, the device retains records for the destinations that received the most attack traffic.