LuoboyunNo wish to host? New users get 1 GB of trial traffic for 24 hoursWorks with Clash / Mihomo; pay by Alipay, WeChat or cryptoTry 1 GB freeAdLuoboyun: 1 GB of trial trafficValid 24 hours; Alipay, WeChat, cryptoTry 1 GB freeAd
hi-ddify.org
One signpost; the way depends on what you fear

Domains

Direct or behind a CDN

One signpost; the way depends on what you fear Milestone Society, CC BY-SA 2.0

Direct is fast and shows the IP, a CDN is steadier and takes a detour. One table, and how to have both with Direct for everyday.

With the first domain the panel asks how it is set up. The answer decides the path of the data and whether it survives a block.

Like parcels: direct means to your door, fast, and everyone knows where you live; CDN goes through a pick-up point, slower, with your address hidden. Neither is always better.

The difference

DirectCDN
PathYou to the serverYou to a CDN node to the server
DelayLowHigher
SpeedThe server's routeWherever the CDN puts you
Server IPVisibleHidden
After an IP blockDownStill works
ProtocolsAllOnly over WebSocket, gRPC, HTTPUpgrade, XHTTP
RealityYesNo
Hysteria2, TUICYesNo, they use UDP
A fork in the road: direct and CDN each have a cost
A fork in the road: direct and CDN each have a cost Wikideas1, CC0

Have both

The calmest setup is one Direct and one CDN domain. The app tests them and takes the fast one; when the IP is blocked the direct ones stop answering and it falls back.

  1. a.example.comDirect, grey, everyday
  2. b.example.comCDN, orange, reserve
  3. s.example.comSubscription only, orange, links
A division of labour

Three common slips

  1. Orange with Direct: the panel checks the record, finds another IP and refuses.
  2. Grey with CDN: that publishes the IP you meant to hide. Refused too.
  3. Testing at once: records need minutes to spread.
Server racks: with a CDN, users first reach someone else's machines
Server racks: with a CDN, users first reach someone else's machines NOIRLab/NSF/AURA/T. Slovinský, CC BY 4.0

Cloudflare's terms

A CDN is for websites, and a lot of other traffic may break the terms and limit the account. A reserve domain used now and then is one thing, dozens of people watching video every day another.

Which one am I using

Your computer
nslookup a.example.com
nslookup b.example.com

The server's IP means direct; an unknown address owned by Cloudflare means CDN. Trust the result, not the colour of the cloud.

Why CDN speed varies

A CDN has hundreds of locations and your provider's route decides which one you get. The same domain may land next door or on another continent, so both "fast" and "terrible" are true. You can enter a better CDN address for your users in the panel's domain settings; test it yourself, others' results need not fit.

What CDN nodes need

  1. Transport WebSocket, gRPC, HTTPUpgrade or XHTTP.
  2. A supported port; for Cloudflare https: 443, 2053, 2083, 2087, 2096, 8443.
  3. SSL/TLS mode Full or Full (strict).
  4. For gRPC, switch it on under Network.

Miss one and you only see timeouts.

The day direct stops

All direct nodes are red. Test 443 from a mobile network and from abroad: fine abroad and dead at home means the IP is blocked.

  1. Check the CDN domainUpdate your own subscription
  2. Ask everyone to updateNo new links
  3. Ask the host for a new IPMinutes to hours
  4. Change the DNSThe direct domain to the new IP
The same day

With a CDN domain prepared, users may not notice at all.

The subscription-only domain

If the subscription link is blocked nobody can update. A domain behind a CDN that only serves subscriptions carries no traffic and lives longer. Set it to Subscription only and it will not appear in nodes.

Costs

Direct needs only the server. CDN works with a free plan and one domain of your own; subdomains cost nothing.

The ping through a CDN is tiny. Is it faster?

No. That is the ping to the nearest node; the data still goes on to the server.

The IP is blocked already. Is it too late?

No, as long as the server is up.

Free subdomains behind a CDN?

Cloudflare needs control of the domain's NS, which most free ones do not give.

Does a direct domain need a certificate?

Not with Reality. With TLS the panel gets one by itself.

A CDN that requires registration and forbids this use?

Do not; read the terms of the one you choose.

Two more to read

FixingThe panel's link is goneForgotten address or password, or a link that will not open: the commands to recover it, by whether you can still log in to the server.MovingNew server, and the users do nothingAn IP is blocked or you want another host. Move the panel with a backup, keep the domain, change DNS, and users only update.

While you are here

About: direct vs CDN, proxy behind CDN, hide server IP