Tcptunnel is a simple TCP port forwarder. This tool listens to a local TCP port and all the received data is sent to a remote host. It can be used to redirect TCP based protocols like HTTP, IRC, NNTP, SSH or SMTP.
Tcptunnel was successfully compiled and tested under GNU/Linux, FreeBSD, HP-UX, OpenBSD, Solaris, Windows 7, Windows Server 2008 and Windows XP. The current version was tested under GNU/Linux and Windows 7. If you have compiled and run it on another system or in another universe please let me know it.
The source code is released under the terms of the GNU General Public License.
$ tcptunnel --help Usage: tcptunnel [options] Options: --version --help --local-port=PORT port to redirect --remote-port=PORT target port --remote-host=HOST target host --bind-address=IP bind IP address --fork fork-based concurrency --log-to-stdout --stay-alive
Note: The MinGW32-based version of tcptunnel does not support the fork-based concurrent client handling. If you need this feature under Windows, then you should use the Cygwin-based version instead.