Skip to main content

Trojan

Protocol standard

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

NameValueMandatoryNote
proxy name-true
server-trueSupport domain and ip format
port0 - 65535true
password-true
udp-relaytrue
false
falseDefault value: false
skip-cert-verifytrue
false
falseDefault value: false
sni-falseDefinition is unnecessary when the SNI value is the same as the host value
wstrue
false
falseDefault value: false
ws-path-falseDefault value: /
usable only when ws set to true
ws-headers-falseValue 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