Trojan Rust

Trojan Client

Local SOCKS5 proxy client for the Trojan protocol

trojan-client runs a local SOCKS5 proxy that forwards traffic through a Trojan server over TLS.

Application ──SOCKS5──▶ trojan-client ──TLS+Trojan──▶ trojan-server ──▶ Target

Features

  • SOCKS5 proxy with TCP CONNECT and UDP ASSOCIATE support
  • TLS 1.2/1.3 with SNI, ALPN, and custom CA support
  • First-packet bundling to reduce latency and minimize traffic fingerprinting
  • Zero-config SNI extracted automatically from the remote address

Quick Start

trojan client -c client.toml
[client]
listen = "127.0.0.1:1080"
remote = "trojan.example.com:443"
password = "my-secret-password"

This starts a local SOCKS5 proxy on port 1080. All traffic is forwarded through the Trojan server.

Test with curl

curl --proxy socks5h://127.0.0.1:1080 https://example.com

On this page