Trojan
Torjan 是最常用的国产 TLS 代理。它可以多种组合使用,但只推荐使用 uTLS 和多路复用的组合。
协议实现 | 规范 | 抗被动探测 | 抗主动探测 |
---|---|---|---|
原始设计/trojan-gfw | trojan-gfw.github.io | ✅ | ✅ |
基础 Go 实现 | / | ⚠️ | ✅ |
搭配 V2Ray 私有传输层 | 没有正式定义 | ⚠️ | ⚠️ |
启用 uTLS | 没有正式定义 | ❓ | ✅ |
🔑 密码生成器
生成密码 | 操作 |
---|---|
|
服务端示例
json
{
"inbounds": [
{
"type": "trojan",
"listen": "::",
"listen_port": 8080,
"users": [
{
"name": "example",
"password": "password"
}
],
"tls": {
"enabled": true,
"server_name": "example.org",
"key_path": "/path/to/key.pem",
"certificate_path": "/path/to/certificate.pem"
},
"multiplex": {
"enabled": true
}
}
]
}
客户端实现
json
{
"outbounds": [
{
"type": "trojan",
"server": "127.0.0.1",
"server_port": 8080,
"password": "password",
"tls": {
"enabled": true,
"server_name": "example.org",
"utls": {
"enabled": true,
"fingerprint": "firefox"
}
},
"multiplex": {
"enabled": true
}
}
]
}