Documentation
¶
Overview ¶
Package rtcp implements remote TCP port forwarding.
Usage:
-listen rtcp://:REMOTE_PORT/LOCAL_HOST:LOCAL_PORT -forward ssh://user:pass@server:22
Asks the last hop in the proxy chain to listen on REMOTE_PORT, and forwards each incoming remote connection to LOCAL_HOST:LOCAL_PORT locally.
The last hop in the forward chain MUST support remote listening (e.g. ssh, socks5 with BIND). Protocols like ss, vmess, trojan, http proxy do NOT support this — an error is shown.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RTCP ¶
type RTCP struct {
// contains filtered or unexported fields
}
RTCP is a remote TCP port forwarder.
func (*RTCP) ListenAndServe ¶
func (s *RTCP) ListenAndServe()
ListenAndServe asks the remote end to listen, then relays connections locally. Includes retry with exponential backoff for resilience.
Click to show internal directories.
Click to hide internal directories.