Cloudflare Demo Shop

Magic Firewall

A cloud-delivered Layer 3 / 4 firewall for your entire network. Stateful packet filtering, geo-blocking, and protocol enforcement applied at Cloudflare's edge — no appliance to deploy.

How do you manage firewall policy consistently across data centers, branches, and clouds?

Most enterprises run a dozen different firewalls: physical appliances in each data center, virtual ones in each cloud VPC, branch firewalls in every office. Each has its own UI, its own rule syntax, its own audit log. Keeping policy consistent — same geo-blocks, same allowed ports, same vendor blocks — is operational pain that scales with the number of sites. A single misconfiguration on the wrong firewall is a breach waiting to happen.

How it fits together

Diagram coming soon

Architecture diagram for this solution will be added here.

How Cloudflare solves it

Common questions

Does Magic Firewall replace my edge firewall appliances?
For most outbound and inbound L3/L4 policy, yes — that work moves to Magic Firewall. Some customers keep on-prem firewalls for east-west traffic within data centers (which Cloudflare doesn't see). The dramatic reduction in north-south appliance complexity is usually the operational win.
What's the difference between Magic Firewall and the WAF?
Magic Firewall is L3/L4 — IPs, ports, protocols. WAF is L7 — HTTP requests, headers, bodies. They run at different layers of the stack and are complementary. Magic Firewall protects your whole network including non-HTTP services; WAF protects your web apps specifically.
Can I write rules that reference Cloudflare's threat lists?
Yes. Cloudflare maintains continuously-updated IP lists for known malicious sources, Tor exits, anonymizing VPNs, etc. Reference them in rules: not ip.src in $cf_anonymizer. Lists update automatically — no manual feed management.
How is this licensed — per Gbps, per rule, per site?
Typically as part of the Magic Transit / Magic WAN bundle, sized by your protected bandwidth. Rules and sites are unmetered within the bundle.

Try it live

Demo coming soon

An interactive demo for Magic Firewall is being built. In the meantime, check the "Dive Deeper" section below for the official docs and product blogs.

Docs & blogs

← Back to all solutions