/tokio-vmess

a proxy implement with http / socks5 in-bound and vmess out-bound, written in Rust and tokio.rs

Primary LanguageRustApache License 2.0Apache-2.0

tokio-vmess

Write a v2ray core for fun

an Asynchronous proxy implement with http / socks5 in-bound and vmess out-bound, written in Rust and tokio

Config

{
    "port": 18002,
    "proxy_type" : "socks", 
    "proxy_dist" : "ip:port",
    "uuid" : "uuid of vmess proxy server"
}

Launch

  • run the code
$ cargo run ./config.json 
  • compile
$ cargo build --release

Description

  • This program draws from the ylxdzsw's v2socks and here rewrite it into an Asynchronous one
  • Socks5 inbound proxy is done. Http inbound only completes the part where the target server is ipv4. It is tested by cURL:
$ curl --proxy 127.0.0.1:18002 $destip