Skip to content
AnswerWell geo Documentation

Research · 8 min read · Answerwell

Network Firewall Unified Routing, Rules, and Feature Availability

How Cloudflare Network Firewall rules behave in Unified Routing, which advanced features need which plan, and how to verify rules in Network Analytics.

This page summarises Cloudflare documentation on Cloudflare Network Firewall (formerly Magic Firewall) for operators on Magic Transit, Cloudflare WAN, and related network products. It focuses on Unified Routing versus legacy routing, which rule and list capabilities are available, subscription requirements, inspection limits, and how to confirm policy behavior in Network Analytics.

Cloudflare Network Firewall: what it is and which plan unlocks what

Section titled “Cloudflare Network Firewall: what it is and which plan unlocks what”

Cloudflare Network Firewall is packet-level filtering on Cloudflare’s network edge for customers using Magic Transit or Cloudflare WAN. Plans explain that Magic Transit and Cloudflare WAN users receive a standard feature set automatically; additional capabilities are sold as advanced features.

If you are a Magic Transit or Cloudflare WAN user, you are automatically provided with a standard list of Cloudflare Network Firewall (formerly Magic Firewall) features. For additional features available for purchase, refer to the list of advanced features below.

— Cloudflare, Plans

Advanced features (all included when you purchase the advanced bundle) include customizable IP lists, managed Threat Intel Lists, geoblocking by country, ASN matching, protocol validation (including SIP), IDS, packet captures on demand, and more, as listed on Plans. Tenant subscription IDs in Cloudflare’s reference are MAGIC_FIREWALL_BASIC and MAGIC_FIREWALL_ADVANCED for Network Firewall tiers (subscriptions reference).

Some match fields and list types appear only with advanced features; see Cloudflare Network Firewall fields and packet filtering fields.

Unified Routing: why rules and country matching change

Section titled “Unified Routing: why rules and country matching change”

Unified Routing is a traffic-steering mode on Cloudflare WAN and Magic Transit. Cloudflare Network Firewall rules can behave differently than on Legacy Routing. Before upgrading, review Unified Routing behavior changes.

ip.geoip.country: migrate country rules before you upgrade

Section titled “ip.geoip.country: migrate country rules before you upgrade”

On Unified Routing, the ip.geoip.country field is not supported. You must remove or rewrite rules that use it, typically with ip.src.country and ip.dst.country.

The ip.geoip.country field is no longer supported on Unified Routing. Before upgrading you must either remove these rules or rewrite any rule that uses ip.geoip.country with the ip.src.country and ip.dst.country fields instead.

— Cloudflare, Unified Routing behavior changes

Cloudflare documents equivalent expressions for equals, not equals, in-list, and not-in-list matches in the same page. Changelog entries note that Country rules (ip.src.country / ip.dst.country) are supported in Unified Routing with Cloudflare Advanced Network Firewall (Country rules supported in Unified Routing).

Layer 4 rules: specify protocol explicitly on Unified Routing

Section titled “Layer 4 rules: specify protocol explicitly on Unified Routing”

On Legacy Routing, Layer 4 protocol is inferred from the expression. On Unified Routing, protocol is not inferred, which changes how negated port matches behave.

On Unified Routing, Cloudflare Network Firewall does not infer the protocol, and rules must specify a protocol in the expression explicitly. tcp.srcport eq 80 still only applies to TCP traffic, but tcp.srcport ne 80 now matches both TCP and UDP traffic. To restrict the rule to only match TCP traffic, update the expression to ip.proto eq “tcp” and tcp.srcport eq 80.

— Cloudflare, Unified Routing behavior changes

Unified Routing feature availability: Network Firewall capabilities by product

Section titled “Unified Routing feature availability: Network Firewall capabilities by product”

Changelog posts describe rolling support for IP lists, IDS, SIP, Threat Intel Lists, and Managed Rulesets in Unified Routing, usually requiring Cloudflare Advanced Network Firewall. Authoritative matrices live under traffic steering “Check feature availability before upgrading” for Cloudflare WAN, Magic Transit, and the Cloudflare One WAN connector reference.

The tables agree on most Network Firewall rows. Differences that matter in practice:

Feature Typical Unified Routing status Product-specific nuance
Basic firewall rules Generally available Same across products
GeoIP country rules Beta Requires advanced subscription per changelogs
ASN lists, Account IP lists, Threat Intel Lists, SIP rules, Managed rulesets Beta Advanced subscription where noted in changelogs
Intrusion detection system (IDS) Beta or not available Beta for Cloudflare WAN only on WAN steering docs; Not available for Magic Transit on Magic Transit steering docs
Rate limiting Not available Planned in several Unified Routing changelog entries
Network Analytics Generally available Unified Routing onramp/offramp traffic included without extra config (Network Analytics support)

List types also states that GeoIP country rules, ASN lists, account IP lists, and Threat Intel Lists are beta for Unified Routing accounts—review feature availability for your product before relying on them in production.

IP lists, Threat Intel, and the Cloudflare IP Ranges managed list

Section titled “IP lists, Threat Intel, and the Cloudflare IP Ranges managed list”

Account IP lists and Enterprise WAF list limits

Section titled “Account IP lists and Enterprise WAF list limits”

Account IP lists for Network Firewall require Cloudflare Advanced Network Firewall (IP lists, IDS, and SIP rules supported in Unified Routing). Separately, Cloudflare increased WAF Enterprise IP List quotas (not necessarily the same product surface as Network Firewall lists): up to 1,000 lists and 500,000 items (Increased IP List Limits).

Cloudflare IP Ranges managed list for allow/deny policies

Section titled “Cloudflare IP Ranges managed list for allow/deny policies”

Magic Firewall policies that match source or destination IP can use a managed Cloudflare IP Ranges list when the operator chooses “is in list” or “is not in list”.

Magic Firewall now supports a new managed list of Cloudflare IP ranges. This list is available as an option when creating a Magic Firewall policy based on IP source/destination addresses. When selecting “is in list” or “is not in list”, the option “Cloudflare IP Ranges” will appear in the dropdown menu.

— Cloudflare, Cloudflare IP Ranges List

The list tracks Cloudflare’s published IP ranges; updates apply automatically. Cloudflare’s ranges change infrequently and are published before production use (IP range updates). IP lists still require an advanced Network Firewall subscription per the same changelog note.

Threat Intel Lists and Managed Rulesets on Unified Routing

Section titled “Threat Intel Lists and Managed Rulesets on Unified Routing”

Threat Intel Lists and Managed Rulesets are supported in Unified Routing with advanced Network Firewall, per Threat Intel Lists supported in Unified Routing and Managed Rulesets supported in Unified Routing. Advanced plans include managed categories such as Anonymizer, Botnet, Malware, Open Proxies, and VPNs (Plans).

IDS and SIP protocol validation: where traffic is inspected

Section titled “IDS and SIP protocol validation: where traffic is inspected”

Enable IDS documents that IDS rules run on a subset of packets and support specific flows:

  • Cloudflare WAN to Cloudflare WAN
  • Magic Transit ingress when egress uses direct server return
  • Magic Transit ingress and egress when Magic Transit has the Egress option enabled

Unified Routing availability for IDS differs by product (see the table above). Do not enable IDS policies on Magic Transit Unified Routing if your steering reference marks IDS as unavailable.

Protocol validation rules describe SIP as the primary deep validation protocol today. Rules can use the sip field so well-formed SIP packets evaluate true. SIP rules are beta on Unified Routing per list types and traffic steering tables.

Operating alongside proxied traffic: source IP, fragments, and Cloudflare IPs

Section titled “Operating alongside proxied traffic: source IP, fragments, and Cloudflare IPs”

When Network Firewall is used with other Cloudflare services that proxy traffic (for example CDN and Spectrum), evaluation order affects source-IP rules.

When using Cloudflare Network Firewall alongside other Cloudflare services that proxy traffic (for example, CDN and Spectrum), be aware of the following:

Firewall rules that block traffic based on source IP address may not work as intended because rules are evaluated after Cloudflare terminates the incoming TCP connections. You must allow Cloudflare IP addresses ↗︎. When using Cloudflare Network Firewall, fragmented packets are reassembled into complete packets before they are inspected. As a result, you cannot create firewall rules for fragments.

— Cloudflare, About Cloudflare Network Firewall

Use the Cloudflare IP Ranges managed list or equivalent allow rules where documentation requires allowing Cloudflare addresses. Do not expect fragment-specific rules to work after reassembly.

Network Analytics and firewall rule IDs: find and audit a rule

Section titled “Network Analytics and firewall rule IDs: find and audit a rule”

Unified Routing customers regained parity for dataplane visibility: traffic on Unified Routing onramps and offramps appears in Network Analytics with the same dimensions and filters as the standard data plane, with no extra configuration (Network Analytics support for Unified Routing).

Search custom rules by name or ID in the dashboard

Section titled “Search custom rules by name or ID in the dashboard”

The Magic Firewall dashboard now allows you to search custom rules using the rule name and/or ID.

— Cloudflare, Search for custom rules using rule name and/or ID

From the dashboard: Analytics & Logs → Network Analytics → Magic Firewall, then filter by Rule ID. Rule ID URL links were added to Network Analytics in the same changelog.

For GraphQL or API analytics, you need each rule’s ID from Firewall policies → custom rules → Edit → copy Rule ID (GraphQL Analytics tutorial). The magicFirewallNetworkAnalyticsAdaptiveGroups node is for Magic Transit customers and identifies matches by rule ID and ruleset ID, not attack IDs (NAv2 node reference).

Task-oriented setup steps live under How to (IP lists, IDS, managed rulesets, log filters, and more).

Common mistakes when writing Network Firewall rules

Section titled “Common mistakes when writing Network Firewall rules”
  • Blocking or allowing by client source IP on paths where Cloudflare already terminated TCP for proxied products, then wondering why the rule “does nothing.”
  • Forgetting to allow Cloudflare IP addresses when architecture mixes Network Firewall with proxied Cloudflare services.
  • Leaving ip.geoip.country expressions in place before enabling Unified Routing.
  • Writing tcp.* negations without ip.proto eq "tcp" (or the correct protocol) on Unified Routing, unintentionally matching UDP.
  • Creating rules for IP fragments after documentation states fragments are reassembled before inspection.
  • Assuming Rate Limiting or full packet captures on Unified Routing when traffic steering lists them as not available.
  • Enabling IDS on Magic Transit Unified Routing when the Magic Transit steering table marks IDS as not available.
  • Using IP lists or Threat Intel Lists without Cloudflare Advanced Network Firewall where changelogs and plans require it.
  1. Open your product’s traffic steering — Check feature availability before upgrading (or the Magic Transit equivalent) and confirm each rule type you use is generally available or beta for your routing mode.
  2. Compare live expressions against Unified Routing behavior changes for country fields and explicit ip.proto on Layer 4 rules.
  3. In the Cloudflare dashboard, go to Analytics & Logs → Network Analytics → Magic Firewall, filter by Rule ID, and confirm hits match the policy you expect (custom rule search).
  4. On Plans, verify your account includes advanced features if you rely on IP lists, Threat Intel, country/ASN matching, IDS, or SIP validation.
  5. You can check automatically in Answerwell (our tool): https://answerwell.org/workspace

If something on this page does not match your configuration or Cloudflare’s docs, email yimasynthetic@gmail.com with the page URL and the exact statement you are questioning so it can be corrected or clarified.