#socks5-proxy #http-proxy #sock #hub #convert #vpn #privoxy

bin+lib socks-hub

Convert http proxy or socks5 proxy to socks5 proxy

12 releases

new 0.2.1 Jan 3, 2025
0.2.0 Dec 22, 2024
0.1.15 Dec 17, 2024
0.1.14 Jun 11, 2024
0.1.0 Jan 22, 2024

#1287 in Network programming

Download history 8/week @ 2024-09-25 22/week @ 2024-10-02 1/week @ 2024-12-04 109/week @ 2024-12-11 166/week @ 2024-12-18 10/week @ 2024-12-25

286 downloads per month

MIT and maybe GPL-3.0-or-later

79KB
1.5K SLoC

socks-hub

Crates.io socks-hub Documentation Download License Rust

SOCKS-HUB is a SOCKS5 proxy hub. It can convert HTTP/HTTPS proxy to SOCKS5 proxy, and can also forward SOCKS5 proxy.

It is a simple and efficient alternative to privoxy. Compared with the tens of thousands of lines of privoxy code, SOCKS-HUB has only 800 lines of code, so you won't have any mental burden when using it.

Wish you happy using it.

Installation

Install from binary

Download the binary from releases and put it in your PATH.

Install from source

If you have rust toolchain installed, this should work:

cargo install socks-hub

Usage

SOCKS5 hub for downstreams proxy of HTTP or SOCKS5.

Usage: socks-hub.exe [OPTIONS] --listen-proxy-role <URL> --remote-server <URL>

Options:
  -l, --listen-proxy-role <URL>  Source proxy role, URL in the form proto://[username[:password]@]host:port, where proto is one of socks5,
                                 http. Username and password are encoded in percent encoding. For  
                                 example: http://myname:pass%40word@127.0.0.1:1080
  -r, --remote-server <URL>      Remote SOCKS5 server, URL in form of socks5://[username[:password]@]host:port
  -a, --acl-file <path>          ACL (Access Control List) file path, optional
  -v, --verbosity <level>        Log verbosity level [default: info] [possible values: off, error, warn, info, debug, trace]
  -h, --help                     Print help
  -V, --version                  Print version

Dependencies

~0–12MB
~145K SLoC