Skip to content

About

Magic Transit is a network security and performance solution that offers DDoS protection, traffic acceleration, and more for on-premise, cloud-hosted, and hybrid networks.

Magic Transit delivers its connectivity, security, and performance benefits by serving as the front door to your IP network. This means it accepts IP destined for your network, processes them, and then outputs them to your origin infrastructure.

The Cloudflare network uses Border Gateway Protocol (BGP) to announce your company's IP address space, extending your network presence globally, and to ingest your traffic. Today, Cloudflare's anycast global network spans hundreds of cities worldwide.

Once packets hit Cloudflare's network, traffic is inspected for attacks, filtered, , accelerated, and sent onward to your origin. Magic Transit connects to your origin infrastructure using anycast tunnels over the Internet or, with Cloudflare Network Interconnect (CNI), via physical or virtual interconnect.

Magic Transit users have two options for their implementation: ingress traffic or ingress and egress traffic. Users with an egress implementation will need to set up or ensure default routing on their end forwards traffic to Cloudflare via tunnels.

Magic TransitDiagram showing how Magic Transit protects traffic on the customer's network.

Anycast
GRE tunnel

Cloudflare
Network
Interconnect

Egress via
Direct Server
Return

Ingress

DDoS
attack

Cloudflare global
anycast network
(DDoS protection +
network firewall)

Customer
network

User

BGP
announcement

For detailed information on Magic Transit architecture, refer to the Reference section.