Configure DDoS protection
Last updated Apr 23, 2026 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:
- Advanced TCP protection (disabled by default)
- Advanced DNS protection (beta)
Create a DDoS override
- In the Cloudflare dashboard, go to the L3/4 DDoS protection page. Go to DDoS Managed Rules ↗
- Go to Network-layer DDoS Protection.
- Select Deploy a DDoS override.
- In Set scope, specify if you wish to apply the override to all incoming packets or to a subset of the packets.
- 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.
- Select Next.
- Depending on what you wish to override, refer to the following sections (you can perform both configurations on the same override):<details><summary>
Configure all the rules in the ruleset (ruleset override)</summary>
- Select Next.
- Enter a name for your override in Execution name.
- To always apply a given action for all the rules in the ruleset, select an action in Ruleset action.
- To set the sensitivity level for all the rules in the ruleset, select a value in Ruleset sensitivity.</details>
<details><summary>
Configure one or more rules</summary>
- Search for the rules you wish to override using the available filters. You can search for tags.
- 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 <a href="https://developers.cloudflare.com/waf/managed-rules/deploy-zone-dashboard/#configure-a-managed-ruleset">Configure a managed ruleset</a>. 14. Select Next. 15. Enter a name for your override in Execution name.</details>
Notes - Tag and rule overrides have priority over ruleset overrides. - The managed ruleset includes some read-only rules that you cannot override. 8. 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.
Note
Advanced TCP and DNS Protection systems are automatically enabled in Monitor mode with the default thresholds for new Magic Transit customers and their authorized prefixes.
Magic Transit customers can also enable the Advanced DDoS systems when the prefixes are ready, change the sensitivity level, or adjust the thresholds by contacting their account team.
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.
Note
Advanced TCP and DNS Protection systems are automatically enabled in Monitor mode with the default thresholds for new Magic Transit customers and their authorized prefixes.
Magic Transit customers can also enable the Advanced DDoS systems when the prefixes are ready, change the sensitivity level, or adjust the thresholds by contacting their account team.
Setup
Create a rule to enable Advanced DNS Protection.
Was this helpful?
YesNo
On this page
{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/learning-paths/data-center-protection/configure-ddos/#page","headline":"Configure DDoS protection","description":"Learn about configure ddos protection in this guide.","url":"https://developers.cloudflare.com/learning-paths/data-center-protection/configure-ddos/","inLanguage":"en","image":"https://developers.cloudflare.com/learning-paths/data-center-protection/configure-ddos/og.png?v=eca4ba9b79e3f447","dateModified":"2026-04-23","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}
description: Protect data centers with Magic Transit DDoS mitigation. title: Configure tunnels and routes image: https://developers.cloudflare.com/learning-paths/data-center-protection/configure-tunnels-routes/og.png?v=9e4778d50802e5a8
Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/learning-paths/llms.txt
Use this file to discover all available pages before exploring further.
Docs