Documentation
¶
Overview ¶
Package ltcp implements local TCP port forwarding.
Usage:
-listen ltcp://:LOCAL_PORT/TARGET_HOST:TARGET_PORT -forward ssh://user:pass@server:22
Listens on LOCAL_PORT locally and forwards each connection through the proxy chain to TARGET_HOST:TARGET_PORT on the remote side.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LTCP ¶
type LTCP struct {
// contains filtered or unexported fields
}
LTCP is a local TCP port forwarder.
func (*LTCP) ListenAndServe ¶
func (s *LTCP) ListenAndServe()
ListenAndServe listens on local addr and serves connections.
Click to show internal directories.
Click to hide internal directories.