Skip to content

dimkinthepro/trojan_client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trojan VPN Client

A Rust implementation of a Trojan VPN client that provides a local SOCKS5 proxy interface.

Scheme

SOCKS5 client -> Trojan VPN Client -> Trojan VPN Server

Configuration

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"
}

Configuration Options

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

Building

cargo build --release

Running

cargo run --release

Usage

Once running, configure your application to use the SOCKS5 proxy at the listen_address (default: 127.0.0.1:1080).

Example with Google Chrome:

  1. Download chrome extension SOCKS5 Proxy
  2. Setting chrome extension with "Proxy Host:127.0.0.1" and "Proxy Port:1080" - you're client ip and port
  3. Enjoy

Example with curl:

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

License

MIT

About

A Rust implementation of a Trojan VPN client that provides a local SOCKS5 proxy interface.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages