Configuration (3)

Last updated Sep 29, 2026 This page covers the most common configuration options for cloudflared tunnels, including high availability, firewall rules, and runtime parameters.

Replicas and high availability

When you run a tunnel, cloudflared establishes four outbound-only, post-quantum encrypted connections to at least two distinct Cloudflare data centers. If any connection, server, or data center goes offline, your resources remain available.

A replica is an additional cloudflared instance that points to the same tunnel. Each replica creates four new connections, providing additional ingress points to your origin. You can run up to 25 replicas (100 connections) per tunnel. Traffic routes to the geographically closest replica. To see which replica received a specific session, refer to Network session logs.

graph LR
    C((Cloudflare))
    subgraph E[Your network]
        cf1["cloudflared <br> (Replica for tunnel-01)"]
        cf2["cloudflared <br> (Replica for tunnel-01)"]
        S1[Application]
        cf1-->S1
        cf2-->S1
    end
    C -- "Connections x 4 <br>"--> cf1
    C --> cf1
    C --> cf1
    C --> cf1
    C -- Connections x 4--> cf2
    C --> cf2
    C --> cf2
    C --> cf2

Deploy a replica

To deploy a replica for a remotely-managed tunnel:

  1. In the Cloudflare dashboard ↗︎, go to Networking > Tunnels. Go to Tunnels ↗
  2. Select your tunnel.
  3. Select Add a replica.
  4. Select the operating system of the host where you want to deploy a replica.
  5. Copy the installation command and run it on the host.

To deploy a replica for a locally-managed tunnel, run cloudflared tunnel run <NAME> on an additional host using the same tunnel credentials.

Note

For intelligent traffic steering, failover logic, or health alerts, use Cloudflare Load Balancing instead of replicas.

Firewall rules

cloudflared connects outbound to Cloudflare on port 7844. Your firewall must allow egress to the following destinations. Block all ingress traffic for a positive security model — only the services in your tunnel configuration will be exposed.

Required ports

region1.v2.argotunnel.com

IPv4 IPv6 Port Protocols
198.41.192.167 198.41.192.67 198.41.192.57 198.41.192.107 198.41.192.27 198.41.192.7 198.41.192.227 198.41.192.47 198.41.192.37 198.41.192.77 2606:4700:a0::1 2606:4700:a0::2 2606:4700:a0::3 2606:4700:a0::4 2606:4700:a0::5 2606:4700:a0::6 2606:4700:a0::7 2606:4700:a0::8 2606:4700:a0::9 2606:4700:a0::10 7844 TCP/UDP (http2/quic)

region2.v2.argotunnel.com

IPv4 IPv6 Port Protocols
198.41.200.13 198.41.200.193 198.41.200.33 198.41.200.233 198.41.200.53 198.41.200.63 198.41.200.113 198.41.200.73 198.41.200.43 198.41.200.23 2606:4700:a8::1 2606:4700:a8::2 2606:4700:a8::3 2606:4700:a8::4 2606:4700:a8::5 2606:4700:a8::6 2606:4700:a8::7 2606:4700:a8::8 2606:4700:a8::9 2606:4700:a8::10 7844 TCP/UDP (http2/quic)

<details>

<summary>

US region IPs

</summary>

When using the <a href="#region"><code>--region us</code></a> flag, ensure your firewall allows outbound connections to these US-region destinations on port <code>7844</code> (TCP/UDP).

<code>us-region1.v2.argotunnel.com</code>

<a href="#us-region1v2argotunnelcom"></a>

IPv4 IPv6 Port Protocol
<code>198.41.218.1</code> <code>198.41.218.2</code> <code>198.41.218.3</code> <code>198.41.218.4</code> <code>198.41.218.5</code> <code>198.41.218.6</code> <code>198.41.218.7</code> <code>198.41.218.8</code> <code>198.41.218.9</code> <code>198.41.218.10</code> <code>2606:4700:a1::1</code> <code>2606:4700:a1::2</code> <code>2606:4700:a1::3</code> <code>2606:4700:a1::4</code> <code>2606:4700:a1::5</code> <code>2606:4700:a1::6</code> <code>2606:4700:a1::7</code> <code>2606:4700:a1::8</code> <code>2606:4700:a1::9</code> <code>2606:4700:a1::10</code> 7844 TCP/UDP (<code>http2</code>/<code>quic</code>)

<code>us-region2.v2.argotunnel.com</code>

<a href="#us-region2v2argotunnelcom"></a>

IPv4 IPv6 Port Protocol
<code>198.41.219.1</code> <code>198.41.219.2</code> <code>198.41.219.3</code> <code>198.41.219.4</code> <code>198.41.219.5</code> <code>198.41.219.6</code> <code>198.41.219.7</code> <code>198.41.219.8</code> <code>198.41.219.9</code> <code>198.41.219.10</code> <code>2606:4700:a9::1</code> <code>2606:4700:a9::2</code> <code>2606:4700:a9::3</code> <code>2606:4700:a9::4</code> <code>2606:4700:a9::5</code> <code>2606:4700:a9::6</code> <code>2606:4700:a9::7</code> <code>2606:4700:a9::8</code> <code>2606:4700:a9::9</code> <code>2606:4700:a9::10</code> 7844 TCP/UDP (<code>http2</code>/<code>quic</code>)

</details>

<details>

<summary>

FedRAMP High IPs

</summary>

When deploying <code>cloudflared</code> in a <a href="https://www.cloudflare.com/cloudflare-for-government/">FedRAMP High ↗︎</a> environment, <code>cloudflared</code> automatically routes to FedRAMP data centers based on the <a href="https://developers.cloudflare.com/tunnel/reference/tunnel-tokens/">tunnel token</a>. Ensure your firewall allows outbound connections to these FedRAMP-specific destinations on port <code>7844</code> (TCP/UDP).

<code>fed-region1.v2.argotunnel.com</code>

<a href="#fed-region1v2argotunnelcom"></a>

IPv4 IPv6 Port Protocols
<code>162.159.234.1</code> <code>162.159.234.2</code> <code>162.159.234.3</code> <code>162.159.234.4</code> <code>162.159.234.5</code> <code>162.159.234.6</code> <code>162.159.234.7</code> <code>162.159.234.8</code> <code>162.159.234.9</code> <code>162.159.234.10</code> <code>2a06:98c1:4d::1</code> <code>2a06:98c1:4d::2</code> <code>2a06:98c1:4d::3</code> <code>2a06:98c1:4d::4</code> <code>2a06:98c1:4d::5</code> <code>2a06:98c1:4d::6</code> <code>2a06:98c1:4d::7</code> <code>2a06:98c1:4d::8</code> <code>2a06:98c1:4d::9</code> <code>2a06:98c1:4d::10</code> 7844 TCP/UDP (<code>http2</code>/<code>quic</code>)

<code>fed-region2.v2.argotunnel.com</code>

<a href="#fed-region2v2argotunnelcom"></a>

IPv4 IPv6 Port Protocols
<code>172.64.234.1</code> <code>172.64.234.2</code> <code>172.64.234.3</code> <code>172.64.234.4</code> <code>172.64.234.5</code> <code>172.64.234.6</code> <code>172.64.234.7</code> <code>172.64.234.8</code> <code>172.64.234.9</code> <code>172.64.234.10</code> <code>2606:4700:f6::1</code> <code>2606:4700:f6::2</code> <code>2606:4700:f6::3</code> <code>2606:4700:f6::4</code> <code>2606:4700:f6::5</code> <code>2606:4700:f6::6</code> <code>2606:4700:f6::7</code> <code>2606:4700:f6::8</code> <code>2606:4700:f6::9</code> <code>2606:4700:f6::10</code> 7844 TCP/UDP (<code>http2</code>/<code>quic</code>)

</details>

<details>

<summary>

SNI-enforcing firewalls

</summary>

If your firewall enforces Server Name Indication (SNI), also allow these hostnames on port <code>7844</code>:

Hostname Port Protocols
<code>_v2-origintunneld._tcp.argotunnel.com</code> 7844 TCP (<code>http2</code>)
<code>cftunnel.com</code> 7844 TCP/UDP (<code>http2</code>/<code>quic</code>)
<code>h2.cftunnel.com</code> 7844 TCP (<code>http2</code>)
<code>quic.cftunnel.com</code> 7844 UDP (<code>quic</code>)

</details>

<details>

<summary>

Optional port 443 destinations

</summary>

Opening port <code>443</code> enables optional features like software auto-updates and Access JWT validation. <code>cloudflared</code> runs correctly without these connections.

Destination Purpose
<code>api.cloudflare.com</code> Software update checks
<code>update.argotunnel.com</code> Software update checks
<code>github.com</code> Download latest release
<code><team-name>.cloudflareaccess.com</code> Access JWT validation (if Access enabled)
<code>pqtunnels.cloudflareresearch.com</code> Post-quantum error reporting
<code>cfd-features.argotunnel.com</code> (DNS TXT) UDP datagram version negotiation

</details>

To verify your firewall allows tunnel traffic, refer to Connection errors.

Run parameters

These flags apply to the cloudflared tunnel run command. They control how the tunnel runs on your operating system.

The most commonly used parameters:

Parameter Default Description
--loglevel info Log verbosity: debug, info, warn, error, fatal
--logfile stdout Path to write log output
--metrics 127.0.0.1:20241–20245 Prometheus metrics endpoint address (first available port in range)
--protocol auto Connection protocol: auto, quic, http2
--region global Route through US-only data centers with us
--token — Tunnel token (remotely-managed tunnels)

The following example shows how to manually run a tunnel with configuration flags:

cloudflared tunnel --loglevel info --logfile /var/log/cloudflared/cloudflared.log run --token <TOKEN VALUE>

For the complete list of run parameters and instructions on how to add them to a tunnel service, refer to Run parameters.

Origin parameters

Origin configuration parameters control how cloudflared proxies traffic to your origin server.

The most commonly used parameters:

Parameter Default Description
originServerName "" Hostname expected from origin certificate
noTLSVerify false Disable TLS certificate verification
httpHostHeader "" Override HTTP Host header
connectTimeout 30s TCP connection timeout to origin

For the complete list of origin parameters and setup instructions, refer to Origin parameters.

Permissions

You can scope Cloudflare member permissions to individual Cloudflare Tunnel instances instead of granting account-wide access. This lets you delegate management of specific Tunnels — for example, letting an application team manage one Tunnel without exposing the rest of your account.

Refer to Granular permissions.

Was this helpful?

YesNo

On this page

Configuration (3) - 图1Docs

{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/tunnel/configuration/#page","headline":"Configuration","description":"Configure tunnel ingress rules, origins, and protocol settings.","url":"https://developers.cloudflare.com/tunnel/configuration/","inLanguage":"en","image":"https://developers.cloudflare.com/tunnel/configuration/og.png?v=14e1af8a35a5d43c","dateModified":"2026-09-29","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":["Post-quantum","QUIC"]}


description: Parameters for configuring the connection between cloudflared and your origin. title: Origin parameters image: https://developers.cloudflare.com/tunnel/reference/origin-parameters/og.png?v=531cc09a47f4ac85


Skip to content

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