A friend of mine wants a cheap and easy way to forward a TCP port to a pal’s computer over the Internet. He can’t afford to use the excellent stunnel because the platform he is compiling for doesn’t support OpenSSL. I suggested using redir, a program originally written by Nigel Metheringham and released under the GPL. It is a rather simple but effective TCP port redirector, onto which I hacked a terribly insecure XOR shrouding. Not secure at all, but it fulfills his expectations. redir can listen on a TCP port of an arbitrary interface and forward to a different port on a foreign system, for example redir –lport=25 –caddr=remote.example.com –cport=25 would listen on all existing interfaces of the local computer on port 25 and forward those connections to port 25 on the remote computer.