7 releases (1 stable)

Uses new Rust 2024

new 1.0.0 Apr 9, 2025
0.2.5 Oct 13, 2020
0.2.4 Sep 25, 2020

#285 in Command line utilities

Download history 1/week @ 2025-03-04 162/week @ 2025-04-08

162 downloads per month

MIT license

13KB
206 lines

Build

socks5-rs

A lightweight and fast socks5 server written in Rust

Fully async I/O with Tokio!

Recommend to use it in a trusted network (e.g., with wireguard).

Support CONNECT.

NOTE: UDP Associate is not suppoert by 1.0.0

Compiling

install Rust toolchain: click here to install Rust

From crates.io

cargo install socks5-rs

From source

git clone git@github.com:WANG-lp/socks5-rs.git
cd socks5-rs
cargo build --release

Usage

./target/release/socks5-rs -h

Socks5 server in Rust 1.0
Lipeng (wang.lp@outlook.com)
A simple socks5 server

USAGE:
    socks5-rs [OPTIONS]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -b, --bind <BIND_ADDR>    bind address
    -p, --port <BIND_PORT>    bind port

Example: ./target/release/socks5-rs -b 0.0.0.0 -p 8080

Dependencies

~9–16MB
~182K SLoC