A Rust implementation of a Trojan VPN client that provides a local SOCKS5 proxy interface.
SOCKS5 client -> Trojan VPN Client -> Trojan VPN Server
Edit a configuration file at cfg/config.json:
{
"debug": true,
"listen_address": "127.0.0.1:1080",
"server_address": "trojan_server_ip_address:PORT",
"password": "your_password"
}| Option | Description |
|---|---|
debug |
Enable debug output (shows requested addresses) |
listen_address |
Local SOCKS5 proxy address and port |
server_address |
Trojan server address and port |
password |
Password for Trojan server authentication |
cargo build --releasecargo run --releaseOnce running, configure your application to use the SOCKS5 proxy at the listen_address (default: 127.0.0.1:1080).
- Download chrome extension SOCKS5 Proxy
- Setting chrome extension with "Proxy Host:127.0.0.1" and "Proxy Port:1080" - you're client ip and port
- Enjoy
curl --proxy socks5://127.0.0.1:1080 https://example.comMIT