Skip to content
Cloudflare Docs

Configure DDoS protection

Cloudflare DDoS protection automatically detects and mitigates Distributed Denial of Service (DDoS) attacks using its Autonomous Edge. Magic Transit customers have access to additional features, such as:

Create a DDoS override

  1. Log in to the Cloudflare dashboard and select your account.
  2. Go to Account Home > L3/4 DDoS > Network-layer DDoS Protection.
  3. Select Deploy a DDoS override.
  4. In Set scope, specify if you wish to apply the override to all incoming packets or to a subset of the packets.
  5. If you are creating an override for a subset of the incoming packets, define the custom expression that matches the incoming packets you wish to target in the override, using either the Rule Builder or the Expression Editor.
  6. Select Next.
  7. Depending on what you wish to override, refer to the following sections (you can perform both configurations on the same override):

Configure all the rules in the ruleset (ruleset override)

  1. Select Next.
  2. Enter a name for your override in Execution name.
  3. To always apply a given action for all the rules in the ruleset, select an action in Ruleset action.
  4. To set the sensitivity level for all the rules in the ruleset, select a value in Ruleset sensitivity.

Configure one or more rules

  1. Search for the rules you wish to override using the available filters. You can search for tags.

  2. To override a single rule, select the desired value for a field in the displayed dropdowns next to the rule.

    To configure more than one rule, select the rules using the row checkboxes and update the fields for the selected rules using the dropdowns displayed before the table. You can also configure all the rules with a given tag. For more information, refer to Configure rules in bulk in a managed ruleset.

  3. Select Next.

  4. Enter a name for your override in Execution name.

  1. To save and deploy the override, select Deploy. If you are not ready to deploy your override, select Save as Draft.

DDoS advanced protection

Advanced TCP Protection

Cloudflare's Advanced TCP Protection, powered by flowtrackd, is a stateful TCP inspection engine used to detect and mitigate sophisticated out-of-state TCP attacks such as randomized and spoofed ACK floods or SYN and SYN-ACK floods.

Setup

Create a global configuration to set up SYN Flood and Out-of-state TCP rules and filters for Advanced TCP Protection.

Advanced DNS Protection

Cloudflare's Advanced DNS Protection, powered by flowtrackd, provides stateful protection against DNS-based DDoS attacks, specifically sophisticated and fully randomized DNS attacks such as random prefix attacks.

Setup

Create a rule to enable Advanced DNS Protection.