alan grow > tcpforward-0.01 > tcpforward   Annotate this POD
New  1 Open  0 View/Report Bugs   tcpforward - forward or tunnel
TCP connections   tcpforward [OPTIONS] -l|-c host1:port1 -l|-c
host2:port2    -l host:port   listen on host:port, forward
accepted connections   -c host:port   connect to host:port,
forward this connection   -N count       exit after forwarding
count connections   -k             fork before forwarding
(default: no)   -s size        chunk size for non-blocking reads
(default: 1024)   -V             print version and exit   -v
turn on parseable logging   -h             display usage
information   Forward local SMTP to a remote mailserver:    $
tcpforward -k -c mailserver:25 -l localhost:25  Forward tunnel
the SSH service on to    []$ tcpforward -l -c localhost:22   []$
tcpforward -c -l localhost:22    []$ ssh localhost  Reverse
tunnel the SSH service on to    []$ tcpforward -l -l
localhost:22   []$ tcpforward -c -c localhost:22   []$ ssh
localhost   tcpforward is a userspac