Skip to content

Latest commit

 

History

History
112 lines (81 loc) · 3.16 KB

File metadata and controls

112 lines (81 loc) · 3.16 KB

cf-node-trio

Set up 4 proxy protocols + 3 Cloudflare ingress modes on one VPS. Same backend, client picks.

中文

benchmark

Tested from my home network, VPS in Tokyo. How to read this: bench/results.md

Install

bash <(curl -fsSL https://raw.githubusercontent.com/birdfly/cf-node-trio/main/install.sh)

or:

git clone https://github.com/birdfly/cf-node-trio
cd cf-node-trio
sudo bash install.sh

Two menu prompts. It spits out a vless://... at the end.

Protocols

reality · ws · hy2 · anytls

sudo bash install.sh --proto reality
sudo bash install.sh --proto hy2                          # plain
sudo HY2_PORT_RANGE=20000:40000 \
     bash install.sh --proto hy2                          # port hopping
sudo HY2_PORT_RANGE=20000:40000 \
     HY2_OBFS=$(openssl rand -hex 8) \
     bash install.sh --proto hy2                          # hop + obfs
sudo bash install.sh --proto all                          # all four

CF ingress (uses ws)

cf-cdn · argo · tunnel

sudo bash install.sh --proto ws --ingress argo            # no domain, quickest
sudo bash install.sh --proto ws --ingress cf-cdn --domain cdn.example.com
sudo bash install.sh --proto ws --ingress tunnel --domain n.example.com

One-liner:

needs domain needs CF account opens 443 stable subdomain
cf-cdn
argo
tunnel

Full comparison: docs/ingress-compare.md

Use

sudo bash install.sh status              # what's installed
bash install.sh subscribe                # all share links
bash install.sh subscribe base64         # subscription URL format
bash install.sh qr all                   # all QR codes (ANSI)
sudo bash install.sh port hy2 8443       # change a port
sudo bash install.sh tune                # apply BBR + big buffers + high concurrency
sudo bash install.sh uninstall           # uninstall (moves config to backup)

What tune does: BBR+fq, 64MB TCP buffers, UDP buffers (matters for Hy2), backlog 65535, nofile 1M, ... Full breakdown: docs/tuning.md

Reproduce benchmark

bash bench/speedtest.sh \
  --cf-cdn cdn.example.com \
  --argo   xxx.trycloudflare.com \
  --tunnel n.example.com \
  --direct 1.2.3.4:8443

Numbers + how to read: bench/results.md

Clients

Docs

Star history

Star History

License

MIT