Sovereign 8s.is mirror of standardgalactic/rsocx
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
b23r0 30530a85c4
Some checks failed
Rust / build (push) Has been cancelled
Update README.md
2022-01-24 15:03:14 +08:00
.cargo alpha version 2021-11-13 13:22:26 +08:00
.github/workflows Create rust.yml 2021-11-30 12:46:06 +08:00
src rollback 2021-12-30 18:43:10 +08:00
.travis.yml alpha version 2021-11-13 13:22:26 +08:00
Cargo.toml up to 0.1.2 2021-12-30 18:47:34 +08:00
LICENSE Initial commit 2021-11-02 21:54:03 +08:00
README.md Update README.md 2022-01-24 15:03:14 +08:00

rsocx Build Status ChatOnDiscord Crate

A high performence Socks5 proxy server with bind/reverse support implementation by Rust

Features

  • Async-std
  • No unsafe code
  • Single executable
  • Linux/Windows/Mac/BSD support
  • Support reverse mode(Not bind any port in client)

Build & Run

$> cargo build --release

Installation

$> cargo install rsocx

Usage

Bind Mode

You can run a socks5 proxy and listen port at 1080

$> ./rsocx -l 1080

Reverse Mode

First listen a port waiting for slave connection

$> ./rsocx -t 8000 1080

then reverse connect to master in slave

$> ./cliws -r 127.0.0.1 8000

Benchmark

Simple load test through proxychains4 visit to Tornado's helloworld case in LAN.

import grequests
import time
start = time.time()
req_list = [grequests.get('http://192.168.0.222:8888') for i in range(1000)]
res_list = grequests.map(req_list)
print(time.time()-start)

Test Envoriment

Envoriment Value
Proxy OS Windows11
CPU i7-9700k
Target OS Ubuntu20.04
Network LAN
Target Server Tornado(Python)
Test Count 1k
Socks5 client Proxychains4

Test Result

Project Language Base Take Time
rsocx Rust Async-std 12.90s
rsocx(reverse) Rust Aysnc-std 24.65s
merino Rust Tokio 12.37s
go-socks5 Golang goroutine 12.31s
simple-socks Nodejs async 13.71s
asio5 C++ Boost::Asio 12.37s
esocks Java Thread-Pool 25.06s

(Test Date : 13 Nov 2021)

Socks5 Protocol Support

  • IPV6 Support
  • SOCKS5 Authentication Methods
    • NOAUTH
    • USERPASS
  • SOCKS5 Commands
    • CONNECT
    • BIND
    • ASSOCIATE

Reference