Platform
Edge Connections
Publish a web service from any machine, even one behind NAT, on a public HTTPS name in your own domain, with no inbound port.
What it does
Edge Connections publish a web service from a machine you run, such as a server, a VM, a NAS or a Kubernetes cluster, on a public HTTPS name in your own domain, for example nas.example.com. The machine can sit behind NAT. No inbound port is opened and nothing changes on your router: a small connector on the machine, Cloudflare's cloudflared, dials out to Cloudflare, and Cloudflare sends visitors down that connection.
Everything runs in your own Cloudflare account. CloudOps creates the tunnel and the DNS records there for you, with a token you give it once.
- The internetVisitorOpens nas.example.com in a browser
- HTTPS
- Cloudflare, your accountDNS name and tunnelAnswers with a valid certificate
- through the tunnel
- Your machine, behind NATConnectorcloudflared, which dialled out to Cloudflare. No inbound port.
- local network
- Your networkYour serviceFor example http://127.0.0.1:8080
Edge Connections are in beta. They publish HTTP and HTTPS services only. TCP, UDP, SSH and remote desktop are not supported yet, and there is no built-in login in front of a published service.
Before you start
- A Cloudflare account. The free plan is enough. An account used only for Edge Connections is safest, because the token you create below can change every tunnel in its account.
- Your domain's DNS on Cloudflare, as a zone in that account.
- An administrator in the console. Other roles can see connections but not change them.
- Outbound access from the machine: HTTPS, and port 7844 to Cloudflare, which is the port
cloudflareduses. Nothing needs to reach the machine from outside.
1. Create a Cloudflare API token
In the Cloudflare dashboard, open My Profile → API Tokens and create a custom token with two permissions:
- Account → Cloudflare Tunnel → Edit
- Zone → DNS → Edit, on the zones you will publish under
Copy the token. Cloudflare shows it only once.
2. Link the account
In the console, open Networking → Edge Connections. Under Your Cloudflare account, paste the token and press Link account. If the token reaches more than one Cloudflare account, also enter the account ID.
CloudOps checks the token, lists the zones you can publish under, and stores the token encrypted. It is never shown again; the console shows a short fingerprint instead. If the account already has tunnels that CloudOps did not create, the console warns you, because the token can change those too. CloudOps only ever changes tunnels it created.
3. Create a connector
A connector is one tunnel plus the cloudflared program that runs it on one machine. One connector can publish several services on that machine's network. Give it a name of lowercase letters, digits and hyphens, and press Create connector.
You can also start from a server, VM or Kubernetes cluster page: press Expose to internet, and Edge Connections opens for that machine.
4. Install it on the machine
Pick the way that fits the machine:
- A Linux server CloudOps manages: CloudOps installs it over the access it already has. Press Install on server.
- A Kubernetes cluster CloudOps built: press Apply to cluster.
- Any other Linux machine with systemd: press Install command and run the command on the machine as root.
- A NAS, or a machine without systemd: run the Docker command from the same place.
- A Kubernetes cluster you imported: run the one
kubectlcommand shown, wherekubectlpoints at the cluster.
An install command works once and expires after 15 minutes. Generating a new one cancels the previous one.
The Linux installer puts a pinned, checksum-verified cloudflared under /opt/cloudops/cloudflared, with its settings under /etc/cloudops/cloudflared, and runs it as the cloudops-cloudflared service. It runs on x86-64 and ARM64. If it finds a cloudflared that you installed yourself, it stops and tells you, and leaves yours alone.
With Docker, the tunnel token is in the container's environment, so anyone who can run docker on that machine can read it. In Kubernetes, the connector runs as a two-replica Deployment in the cloudops-edge namespace.
The connector shows Connected once Cloudflare reports a live connection from the machine, not merely when the command finishes.
5. Publish a service
Under Public routes, open Publish a service and fill in:
- Public name: your domain, or one level below it, such as
nas.example.com. Deeper names such asa.b.example.comare refused, because Cloudflare's free certificate does not cover them. Wildcards are not supported. - Path (optional): publish only part of a site, such as
/api. - Service address: where the connector finds the service, as
scheme://host:port. That can be the machine itself (http://127.0.0.1:8080), another device on its network (http://192.168.1.20), or in Kubernetes a service name (http://web.default.svc.cluster.local:80). - Verify the service's certificate: for an
https://service. Turn it off only for a self-signed certificate.
CloudOps creates the DNS record in your zone and points it at the tunnel. The route shows Live once it is published, and visitors get a valid HTTPS certificate from Cloudflare.
Some service addresses are refused: link-local addresses, which include cloud metadata services, and, on a server rented from the marketplace, anything other than that server and its own VMs.
Everything you publish is public
Anyone on the internet can open a published address. Publish only services that have a login of their own or are meant to be public.
Settings in your Cloudflare zone, such as redirect rules or page rules, still apply to these names, and can answer a visitor before the request reaches your service.
Limits
By default you can link one Cloudflare account, create three connectors, and publish 20 routes per connector.
Suspend, change or remove
- Suspend takes every public name of a connector offline at once. Nothing is deleted, and Resume publishes them again.
- Remove on a route takes it offline right away and deletes its DNS record.
- Delete on a connector takes its names offline right away. The tunnel is deleted from your Cloudflare account once
cloudflaredhas gone from the machine. If CloudOps installed it, CloudOps uninstalls it. Otherwise, run the uninstall command the console shows, which removes only what the installer wrote. With Docker, remove the container instead. - Force remove is for a machine you can no longer reach. The tunnel is deleted without waiting; if the machine still runs the connector, it keeps retrying until someone uninstalls it.
- Unlink makes CloudOps forget the token, and changes nothing in your Cloudflare account. An account that still has connectors cannot be unlinked; delete them first.
Troubleshooting
- Stuck on Waiting for install: the command expired or was already used, in which case the installer says so, or the machine cannot reach Cloudflare on port 7844. Generate a new command and check outbound access.
- A route shows Error: usually a DNS record that CloudOps did not create already holds that name. CloudOps never overwrites it. Delete or rename that record in Cloudflare, or choose another name.
- Visitors see Cloudflare error 1033: no connector is running for that name. Check the connector's state in the console.
- Visitors see error 502: the connector runs but cannot reach the service. From the machine itself, check that the service answers on the address you entered.
- Token refused: Cloudflare no longer accepts the token. Check it in Cloudflare, then press Re-check.