Set up Private Network Load Balancing with Cloudflare WAN

Last updated Apr 21, 2026 Consider the following steps to learn how to configure Private Network Load Balancing solution, using Cloudflare WAN (formerly Magic WAN) as the on-ramp and off-ramp to securely connect to your private or internal services.

One of the pre-requisites to using Private Network Load Balancing (PNLB) with Cloudflare WAN is having Cloudflare WAN set up in your account and having completed onboarding. You can connect with a Cloudflare One Appliance, or your own hardware via an IPsec or GRE tunnel. Check out the Cloudflare WAN documentation for more details or to get started.

1. Create Load Balancer Pools

Load Balancer Pools are logical groupings of endpoints — typically organized by physical datacenter or geographic region. The endpoints in the pool are the destinations where traffic is ultimately routed.

Note

Endpoints accessed via Cloudflare WAN must be accessible in and assigned to the default VNET.

Caution

The IP destination addresses must also be routable in your Cloudflare WAN configuration. Please contact your Cloudflare account team to confirm that the addresses are available in your configuration.

Pools can be created using either the Cloudflare dashboard or the API. Refer to the Create a pool documentation section for more information.

2. Create an Account Load Balancer with a Private IP

  1. Go to Load Balancing at the account level and select Create a Load Balancer.
  2. Select Private Load Balancer.
  3. On the next step you can choose to associate this load balancer with either:

  4. A CGNAT IP from the Cloudflare range or

  5. A custom RFC1918 address ↗︎.

  6. Add a descriptive name to identify your Load Balancer.

  7. Proceed through the setup.

After selecting an IP address and completing the setup, you will be redirected to the Load Balancing dashboard. You can locate your load balancer using the search bar or by filtering for Private load balancers. Be sure to note the assigned IP address, as it will be required in the following steps.

Note

Traffic from your load balancer will appear to originate from one of Cloudflare's IP addresses. These IP addresses must be whitelisted to ensure proper traffic flow. Ensure your routing is properly configured to return traffic to your IPsec/GRE tunnels and not the public Internet. Private Load Balancers created with a Cloudflare private IP address will receive a default address in the CGNAT range 100.112.0.0. This IP address is configurable. Refer to Cloudflare source IP range to learn more.

3. FQDN override (optional)

If you want your load balancer and its endpoints to be transparently accessible to users via a hostname, you can create a DNS record in your internal DNS system or create an override in Cloudflare that maps the hostname to the Load Balancer's IP address. This ensures that traffic destined for the hostname resolves to the correct IP.

To create the override, follow these steps:

  1. In Gateway, select Firewall policies.
  2. In the DNS tab, create an override where:
  3. The Selector equals Host
  4. The Operator equals is
  5. The Value is the hostname you wish to associate with your load balancer.
  6. Set the Action to Override, and in Override Hostname, enter the IP address of your Private Load Balancer.

Requests to the hostname will now resolve to your private load balancer.

Was this helpful?

YesNo

On this page

Set up Private Network Load Balancing wi - 图1Docs

{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/load-balancing/private-network/cloudflare-wan/#page","headline":"Set up Private Network Load Balancing with Cloudflare WAN","description":"Set up private load balancing with Cloudflare WAN.","url":"https://developers.cloudflare.com/load-balancing/private-network/cloudflare-wan/","inLanguage":"en","image":"https://developers.cloudflare.com/load-balancing/private-network/cloudflare-wan/og.png?v=a2f688ebf67b6c0d","dateModified":"2026-04-21","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/"},"keywords":["Private networks"]}


description: Load balance public traffic to private origins via Tunnel. title: Set up Private Network Load Balancing for Public traffic to Tunnel image: https://developers.cloudflare.com/load-balancing/private-network/public-to-tunnel/og.png?v=b60bebec78fe6588


Skip to content

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