Skip to content
AnswerWell geo Documentation

Research · 7 min read · Answerwell

Reverse Proxy Traffic Flow, DNS Onboarding and Origin Connectivity

How a reverse proxy sits between visitors and your origin, DNS onboarding options, anycast routing, and secure origin connectivity.

This page summarises Cloudflare documentation on how application traffic is routed through its global network: the reverse-proxy model, DNS onboarding (“proxied” records), anycast edge routing, paths from the edge to your origin, and how that fits multi-vendor designs.

Reverse proxy: what sits between the client and the origin

Section titled “Reverse proxy: what sits between the client and the origin”

Cloud-based security and performance providers such as Cloudflare work as a reverse proxy—a server in front of your web servers that forwards client requests to those origins. Reverse proxies are typically used to increase security, performance, and reliability.

Cloud-based security and performance providers like Cloudflare work as a reverse proxy. A reverse proxy is a server that sits in front of web servers and forwards client requests to those web servers.

— Cloudflare, Multi-vendor Application Security and Performance Reference Architecture

Without a reverse proxy, a client performs DNS, receives the origin IP, and talks to the origin directly. With a proxy, DNS (or a CNAME chain) returns the vendor’s proxy addresses; the client connects to the proxy, which can apply CDN, WAF, DDoS protection, and routing before forwarding to the origin.

When you add your application to Cloudflare, Cloudflare’s global network of servers will sit in between requests to your application and your application’s origin server.

— Cloudflare, Introduction to Cloudflare

Users connect to Cloudflare by sending requests from their devices to Cloudflare’s global network. Cloudflare connects to the origin server by acting as an intermediary between the user and the origin.

— Cloudflare, TCP connections

To optimise sites and apps, Cloudflare combines DNS and CDN so it can reverse proxy traffic to and from your domain (How Cloudflare DNS works). Cloudflare is not general-purpose web hosting for most sites; it keeps domains online at the edge while origins stay elsewhere (Domains), though Cloudflare Pages can host JAMstack deployments.

For HTTP traffic through the proxy network, Cloudflare supports all HTTP methods except CONNECT, TRACE, and PURGE, which are restricted and not proxied. Other products may impose additional method limits (Traffic flow through Cloudflare).

DNS onboarding: how to send traffic through the proxy (“proxied”)

Section titled “DNS onboarding: how to send traffic through the proxy (“proxied”)”

The core requirement is that traffic must be proxied through Cloudflare, also called orange-clouded: in the dashboard, a DNS record shows Proxied with the orange cloud icon (Multi-vendor reference architecture).

Onboarding pattern Role of DNS Typical use
Full DNS Cloudflare is primary DNS; proxied A/AAAA return anycast edge IPs Single provider for DNS + proxy
Secondary DNS + override Zone transfer from primary; Secondary DNS override can rewrite answers to proxy via Cloudflare Sync from existing primary DNS
Partial / CNAME Authoritative DNS stays elsewhere; hostname resolves to Cloudflare via CNAME (apex may need static IPs or flattening) Minimal DNS migration

When proxying is enabled on a record, DNS answers use Cloudflare anycast addresses so the proxy receives the request first. SaaS and custom-hostname designs share the same goal: custom hostnames hit Cloudflare security and performance before the origin (Extend Cloudflare’s benefits to SaaS providers’ end-customers).

Anycast routing: how the edge receives the request

Section titled “Anycast routing: how the edge receives the request”

Cloudflare’s reverse proxy runs on a global anycast network: many nodes advertise the same IP space, and incoming requests go to a nearby node with capacity.

Incoming traffic is routed to the nearest data center with the capacity to process the requests efficiently.

— Cloudflare, Multi-vendor Application Security and Performance Reference Architecture

User traffic is routed to the nearest Cloudflare data center based on the shortest Border Gateway Protocol (BGP) path, thanks to anycast routing.

— Cloudflare, TCP connections

Cloudflare operates a flat anycast network. Any data center may connect directly to your origin — there is no L1/L2 hierarchy. Origin connections may come from multiple data centers worldwide.

— Cloudflare, HTTP/2 to Origin

Anycast spreads load across data centers, which aids availability and resilience to volumetric attacks (Multi-vendor reference architecture). Cloudflare runs the same service stack on servers in each data center (Secure application delivery).

Origin connectivity: Internet, tunnel, and direct interconnect

Section titled “Origin connectivity: Internet, tunnel, and direct interconnect”

After the edge handles the request (cache miss or dynamic traffic), Cloudflare opens a separate connection to the origin. That path is configurable per hostname or environment.

By default the proxy forwards to the origin over the public Internet from Cloudflare-owned addresses (Secure application delivery; Multi-vendor reference architecture).

Optional hardening from the cluster:

  • Dedicated CDN Egress IPs — customer-specific source IPs for connections from Cloudflare to your origin; allowlist these and block direct client access.
  • Full (Strict) SSL or mTLS so only traffic that passed through your zone reaches the origin.
  • Bring Your Own IP (BYOIP) — announce your prefixes on the Cloudflare network for L7 proxying while DNS may still return your ranges.

Cloudflare Tunnel uses the cloudflared daemon to open four outbound connections to distinct servers in at least two data centers. Origins connect to the nearest edge via anycast without opening inbound ports on the firewall.

Cloudflared creates an encrypted tunnel between your origin web server(s) and Cloudflare’s nearest data center(s), all without opening any public inbound ports.

— Cloudflare, Multi-vendor Application Security and Performance Reference Architecture

Tunnel fits origins without public IPs and pairs with locking down HTTP/S on the origin firewall (Secure application delivery).

Cloudflare Network Interconnect (CNI) provides private paths via PNI at peering facilities, Internet exchanges, or partners—an alternative to riding only the public Internet between your network and Cloudflare.

Argo Smart Routing and Authenticated Origin Pulls are additional origin-side options mentioned for optimised paths and verified proxy-to-origin requests.

A useful mental model for TLS and crypto upgrades: an uncached request can involve three connections—visitor to Cloudflare, between Cloudflare services, and Cloudflare to origin (Post-quantum cryptography (PQC)).

Multi-vendor routing: DNS split, sync, and what to avoid

Section titled “Multi-vendor routing: DNS split, sync, and what to avoid”

Organisations sometimes use more than one security/performance vendor for compliance, resiliency, regional performance, or cost (Multi-vendor reference architecture). That adds dashboards, config drift, and a tendency toward a “lowest common denominator” feature set.

Routing is usually DNS-driven: authoritative DNS returns provider-specific CNAMEs or IPs, optionally with health checks and geo steering; third-party monitoring (e.g. ThousandEyes, Catchpoint) often feeds those decisions (Multi-vendor reference architecture).

Configuration should stay aligned across vendors—typically API-first automation (e.g. Terraform) because policies on WAF and API security must match whichever proxy receives traffic (Multi-vendor reference architecture).

Multi-vendor DNS patterns in the docs include primary/secondary with zone transfers (AXFR/IXFR), dual-primary with customer-owned sync, and hidden-primary with multiple secondaries (Multi-vendor reference architecture). Cloudflare Secondary DNS override lets a secondary rewrite A/AAAA to its own proxy when steering by resolver is acceptable.

Similarly, Cloudflare does not recommend a third-party CDN in front of Cloudflare: extra hop latency, non-standard HTTP behaviour, masked client IPs (weaker L3/L4 DDoS accuracy), and you may still pay the outer CDN for attack traffic Cloudflare mitigates later.

It is possible—but not ideal—to use Cloudflare WAF with another CDN by CNAME through Cloudflare and disabling Cloudflare caching via Cache Rules (Multi-vendor reference architecture).

Common mistakes and verification checklist

Section titled “Common mistakes and verification checklist”

Mistakes often seen in the docs and support paths:

  1. Hitting Cloudflare anycast IPs in the browser instead of the hostname (Error 1003).
  2. Leaving the origin reachable on the public Internet without allowlists or tunnel-only access (Secure application delivery).
  3. Stacking or outer CDN → Cloudflare chains that hide true client IPs (Third-party services and DDoS protection).
  4. Assuming a single egress path—origins may see connections from many global data centers (HTTP/2 to Origin).
  5. Multi-vendor DNS without consistent records across providers (Multi-vendor reference architecture).
  1. Confirm critical hostnames are Proxied (orange cloud) in Cloudflare DNS and that public resolvers return Cloudflare anycast answers, not your origin IP, for those names.

  2. From an external network, request the site by hostname only; do not browse to raw edge IPs. If you see Error 1003, fix bookmarks or monitoring that target IPs directly.

  3. On the origin firewall, allow only expected egress sources—Dedicated CDN Egress IPs if used—and verify TLS mode (Full (Strict)) or origin mTLS per secure application delivery guidance.

  4. Review traffic flow and Security Analytics (or Logpush exports) to confirm client IPs and geos look correct—not a single upstream CDN network.

  5. You can check automatically in Answerwell (our tool): https://answerwell.org/workspace

If something on this page is wrong or unclear, email yimasynthetic@gmail.com with the page URL and the exact statement you are asking about, and we will correct or clarify it.