Protect data center networks·续

Protect site-to-site, inter-data center, private network traffic

The reference architecture diagrams below illustrate how Cloudflare services — Cloudflare WAN, Cloudflare Network Firewall and Cloudflare Gateway — can be used to protect site-to-site, inter-data center traffic between your private networks.

Site to Site Private Network Traffic Connectivity

First, let us examine the use case where you do not intend to subject site-to-site private network traffic to Cloudflare Gateway proxy firewall service and simply route it using Cloudflare WAN service.

Figure 3.1. Protect inter-data center non-gateway-proxied traffic between private networks.

Figure 3.1. Protect inter-data center non-gateway-proxied traffic between private networks.

Note: Labels in this image may reflect a previous product name.

  1. Each site routes site-to-site private network traffic, destined to the other data center location, to Cloudflare WAN via the corresponding CNI connections. This can be done at your site through routing techniques of your choice, such as policy based routing (PBR).
  2. Upon entering the Cloudflare network, traffic is routed through Cloudflare Network Firewall.
  3. Cloudflare Network Firewall subjects traffic to any configured network firewall policies.
  4. Traffic that clears the Cloudflare Network Firewall rules and is not intended to be further proxied by Cloudflare Gateway service, is routed back to the destination network via the corresponding CNI.

Site to Site Private Network Traffic with Application Level Security Controls

For the use case where you do want to apply application level policy for fine-grain control and security on certain private network traffic, you can route and proxy such traffic through Cloudflare WAN and Cloudflare Gateway service. The following diagram illustrates the architecture and packet flow of such use cases.

Figure 3.2: Figure 3.2. Protect inter-data center gateway-proxied traffic between private networks.

Figure 3.2. Protect inter-data center gateway-proxied traffic between private networks.

Note: Labels in this image may reflect a previous product name.

  1. Each site routes private network traffic destined to the other data center location to Cloudflare WAN via the corresponding CNI connections. This can be done at your site through routing techniques of your choice, such as policy based routing (PBR).
  2. Upon entering the Cloudflare network, traffic is routed through Cloudflare Network Firewall where it is subject to any configured network firewall policies.
  3. After clearing Cloudflare Network Firewall, traffic is subsequently routed to Cloudflare Gateway, our secure web gateway service.
  4. Cloudflare Gateway subjects traffic to any configured L3-7 policies that enforce a comprehensive set of security and control measures, ensuring the utmost protection for your networks. Once traffic clears inspection, Gateway proxies the traffic to its destination private network. The source IP addresses of the proxied traffic are the Cloudflare owned IP addresses associated with the Gateway service.
  5. The proxied traffic, en-route to its destination private network, is routed through Cloudflare Network Firewall once again for further packet filtering.
  6. Traffic that passes Cloudflare Network Firewall filtering is routed from Cloudflare to your network locations via the corresponding CNIs that transport private network traffic.

Protect outbound Internet traffic from private networks

The reference architecture diagram below illustrates how Cloudflare services — Cloudflare WAN, Cloudflare Network Firewall and Cloudflare Gateway — can be used to protect outbound Internet traffic originating from the data centers' private networks. The use cases and the protection provided to the servers on the private networks are very similar to those described in the previous section about protecting Internet access from public-facing networks. The differences are that the servers have private IP addresses and that Cloudflare WAN service is used in this section, as opposed to the previous section where servers are assigned with public IP addresses and Magic Transit server is used.

Figure 4. Protect outbound traffic from private networks.

Figure 4. Protect outbound traffic from private networks.

Note: Labels in this image may reflect a previous product name.

  1. Each site routes outbound Internet traffic originating from its private networks to Cloudflare WAN via the corresponding CNI connections. This can be done at your site through routing techniques of your choice, such as policy based routing (PBR).
  2. Upon entering the Cloudflare network, outbound Internet traffic is first routed through Cloudflare Network Firewall where it is subject to any configured network firewall policies.
  3. Traffic that clears Cloudflare Network Firewall is subsequently sent to Cloudflare Gateway, our secure web gateway service where any configured L3-7 policies enforce a comprehensive set of security and control measures on the outbound traffic, ensuring the utmost protection for your networks.
  4. Once traffic clears inspection, Gateway proxies the outbound traffic to their destinations on the Internet. The source IP addresses of the outbound traffic are the Cloudflare owned IP addresses associated with the Gateway service.
  5. Return traffic from the Internet, destined to Cloudflare's IP addresses linked to the Gateway service, is routed into Cloudflare's global network.
  6. Traffic is inspected against Gateway policies.
  7. Return traffic that passes Gateway inspection is routed to Cloudflare Network Firewall for further packet filtering.
  8. Return traffic that passes Cloudflare Network Firewall filtering is routed from Cloudflare to your network locations via CNIs that transport private network traffic.

Was this helpful?

YesNo

On this page

Protect data center networks·续 - 图4Docs

{"@context":"https://schema.org","@type":"WebPage","@id":"https://developers.cloudflare.com/reference-architecture/diagrams/network/protect-data-center-networks/#page","headline":"Protect data center networks","description":"This document focuses on the reference architecture of using Cloudflare WAN, Cloudflare Network Firewall, and Cloudflare Gateway services.","url":"https://developers.cloudflare.com/reference-architecture/diagrams/network/protect-data-center-networks/","inLanguage":"en","image":"https://developers.cloudflare.com/reference-architecture/diagrams/network/protect-data-center-networks/og.png?v=d158fff8b9e1fd36","dateModified":"2026-10-12","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: Cloudflare Magic Transit provides cloud-native, in-line DDoS protection, and traffic acceleration for all Internet-facing networks. title: Protect hybrid cloud networks with Cloudflare Magic Transit image: https://developers.cloudflare.com/reference-architecture/diagrams/network/protect-hybrid-cloud-networks-with-cloudflare-magic-transit/og.png?v=0562349a653e6bfa


Skip to content

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