加速下载trojan · GitHub Release · 反代镜像加速
v1.16.0本区块自动同步 trojan 的官方 GitHub Release,并为每个文件预生成 4 个反代镜像加速下载通道。 国内访问 GitHub 慢、下载断、连接超时时,挑一个反代列点开即可,无需手动拼接镜像 URL。镜像只改变访问路径,文件内容、版本号、SHA 校验与 GitHub 官方一致。
怎么挑:Windows 优先 .exe / .msi;macOS 优先 .dmg;Linux 选 .deb / .rpm / .AppImage;Android 选 .apk;带 .sig / .asc / .sha256 的是校验文件,不是安装包。
下载慢:从右侧四个反代列里挑一个能通的点开就是加速下载直链,复制后扔下载器也可以。
| 文件 / 平台 | 大小 | 官方直链 | 反代 · gh.llkk.cc | 反代 · ghproxy.net | 反代 · ghfast.top | 反代 · mirror.ghproxy.com |
|---|---|---|---|---|---|---|
trojan-1.16.0-linux-amd64.tar.xzLinux | 1.4 MB | 下载 | 加速 | 加速 | 加速 | 加速 |
trojan-1.16.0-linux-amd64.tar.xz.ascLinux | 833 B | 下载 | 加速 | 加速 | 加速 | 加速 |
trojan-1.16.0-macos.zipmacOS | 1.6 MB | 下载 | 加速 | 加速 | 加速 | 加速 |
trojan-1.16.0-macos.zip.ascmacOS | 833 B | 下载 | 加速 | 加速 | 加速 | 加速 |
trojan-1.16.0-win.zip压缩包 | 15.5 MB | 下载 | 加速 | 加速 | 加速 | 加速 |
trojan-1.16.0-win.zip.asc校验 | 833 B | 下载 | 加速 | 加速 | 加速 | 加速 |
trojan-1.16.0.tar.gz.asc校验 | 833 B | 下载 | 加速 | 加速 | 加速 | 加速 |
trojan-1.16.0.zip.asc校验 | 833 B | 下载 | 加速 | 加速 | 加速 | 加速 |
本页加速下载用到的 4 个 GitHub 反代镜像
| 反代 | 前缀 | 说明 |
|---|---|---|
gh.llkk.cc | https://gh.llkk.cc/ | 国内稳定 |
ghproxy.net | https://ghproxy.net/ | 老牌备份 |
ghfast.top | https://ghfast.top/ | 新生快线 |
mirror.ghproxy.com | https://mirror.ghproxy.com/ | 子域名 |
反代是第三方公益服务,单个通道可能临时挂掉,多挑几个再判断网络是否有问题。所有反代均为 HTTPS,文件内容与 GitHub 原始 Release 字节一致,可放心做 SHA256 校验。
完整 Release 说明:https://github.com/trojan-gfw/trojan/releases/tag/v1.16.0
GitHub 仓库简介:An unidentifiable mechanism that helps you bypass GFW. · 许可 GPL-3.0 · ⭐ 19,727
TL;DR
trojan-gfw 是 Trojan 协议的原始 C++ 参考实现,20K+ stars。当前状态:维护减缓,v1.16.x 最后版本。性能极致:C++ 实现 + 单一协议无冗余。抗审查:依赖 TLS 反代真实网站的设计。新部署建议:Xray-core 内置 Trojan + 同时跑 Reality(更优)。适合:纯 Trojan 服务保留 / 性能敏感场景。
trojan-gfw 是 Trojan 协议生态的”始祖项目”,2019 年由 trojan-gfw 团队发起。本篇按协议原理、部署、与替代品对比四块讲清楚。
协议原理
客户端 → 服务端 443 端口
↓
TLS 握手(用真实证书)
↓
客户端发送密码 + 请求
↓ 服务端检查密码
- 密码正确 → 解包,作为代理转发
- 密码错 / 无密码 → 反向代理到真实网站 (如自己博客 / nginx)
设计目标:让 GFW DPI 看到的 Trojan 流量与正常 HTTPS 完全相同。任何无密码探测都跳转到真实网站,看似是个普通 HTTPS 站点。
部署
安装
# Ubuntu / Debian
apt update && apt install trojan
# 或从源码编译
git clone https://github.com/trojan-gfw/trojan.git
cd trojan && mkdir build && cd build
cmake .. && make
证书
acme.sh --issue -d your.example.com --standalone
acme.sh --install-cert -d your.example.com \
--key-file /etc/trojan/private.key \
--fullchain-file /etc/trojan/cert.pem
config.json
{
"run_type": "server",
"local_addr": "0.0.0.0",
"local_port": 443,
"remote_addr": "127.0.0.1",
"remote_port": 80,
"password": [
"yourpassword"
],
"log_level": 1,
"ssl": {
"cert": "/etc/trojan/cert.pem",
"key": "/etc/trojan/private.key",
"key_password": "",
"cipher": "ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256",
"alpn": ["http/1.1"]
},
"tcp": {
"no_delay": true,
"keep_alive": true,
"fast_open": false
}
}
反代真站
remote_addr/port 指向真实网站(如 nginx 80 端口跑你的博客)。这样无密码探测 → 看到你的博客 = 正常 HTTPS 站。
启动
trojan -c /etc/trojan/config.json
# 或 systemd 服务
systemctl enable --now trojan
客户端
trojan 节点 URL(GUI 客户端导入):
trojan://[email protected]:443?sni=your.example.com#node1
主流客户端全部支持:v2rayN / v2rayNG / Shadowrocket / Karing / Clash Verge Rev / Mihomo Party / sing-box 等。
与替代品对比
| 维度 | trojan-gfw | trojan-go | Xray (Trojan) |
|---|---|---|---|
| 实现 | C++ | Go | Go |
| 性能 | ★★★★★ | ★★★★ | ★★★★ |
| WebSocket | ❌ | ✅ | ✅ |
| CDN 中转 | 需 nginx 配 | 内置 | 内置 |
| 多协议同 binary | ❌ | ❌ | ✅(+VLESS Reality 等) |
| 维护活跃 | ★★ | ★★ | ★★★★★ |
| 推荐场景 | 性能敏感 | 已有部署 | 新部署 |
配套订阅
trojan-gfw 是服务端。客户端用节点 URL 导入。
配套订阅线路 提供 Trojan + VLESS + Hysteria 多协议混合订阅,节省自建成本。
来源与最后核对
- 仓库:github.com/trojan-gfw/trojan
- 同源项目:trojan-go
- 推荐替代:Xray-core 内置 Trojan + Reality
- 协议设计文档:trojan-gfw.github.io
本文最后实际验证日期:2026-05-18,测试环境:Ubuntu 22.04 + trojan-gfw v1.16.0。