Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cf-node-trio

一台 VPS 把 4 种协议 + 3 种 Cloudflare 入口装齐. 同一份后端,客户端按需切.

English

benchmark

家里测的, VPS 在日本东京. 怎么读这张图: bench/results.md

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

或者:

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

跟着菜单走两下,最后会丢出来一条 vless://... 链接.

协议

reality · ws · hy2 · anytls

sudo bash install.sh --proto reality
sudo bash install.sh --proto hy2                          # 普通
sudo HY2_PORT_RANGE=20000:40000 \
     bash install.sh --proto hy2                          # 端口跳跃
sudo HY2_PORT_RANGE=20000:40000 \
     HY2_OBFS=$(openssl rand -hex 8) \
     bash install.sh --proto hy2                          # 端口跳跃 + 混淆
sudo bash install.sh --proto anytls                       # 普通 (自签证书)
sudo ANYTLS_DOMAIN=at.example.com \
     bash install.sh --proto anytls                       # 真域名 → ACME 真证书 (需 DNS 已指向本机, :80 可达)
sudo bash install.sh --proto all                          # 一次装齐

CF 入口 (基于 ws)

cf-cdn · argo · tunnel

sudo bash install.sh --proto ws --ingress argo            # 不要域名,出节点最快
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

一句话差别:

要域名 要 CF 账号 VPS 开 443 子域稳定
cf-cdn
argo
tunnel

详细对比 / 选型建议: docs/ingress-compare.md

sudo bash install.sh status              # 看现在装了啥
bash install.sh subscribe                # 全部分享链接
bash install.sh subscribe base64         # 订阅链接 (机场格式)
bash install.sh qr all                   # 全部二维码 (ANSI)
sudo bash install.sh port hy2 8443       # 改端口
sudo bash install.sh tune                # 应用 BBR + 大缓冲 + 高并发
sudo bash install.sh uninstall           # 卸载,配置移到备份不直删

tune 做了什么: BBR+fq, TCP 缓冲 64MB, UDP 缓冲 (Hy2 关键), backlog 65535, nofile 1M, ... 详细每条 + 原理: docs/tuning.md

测速复现

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

数据 + 怎么读这张图: bench/results.md

客户端

文档

热度

Star History

License

MIT

About

Modular VPS node deploy: 4 protocols × 3 Cloudflare ingress modes, with on-site benchmark.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages