Crate simple_socks5

Crate simple_socks5 

Source
Expand description

A minimal asynchronous SOCKS5 proxy implementation using Tokio.

This crate provides structures and helpers for handling the SOCKS5 protocol (RFC 1928) and optional username/password authentication (RFC 1929). It supports TCP CONNECT, BIND, and UDP ASSOCIATE commands, with configurable authentication methods.

UDP functionality is not yet fully implemented. The server can bind a UDP socket and send a UDP ASSOCIATE reply, but actual UDP packet forwarding and relay logic is not handled yet. Users should not rely on UDP support for production usage.

Modules§

auth
conn
error
SOCKS5 error definitions.
msg
parse
SOCKS5 address and port parsing utilities.

Structs§

Socks5
The main SOCKS5 server struct.

Enums§

ATYP
Represents the address type in SOCKS5 messages.

Type Aliases§

V4
Represents an IPv4 address.
V6
Represents an IPv6 address.