A secure and efficient HTTP/HTTPS proxy server and client written in Rust.
- HTTP and HTTPS proxy support
- Client-server architecture
- Secure communication with AES-256-GCM encryption
- Multiple proxy modes:
- HTTP proxy
- Transparent proxy
- Authentication mechanism
- Asynchronous I/O with Tokio
- Configurable via TOML files
- Rust and Cargo (1.75.0 or later recommended)
# Clone the repository
git clone https://github.com/yourusername/proxy-rs.git
cd proxy-rs
# Build the project
cargo build --release
# The binaries will be available in target/release/- Configure the server by editing
config/server.toml:
bind_addr = "0.0.0.0:1024" # Address and port to listen on
auth_key = "your_secret_key" # Authentication key- Run the server:
cargo run --bin server
# Or use the binary directly
./target/release/server- Configure the client by editing
config/client.toml:
local_addr = "127.0.0.1:8888" # Local address and port to listen on
server_addr = "http://server_ip:1024" # Address of the proxy server
auth_key = "your_secret_key" # Authentication key (must match server)
mode = "Http" # Proxy mode: Http, Socks5, or Transparent- Run the client:
cargo run --bin client
# Or use the binary directly
./target/release/client- Configure your browser or application to use the proxy at the address specified in
local_addr(e.g., 127.0.0.1:8888).
| Option | Description |
|---|---|
bind_addr |
The address and port where the server listens for connections |
auth_key |
Secret key used for client authentication |
cert_path |
(Optional) Path to TLS certificate for HTTPS |
key_path |
(Optional) Path to TLS private key for HTTPS |
| Option | Description |
|---|---|
local_addr |
The address and port where the client listens for connections |
server_addr |
The URL of the proxy server |
auth_key |
Secret key for server authentication |
mode |
Proxy mode: Http, Socks5, or Transparent |
- All communication between client and server is encrypted using AES-256-GCM
- Authentication is required for all connections
- Passwords are hashed using SHA-256
The kite is open-sourced software licensed under the MIT license.