Module server
Available on crate feature
socks5 only.Expand description
Socks5 Server Implementation for Rama.
See Socks5Acceptor for more information,
its Default implementation only
supports the Command::Connect method using the DefaultConnector,
but custom connectors as well as binders and udp associators
are optionally possible.
MITM proxies should normally keep the connector and pass its
pre-established ingress/egress rama_core::io::BridgeIo to Rama’s
Relay/Peek services.
Use LazyConnector only when application bytes are genuinely required to
choose the egress target.
Modules§
Structs§
- Binder
- Only “useful” public
Socks5Binderimplementation, which actually is able to accept bind requests and process them. - Connector
- Proxy Forward
Socks5Connectorimplementation, which actually is able to accept connect requests and process them. - Error
- Server-side error returned in case of a failure during the handshake process.
- Lazy
Connector - Lazy
Socks5Connectorimplementation, which accepts a connection but delegates all the work on the egress side to the inner (stream) service. - NoSocks5
Reject Error - non-socks5 connection is rejected
- Socks5
Acceptor - Socks5 server implementation of RFC 1928
- Socks5
Peek Router - A
Servicerouter that can be used to support socks5 traffic as well as non-socks5 traffic. - UdpRelay
- Only “useful” public
Socks5UdpAssociatorimplementation, which actually is able to accept udp-relay requests and process them.
Traits§
- Socks5
Binder - Types which can be used as socks5
Command::Binddrivers on the server side. - Socks5
Connector - Types which can be used as socks5
Command::Connectdrivers on the server side. - Socks5
UdpAssociator - Types which can be used as socks5
Command::UdpAssociatedrivers on the server side.
Type Aliases§
- Default
Binder - Default
Bindertype. - Default
Connector dns - Default
Connectortype. - Default
UdpRelay - Default binder
Servicetype. - Socks5
Prefixed Io PrefixedIoalias used bySocks5PeekRouter.