Skip to content

Commit

Permalink
Update arguments for cloudflared tunnel run (cloudflare#9783)
Browse files Browse the repository at this point in the history
* Update cloudflared arguments and env vars

* Run prettier on that file

* Add edge-bind-address to ToC

* Update content/cloudflare-one/connections/connect-apps/install-and-setup/tunnel-guide/local/local-management/arguments.md

Co-authored-by: ranbel <[email protected]>

* Update content/cloudflare-one/connections/connect-apps/install-and-setup/tunnel-guide/local/local-management/arguments.md

Co-authored-by: ranbel <[email protected]>

---------

Co-authored-by: ranbel <[email protected]>
  • Loading branch information
iBug and ranbel authored Jul 10, 2023
1 parent 8809dc7 commit 0e69e72
Showing 1 changed file with 25 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ cloudflared tunnel --url localhost:8000 --no-chunked-encoding run mytunnel

- [`config`](#config)
- [`edge-ip-version`](#edge-ip-version)
- [`edge-bind-address`](#edge-bind-address)
- [`autoupdate-freq`](#autoupdate-freq)
- [`no-autoupdate`](#no-autoupdate)
- [`origincert`](#origincert)
Expand All @@ -38,14 +39,26 @@ Specifies the path to a config file in YAML format.

## `edge-ip-version`

| Syntax | Default |
| -------------- | --------------------------- |
| `edge-ip-version value` | `auto` |
| Syntax | Default | Environment Variable |
| ----------------------- | ------- | ------------------------ |
| `edge-ip-version value` | `auto` | `TUNNEL_EDGE_IP_VERSION` |

Specifies the IP address version (IPv4 or IPv6) used to establish a connection between `cloudflared` and the Cloudflare global network. Available values are `auto`, `4`, and `6`.

The value `auto` relies on the host operating system to determine which IP version to select. The first IP version returned from the DNS resolution of the region lookup will be used as the primary set. In dual IPv6 and IPv4 network setups, `cloudflared` will separate the IP versions into two address sets that will be used to fallback in connectivity failure scenarios.

## `edge-bind-address`

| Syntax | Environment Variable |
| ------------------------- | -------------------------- |
| `edge-bind-address value` | `TUNNEL_EDGE_BIND_ADDRESS` |

Specifies the outgoing IP address used to establish a connection between `cloudflared` and the Cloudflare global network.

By default, `cloudflared` lets the operating system decide which IP address to use. This option is useful if you have multiple network interfaces available and want to prefer a specific interface.

The IP version of `edge-bind-address` will override [`edge-ip-version`](#edge-ip-version) (if provided). For example, if you enter an IPv6 source address, `cloudflared` will always connect to an IPv6 destination.

## `autoupdate-freq`

| Syntax | Default |
Expand All @@ -56,9 +69,9 @@ Configures autoupdate frequency. See also: [`no-autoupdate`](#no-autoupdate).

## `no-autoupdate`

| Syntax | Default |
| --------------- | ------- |
| `no-autoupdate` | `false` |
| Syntax | Default | Environment Variable |
| --------------- | ------- | -------------------- |
| `no-autoupdate` | `false` | `NO_AUTOUPDATE` |

Disables periodic check for updates, restarting the server with the new version. See also: [`autoupdate-freq`](#autoupdate-freq). Restarts are performed by spawning a new process that connects to the Cloudflare global network. On successful connection, the old process will gracefully shut down after handling all outstanding requests.

Expand All @@ -72,9 +85,9 @@ Specifies the Tunnel certificate for one of your zones, authorizing the client t

## `grace-period`

| Syntax | Default |
| -------------- | ------- |
| `grace-period` | `30s` |
| Syntax | Default | Environment Variable |
| -------------- | ------- | --------------------- |
| `grace-period` | `30s` | `TUNNEL_GRACE_PERIOD` |

When `cloudflared` receives SIGINT/SIGTERM it will stop accepting new requests, wait for in-progress requests to terminate, then shut down. Waiting for in-progress requests will timeout after this grace period, or when a second SIGTERM/SIGINT is received.

Expand Down Expand Up @@ -142,8 +155,8 @@ Specifies the verbosity of logging. The default `info` level does not produce mu

## `token`

| Syntax | Environment Variable |
| --------------- | -------------------- |
| `token value` | `TUNNEL_TOKEN` |
| Syntax | Environment Variable |
| ------------- | -------------------- |
| `token value` | `TUNNEL_TOKEN` |

Associates the `cloudflared` instance with a specific tunnel. The tunnel's token is shown in the dashboard when you first [create the tunnel](/cloudflare-one/connections/connect-apps/install-and-setup/tunnel-guide/remote/). You can also retrieve the token using the [API](/api/operations/cloudflare-tunnel-get-a-cloudflare-tunnel-token).

0 comments on commit 0e69e72

Please sign in to comment.