Back to Article List

Cloudflare Tunnel for Jellyfin: Setup + the ToS catch

Cloudflare Tunnel for Jellyfin: Setup + the ToS catch - Cloudflare Tunnel for Jellyfin: Setup + the ToS catch

Updated and tested 2 November 2026

Cloudflare Tunnel is the most recommended and least examined way to put Jellyfin on the internet. No port forwarding, no public IP needed, free HTTPS on your own domain: the pitch is real and the setup below takes twenty minutes. What the recommendations skip is that streaming video through Cloudflare's free proxy sits in a genuine terms-of-service grey zone, and I'd rather you make that call informed than discover it via a suspended account. Setup first, judgment after.

How Cloudflare Tunnel works

A small daemon (cloudflared) runs next to Jellyfin and opens an outbound connection to Cloudflare's edge. Visitors hit jellyfin.yourdomain.com, Cloudflare relays the traffic down that connection and no inbound port ever opens on your network. That outbound-only trick is why it defeats CGNAT connections where port forwarding is impossible, and why it needs nothing from your router.

Cloudflare Tunnel setup for Jellyfin

Prerequisites: a domain using Cloudflare's nameservers (free plan is fine) and a running Jellyfin on, say, port 8096.

Install cloudflared and authenticate

On the Jellyfin machine (Ubuntu/Debian):

curl -fsSL https://pkg.cloudflare.com/cloudflare-main.gpg | sudo tee /usr/share/keyrings/cloudflare-main.gpg >/dev/null
echo "deb [signed-by=/usr/share/keyrings/cloudflare-main.gpg] https://pkg.cloudflare.com/cloudflared any main" | sudo tee /etc/apt/sources.list.d/cloudflared.list
sudo apt update && sudo apt install cloudflared

Check the result with cloudflared --version before you go on.

apt install cloudflared fetches cloudflared 2026.10.7 from pkg.cloudflare.com, one new package

apt pulled cloudflared straight from Cloudflare's repository, with no other packages.

cloudflared --version prints cloudflared version 2026.10.7 and its build date

cloudflared --version after the install.

The modern management flow lives in Cloudflare's Zero Trust dashboard: Networks » Tunnels » Create a tunnel, name it, and the dashboard hands you a one-line install command with the tunnel token baked in. Run it, and the connector appears green in the dashboard. (The older CLI-only flow with cloudflared tunnel create still works; the dashboard flow is easier to manage later, so it's what I'd use for a first tunnel. Cloudflare's own tunnel docs keep both current.)

Route the hostname to Jellyfin

In the tunnel's Public Hostname tab, add one: subdomain jellyfin, your domain, service http://localhost:8096. Cloudflare creates the DNS record automatically. That's the whole thing; https://jellyfin.yourdomain.com now serves your login page with a valid certificate from anywhere.

Known proxies and cache bypass settings

In Jellyfin's Dashboard » Networking, add the local cloudflared connection to Known proxies so real client IPs land in your logs. And in Cloudflare's dashboard, disable caching for the hostname (a page rule or cache rule set to bypass): media segments cached on Cloudflare's edge is precisely what you don't want, both for correctness and for the section below.

Cloudflare terms of service and media streaming

Cloudflare's terms have long restricted serving video and large non-web files through the CDN proxy on ordinary plans, steering that use toward paid products built for it (Stream, R2). The 2023 terms rewrite softened the flat prohibition into product-specific language, and since then the community record is genuinely contradictory: Cloudflare staff have told individual users that personal, non-cached tunnel streaming is acceptable, while their own forum regulars point at terms language saying video streaming outside Stream/R2 remains off-limits. Both camps quote Cloudflare. That contradiction is the honest state of things in 2026 and anyone telling you it's simply fine, or simply banned, is summarizing away the mess.

Practical read on the risk: enforcement historically lands on egregious volumes (public piracy portals, not families), a personal server for a household of viewers is a rounding error in their traffic and accounts do occasionally get warned or restricted anyway. My own position: I'll hang admin dashboards and light apps off Cloudflare Tunnel all day, and I keep hundreds-of-gigabytes-per-month video streaming off a free proxy whose terms I can't confidently parse. A Jellyfin server deserves a front door with unambiguous rules.

Make room for every file you'll ever keep

Keep your backups and media libraries on reliable storage with unmetered bandwidth and a cost that stays predictable as your archive grows.
Billing Cycle

VPS.H1

$6.99 Save  14 %
$5.99 Monthly
  • 1 vCPU AMD EPYC
  • 2 GB RAMMEMORY
  • 750 GB HDDSTORAGE
  • Unmetered bandwidth
  • IPv4 & IPv6IPv6 is currently unavailable in France, Finland or the Netherlands. included

VPS.H3

$24.99 Save  20 %
$19.99 Monthly
  • 4 vCPU AMD EPYC
  • 8 GB RAMMEMORY
  • 2500 GB HDDSTORAGE
  • Unmetered bandwidth
  • IPv4 & IPv6IPv6 is currently unavailable in France, Finland or the Netherlands. included

VPS.H4

$36.49 Save  18 %
$29.99 Monthly
  • 6 vCPU AMD EPYC
  • 12 GB RAMMEMORY
  • 3500 GB HDDSTORAGE
  • Unmetered bandwidth
  • IPv4 & IPv6IPv6 is currently unavailable in France, Finland or the Netherlands. included

*VAT excluded.

INCLUDED WITH EVERY PLAN

✓ No setup fees ✓1 Gbps network
✓ Free server monitoring ✓ Firewall management ✓24/7 support ✓ KVM virtualization

Alternatives: Tailscale, WireGuard and a VPS endpoint

Two setups deliver the same no-port-forwarding convenience without the grey zone. Tailscale (or plain WireGuard) gives every family device a direct encrypted path to the server, no third party touching the stream; the pattern from our Tailscale remote access guide applies to Jellyfin without modification, and its only cost is installing the app on each viewing device.

The other is moving the public endpoint somewhere with no terms about media at all: a VPS with unmetered bandwidth running either the whole Jellyfin server or just a WireGuard relay back to your home box. Full ownership of the path, a static IP, a normal reverse proxy with Let's Encrypt, and every option in our Jellyfin remote access rundown becomes available without a router in sight. That's the architecture I run myself, on a LumaDock Jellyfin VPS where the unmetered part means a month of 4K remuxes changes nothing on the invoice.

So: build the tunnel, it's a lovely tool and twenty minutes well spent for everything light. Point your heaviest streams through infrastructure whose rules welcome them, and you get remote Jellyfin with nothing to hope about.

Questions?

Why is Jellyfin slow behind Cloudflare?

Every stream takes a detour through Cloudflare's network: cloudflared sends your traffic to the nearest Cloudflare data center, and Cloudflare carries it from there to the viewer. So the speed depends on that whole path as well as on your upload. Play the same file over a direct route (VPN or the server's own address) to see how much the tunnel costs, and lower the client's streaming quality if you stay on it.

Ellie Grace Hayes
About the author

Ellie Grace Hayes

I grew up in Minnesota and started working remotely before I decided that travelling was going to become a permanent part of my life. And it kinda did, more or less... I tend to stay somewhere for a month or two, sometimes longer if I like the place (so "digital nomad" is technically accurate, even if most days are much less exciting than the term suggests). Usually I'm at a desk in a rented room trying to work out why a command behaved differently on two supposedly identical machines :)

I came into technical writing through support work & community tutorials. Linux was the first subject I wrote about, but since then I've wandered into containers, hosting, networking plus a lot of self-hosted software. I've played Minecraft since I was a kid and still go through phases where I get completely absorbed in it for a few weeks. I don't have a five-year plan. I've tried - it keeps becoming a six-month plan instead.

Never run out of space again

Keep backups, archives and media on reliable storage with unmetered bandwidth and a cost per gigabyte that stays low as the years add up. Your first VPS comes with a 30-day money-back guarantee.