Enum shadowsocks_service::config::RedirType
source · [−]pub enum RedirType {
NotSupported,
Redirect,
TProxy,
}
Expand description
Transparent Proxy type
Variants
NotSupported
For not supported platforms
Redirect
For Linux-like systems’ Netfilter REDIRECT
. Only for TCP connections.
This is supported from Linux 2.4 Kernel. Document: https://www.netfilter.org/documentation/index.html#documentation-howto
NOTE: Filter rule REDIRECT
can only be applied to TCP connections.
TProxy
For Linux-like systems’ Netfilter TPROXY rule.
NOTE: Filter rule TPROXY
can be applied to TCP and UDP connections.
Implementations
Default TCP transparent proxy solution on this platform
Default UDP transparent proxy solution on this platform
Check if transparent proxy is supported on this platform
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for RedirType
impl UnwindSafe for RedirType
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more