Skip to content

About

Configure the server side of Agent Clash, optimize the server network speed, and greatly improve the effect.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VPS 代理服务器搭建与优化手册

适用于在 VPS 上搭建多协议代理服务端,并通过 Clash Verge(mihomo 内核)客户端使用。

适用场景

  • 需要多协议备份(TCP 被限速时 UDP 协议顶上)
  • 多台 VPS 统一管理,共用一份订阅
  • 对网络性能有要求(BBRv3、大缓冲区)

目录结构

├── configs/
│   ├── xray/         Xray 服务端配置(VLESS Reality / VMess WS / Trojan / SS2022 / gRPC)
│   ├── hysteria2/    Hysteria2 服务端配置
│   ├── sing-box/     sing-box TUIC v5 配置
│   ├── wireguard/    WireGuard 服务端配置
│   └── nginx/        nginx 反代配置(WS + 订阅文件)
├── subscription/     Clash mihomo 订阅 YAML 模板
├── sysctl/           内核网络参数优化
├── limits/           文件句柄限制
└── docs/
    ├── 01-server-setup.md    服务器初始化
    ├── 02-protocols.md       各协议部署步骤
    ├── 03-network-tuning.md  网络性能调优
    └── 04-client-config.md   客户端配置说明

快速开始

  1. 阅读 服务器初始化
  2. 按需部署 各协议
  3. 应用 网络调优
  4. 配置 客户端

协议选择建议

场景 推荐协议
默认 / 最稳定 VLESS + Reality
TCP 被 QoS 时 Hysteria2 > TUIC v5 > WireGuard
需要穿透检测 VLESS + Reality(伪装成正常 TLS)
路由器级别代理 WireGuard

关键经验

  • UDP 端口:GFW 只对 UDP 443 稳定放行 QUIC 流量,非标准 UDP 端口(4443、8443 等)常被拦截。Hysteria2 / TUIC 务必跑在 UDP 443。
  • TCP 端口:走 nginx 8443 反代,比裸 Xray 端口稳定。
  • BBRv3:内核 6.x+ 的 bbr 即为 v3,升级内核是最有效的提速手段。
  • XHTTP:mihomo 客户端兼容性不稳定,暂不推荐生产使用。

About

Configure the server side of Agent Clash, optimize the server network speed, and greatly improve the effect.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors