Skip to content

Trojan

Trojan uses TLS inherently; it does not need a separate tls: true. For certificate failures, check SNI, device time, and the server certificate.

Node example

Merge this node into the configuration’s proxies list. Replace example addresses, identities, and credentials. If you rename Node, update group references too.

yaml
proxies:
  - name: Node
    type: trojan
    server: proxy.example.com
    port: 443
    password: YOUR_PASSWORD
    sni: proxy.example.com
    udp: true

Protocol fields

FieldHow to configure it
passwordTrojan server password.
sniTLS handshake name matching the server certificate.
networkTCP by default; use ws or grpc when configured on the server.
ws-opts / grpc-optsTransport path, Host, or grpc-service-name.

Groups and rules · Common fields · TLS · Transports

Reference: mihomo.