Trojan
Trojan 是最常用的国产 TLS 代理。它可以用于各种组合。
| 协议和实现组合 | 规范 | 抵抗被动检测 | 抵抗主动探测 |
|---|---|---|---|
| Origin / trojan-gfw | trojan-gfw.github.io | ||
| 基础 Go 实现 | / | ||
| 配合 V2Ray 私有传输 | 无正式定义 | ||
| 配合 uTLS 启用 | 无正式定义 |
密码生成器
| 生成密码 | 操作 |
|---|---|
|
服务端示例
{
"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
}
}
]
}
{
"inbounds": [
{
"type": "trojan",
"listen": "::",
"listen_port": 8080,
"users": [
{
"name": "example",
"password": "password"
}
],
"tls": {
"enabled": true,
"server_name": "example.org",
"acme": {
"domain": "example.org",
"email": "[email protected]"
}
},
"multiplex": {
"enabled": true
}
}
]
}
{
"inbounds": [
{
"type": "trojan",
"listen": "::",
"listen_port": 8080,
"users": [
{
"name": "example",
"password": "password"
}
],
"tls": {
"enabled": true,
"server_name": "example.org",
"acme": {
"domain": "example.org",
"email": "[email protected]",
"dns01_challenge": {
"provider": "cloudflare",
"api_token": "my_token"
}
}
},
"multiplex": {
"enabled": true
}
}
]
}
客户端示例
提示
使用 sing-box merge 命令将配置和证书合并为一个文件。