Add routes
A route maps an IP address or hostname to a Cloudflare One connector installed on your private network. When a user connects to that IP or hostname through Cloudflare's network, Cloudflare will route their traffic down a secure tunnel to the corresponding resource in your private network.
CIDR routes define the IP network segments (such as 10.0.0.0/24) that are reachable via a Cloudflare Tunnel.
To add a CIDR route:
- In Cloudflare One ↗, go to Networks > Routes > CIDR.
- Select Add CIDR route.
- In CIDR, enter the IP address or CIDR range that you wish to route through the tunnel (for example,
10.0.0.1or10.0.0.0/24). This can be a private or public IP. - For Tunnel, select the Cloudflare Tunnel that is being used to connect your private network to Cloudflare.
- (Optional) Under Additional settings, select a virtual network for this tunnel route. This step is only needed if the route's IP/CIDR range overlaps with another route in your account. If you do not select a virtual network, the IP route will be assigned to the
defaultnetwork. - Select Create.
Cloudflare will now route requests to your private network. However, the route does not automatically capture traffic from end users. To enable client-side connectivity, refer to the cloudflared or WARP Connector setup guides.
Hostname routes steer traffic for a public or private hostname down a Cloudflare Tunnel. This allows users to access internal resources using familiar URLs (such as wiki.internal.local) rather than IP addresses.
To add a hostname route:
- In Cloudflare One ↗, go to Networks > Routes > Hostname routes.
- Select Create hostname route.
- In Hostname, enter the private or public hostname that represents your application (for example,
wiki.internal.localorapp.bank.com). - For Tunnel, select the Cloudflare Tunnel that is being used to connect your private network to Cloudflare.
- Select Create.
Cloudflare will now route requests to your private network. However, the route does not automatically capture traffic from end users. To enable client-side connectivity, refer to the private hostname or public hostname setup guides.
Published application routes expose applications to the Internet via a domain that you have connected to Cloudflare. This allows users to access your applications without needing a VPN or specialized client software.
To add a published application route to an existing tunnel:
-
In Cloudflare One ↗, go to Networks > Tunnels.
-
Select your tunnel and select Edit.
-
Go to the Published application routes tab and select Add a published application route.
-
Enter a subdomain and select a Domain from the drop-down menu. Specify any subdomain or path information.
-
Under Service, choose a service type and specify its URL. For example:
- Type: HTTP
- URL:
localhost:8000
-
Under Additional application settings, specify any parameters you would like to add to your tunnel configuration.
-
Select Save.
Anyone on the Internet can now access the application at the specified hostname. To allow or block specific users, create an Access application.
WAN routes define the IP network segments (such as 10.0.0.0/24) that are reachable via a GRE or IPsec tunnel. To add a WAN route, refer to the WAN Connectors documentation.
Was this helpful?
- Resources
- API
- New to Cloudflare?
- Directory
- Sponsorships
- Open Source
- Support
- Help Center
- System Status
- Compliance
- GDPR
- Company
- cloudflare.com
- Our team
- Careers
- © 2025 Cloudflare, Inc.
- Privacy Policy
- Terms of Use
- Report Security Issues
- Trademark
-