Most DDoS protection sold in India works like a fuse: when an attack gets big enough, your IP is switched off until it stops. Cloudflare Magic Transit works the other way round. Your traffic never reaches India until Cloudflare has already cleaned it, in hundreds of cities around the world.

This guide explains how it works, in plain English, and how to tell whether a host really uses it.

The one-line answer

Cloudflare Magic Transit puts Cloudflare's global network in front of an entire IP range. Cloudflare announces your IP prefix to the internet from its own network, so every packet sent to your servers lands at the nearest Cloudflare data centre first. Attack traffic is dropped there. Clean traffic is sent on to your servers through a tunnel or a direct connection.

How it works, step by step

  1. Your IP prefix is announced by Cloudflare. Normally your hosting provider announces your IP addresses to the internet using BGP. With Magic Transit, Cloudflare announces them from its own network instead. To the rest of the internet, Cloudflare is now the front door for those addresses.
  2. Traffic goes to the nearest Cloudflare city. Because Cloudflare uses anycast, a user in Delhi reaches a Cloudflare data centre in India, while a botnet in Brazil or Europe hits Cloudflare there. The attack is split across Cloudflare's whole network instead of landing in one place.
  3. Attacks are filtered at the edge. Every Cloudflare server inspects traffic and drops attack packets (SYN floods, UDP floods, amplification attacks and many more) automatically, in seconds, without anyone having to switch anything on.
  4. Clean traffic is delivered to your data centre. What is left is sent to your servers over GRE or IPsec tunnels, or over a private Cloudflare Network Interconnect.
  5. Replies go straight out. Return traffic from your server usually leaves directly from the data centre, so it is not slowed down by an extra hop.

Why this matters for servers in India

  • Size. Cloudflare's network has hundreds of terabits per second of capacity. Attacks that would knock a single Indian data centre offline are absorbed across the globe.
  • No null-routing. Your IP stays reachable during an attack, because the filtering happens before the traffic reaches the host.
  • All protocols. Magic Transit works at the network level, so it protects TCP and UDP on every port. Websites are covered, and so are APIs, game servers, VoIP, trading terminals and VPNs.
  • Always on. Protection does not wait for someone to notice an attack and switch on a scrubbing service.
  • Bring your own IPs. If you own an IP prefix, it can be announced directly from Cloudflare's network too, so the same protection covers addresses you control.

How to check if a host really uses Magic Transit

  1. Take one of the host's IP addresses and look it up on a public routing site such as bgp.tools or bgp.he.net.
  2. If the prefix is announced by Cloudflare, Magic Transit (or a similar Cloudflare service) is in front of it.
  3. Run a traceroute (tracert on Windows, mtr on Linux or macOS). With Magic Transit you will see Cloudflare hops before the host's own network.
  4. Ask the host in writing: "Is your Magic Transit always on? Which prefixes does it cover? Can I bring my own prefix?"

Many hosts say "Cloudflare protection" but only mean the free Cloudflare proxy for websites, which protects ports 80 and 443 for one domain. That is a different product. Magic Transit protects the whole network: every IP and every port.

Which Indian host uses it

Inservers runs its network in India behind always-on Cloudflare Magic Transit. Its dedicated servers, VPS and colocation sit at Yotta D1 (Delhi NCR) and Yotta NM1 (Navi Mumbai). Both sites also have DDoS-protected transit from Global Secure Layer, plus several carriers and two internet exchanges each. Customers can bring their own IP prefix and have it announced directly from Cloudflare's network, so attacks on their addresses are dropped at Cloudflare's edge before they reach India.

The full design, with a diagram and the carrier list for each site, is on the Inservers network infrastructure page. DDoS-protected VPS plans are at inservers.com/ddos-protected-vps-india.

Quick FAQ

Is Magic Transit the same as the Cloudflare proxy (orange cloud)?
No. The proxy protects websites on one domain. Magic Transit protects entire IP ranges, all ports and all protocols.

Does it add latency for Indian users?
Traffic enters Cloudflare at the nearest city, which for Indian users is in India, then goes to the server. In normal conditions the extra distance is small, and during an attack it is the difference between online and offline.

Can a small business get Magic Transit directly?
Cloudflare sells it mainly to enterprises and networks, usually with a minimum of a /24 prefix. Most businesses get it through a host that already has it in front of its network.

What should I ask my host?
Who announces my IP prefix? Is protection always on? Is my IP ever null-routed? Are UDP and all ports covered? Can I bring my own prefix?