Magic Transit egress

Last updated Apr 17, 2026 The suggestions in the Minimal ruleset and Extended ruleset are recommendations for ingress traffic.

For Magic Transit egress traffic, consider the following information:

  • The Cloudflare Network Firewall (formerly Magic Firewall) rules will apply to both Magic Transit ingress and egress traffic passing via Cloudflare.
  • Network Firewall is not stateful for your Magic Transit egress traffic.
  • Network Firewall is not stateful in both directions after DDoS mitigations.
  • If you have a Network Firewall "default drop" catchall rule for ingress traffic, you will need to add an earlier rule to permit traffic sourced from your Magic Transit prefix with the destination as any to allow outbound egress traffic.

Was this helpful?

YesNo

On this page

Magic Transit egress - 图1Docs

{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/cloudflare-network-firewall/best-practices/magic-transit-egress/#page","headline":"Magic Transit egress","description":"Configure Network Firewall for Magic Transit egress traffic.","url":"https://developers.cloudflare.com/cloudflare-network-firewall/best-practices/magic-transit-egress/","inLanguage":"en","image":"https://developers.cloudflare.com/cloudflare-network-firewall/best-practices/magic-transit-egress/og.png?v=b97e9fcd90d28e59","dateModified":"2026-04-17","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: Minimal ruleset configuration for basic protection. title: Minimal ruleset image: https://developers.cloudflare.com/cloudflare-network-firewall/best-practices/minimal-ruleset/og.png?v=d45c17d11672fc34


Skip to content

Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/cloudflare-network-firewall/llms.txt
Use this file to discover all available pages before exploring further.