A lightweight, dependency-free SOCKS5 proxy server written in Rust. Built exclusively using Rust's standard library, it runs on any platform and architecture supported by Rust.
- SOCKS5 protocol implementation (RFC 1928)
- Zero external dependencies (pure Rust stdlib)
- Cross-platform support (Windows/Linux/macOS)
- Basic username/password authentication
- Simple to configure and deploy
-
Clone the repository:
git clone https://github.com/pj1234678/RustySOCKS5.git cd rustysocks5 -
Build with Cargo:
cargo build --release
Binary will be located at target/release/rustysocks5
Start the proxy server:
./rustysocks5Default configuration:
- Listen address:
127.0.0.1:1080 - Authentication: enabled (see configuration below)
Client configuration examples:
curl --socks5 http://admin:password@127.0.0.1:1080 https://example.comModify authentication credentials in source code (before compiling):
// src/main.rs (line XX-XX)
if username != b"admin" || password != b"password" {
// Authentication logic
}- Default credentials are for demonstration purposes only
- Hardcoded credentials are not production-safe
- For real-world use:
- Store credentials in environment variables
- Use proper secret management
- Consider implementing encryption
Contributions are welcome! Please follow standard GitHub workflow:
- Fork the repository
- Create a feature branch
- Submit a pull request
MIT License.