# socks-hub
[](https://crates.io/crates/socks-hub)

[](https://docs.rs/socks-hub)
[](https://crates.io/crates/socks-hub)
[](https://github.com/ssrlive/socks-hub/blob/master/LICENSE)
`SOCKS-HUB` is a [SOCKS5](https://en.wikipedia.org/wiki/SOCKS#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](https://www.privoxy.org/).
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](https://github.com/ssrlive/socks-hub/releases) and put it in your `PATH`.
### Install from source
```shell
cargo install socks-hub
```
## Usage
```shell
socks-hub -h
socks-hub application.
Usage: socks-hub.exe [OPTIONS] --local-addr <IP:port> --server-addr <IP:port>
Options:
-s, --server-addr <IP:port> Remote SOCKS5 server address
-u, --username <username> Client authentication username, available both for HTTP and SOCKS5, optional
-p, --password <password> Client authentication password, available both for HTTP and SOCKS5, 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
```