Skip to Content
Cybrave OS

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.

The Console doesn't show zone protection profiles yet. This page describes the settings the device supports.

How it works

On forwarding interfaces, the device checks incoming packets before the firewall creates or updates a session. Probe interfaces skip these checks.

  1. Built-in checks discard malformed packets in every zone.
  2. If the zone has a profile, the device applies its packet checks.
  3. Flood protection drops packets that exceed the packet rate for their protocol.
  4. 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.

ProtocolPacket rateNew-session rate
TCP SYN—SYNs per second
UDPPackets per secondPackets per second
ICMP (IPv4)Packets per secondPackets per second
ICMPv6Packets per secondPackets 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

CheckDrops
Fragmented trafficIPv4 fragments and IPv6 packets with a fragment header
Any IP optionEvery 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 routingPackets that choose their own route, which can steer around destination-based rules
Timestamp, Record route, Security, Stream IDPackets with that IPv4 option
Unknown optionPackets containing an undefined IPv4 option
Malformed optionPackets 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

SettingEffectDefault
SYN with dataDrop a SYN that carries data, including TCP Fast Open. The client resends the SYN without data.On
SYN-ACK with dataDrop a SYN-ACK that carries dataOn
Strip timestampRemove the TCP timestamp option from every packet. Enabling this setting interrupts existing connections that negotiated timestamps.Off
Strip Fast OpenRemove the Fast Open option and its data from SYNs and SYN-ACKs. The client resends the data after the handshakeOff
Strip MPTCPRemove MPTCP options so connections fall back to plain TCPOn

Stripping applies only to packets that pass the checks and flood limits.

ICMP

CheckDrops
Ping ID zeroEcho requests and replies with identifier 0
ICMP fragmentICMP messages that arrive in fragments
Large ICMP packetICMP packets over 1,024 bytes
ICMP error messageDestination unreachable, source quench, redirect, time exceeded, and parameter problem
Dropping ICMP error messages also drops "fragmentation needed", which breaks path MTU discovery for the hosts behind the zone.

IPv6

CheckDrops
Type 0 routing headerPackets with the deprecated Type 0 routing header
IPv4-compatible addressPackets to or from an IPv4-compatible address (::a.b.c.d)
Needless fragment headerPackets with a fragment header but no fragmentation
Packet Too Big below 1280Packet Too Big messages reporting an MTU under 1,280 bytes
Hop-by-hop optionsPackets with a Hop-by-Hop Options header. Enabling this check also blocks MLD traffic across bridges in the zone
Routing headerPackets with any routing header
Destination optionsPackets 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.