Awesome Open Source
Awesome Open Source


Trojan-lite is a lightweight Troajn protocol implementation. At the same time it is my personal network programming practice. It has these properties:

  • TCP and UDP are supported
  • Ipv4 and Ipv6 are supported
  • DoT(DNS over TLS)
  • user management API

The current version of trojan-lite is experimental. Tests, bug reports, user feedback, and other experiments are all welcome at this stage.


cargo build --release


# Move to the executable file directory
cd target/release

# Create self signed certificate
openssl req -x509 -nodes -days 1825 -newkey rsa:4096 -keyout server.key -out server.crt

# Run server
RUST_LOG=info ./trojan-lite-server yourpassword1 --cert server.crt --key server.key --threads 4

# For more details you can use `--help` option
./trojan-lite-server --help

Also you can use trojan-lite as a lib [WIP]

trojan-lite = { version = "0.1" , default-features=false }


You can build with '--features perf' option to build a trojan-perf tool.

Use trojan-perf to test loopback throughput:

./trojan-perf --thread 2 --user yourpassword


trojan-lite is licensed under Apache-2.0.

Related Awesome Lists
Top Programming Languages
Top Projects

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Rust (56,118
Network (37,702
Proxy (24,760
Privacy (5,071
Tls (4,951
Trojan (602