Expand description
This crate provides SOCKS proxy client and server implementations. It supports both SOCKS5 and SOCKS6 protocols.
While the crate is still in development, it is already usable.
§Chaining Features
For SOCKS version 5
, chaining is not supported yet. It will be added in the future.
Hence, it works in the following way: Client -> Socks5 -> Destination
For SOCKS version 6
, chaining is supported. It means that you can chain multiple SOCKS6 proxies together.
Apart from working like version 5, it can also be used to do this - Eg. Client -> Socks6 -> Socks6 -> Destination
Re-exports§
pub use addresses::Address;
pub use addresses::ProxyAddress;
pub use credentials::Credentials;
pub use interface::SocksHandler;
pub use socks5::Socks5Client;
pub use socks5::Socks5Handler;
pub use socks6::Socks6Client;
pub use socks6::Socks6Handler;
pub use util::get_original_dst;
pub use util::resolve_addr;
pub use util::try_read_initial_data;
Modules§
- Common network address representations
- SOCKS protocol Constants used across the crate.
- Credential management for the SOCKS proxy.
- Main interface for handling SOCKS.
- SOCKS5-specific implementations.
- SOCKS6-specific implementations.
- Utility functions and helpers.
Functions§
- Copies data in both directions between
a
andb
.