Trojan
Protocol standard
- https://trojan-gfw.github.io/trojan/protocol
- https://en.wikipedia.org/wiki/Transport_Layer_Security
- https://en.wikipedia.org/wiki/Server_Name_Indication
Sample
ProxyTrojan = trojan, 192.168.20.6, 443, password=password1, udp-relay=false, skip-cert-verify=true, sni=www.google.com, ws=true, ws-path=/index.html, ws-headers=X-Header-1:value|X-Header-2:value
Format
{proxy name} = trojan, {server}, {port}, {password}, {udp-relay}, {skip-cert-verify}, {sni}, {ws}, {ws-path}, {ws-headers}
Params
Name | Value | Mandatory | Note |
---|---|---|---|
proxy name | - | true | |
server | - | true | Support domain and ip format |
port | 0 - 65535 | true | |
password | - | true | |
udp-relay | true false | false | Default value: false |
skip-cert-verify | true false | false | Default value: false |
sni | - | false | Definition is unnecessary when the SNI value is the same as the host value |
ws | true false | false | Default value: false |
ws-path | - | false | Default value: / usable only when ws set to true |
ws-headers | - | false | Value format: Header-1:value-1|Header-2:value-2 Key and value is divided by colon Entries are divided by vertical bar Usable only when ws set to true |