Expand description
TCP stream proxy service
Implements raw TCP proxying with a standalone serve() method.
Provides bidirectional tunneling between clients and backends.
Optionally terminates TLS at the proxy (driven by the endpoint’s
stream.tls config) and/or prepends a PROXY protocol v2 header to the
upstream connection (driven by stream.proxy_protocol).
Structs§
- TcpStream
Service - TCP stream proxy service
Functions§
- build_
proxy_ protocol_ v2_ header - Build a PROXY protocol v2 header describing a proxied TCP connection from
src(the real client) todst(the proxy’s listener address). - tls_
acceptor_ from_ resolver - Build a
TlsAcceptorfor L4 TLS termination from a dynamic SNI cert resolver.