portforward
Simple and small port forwarder with SOCKS5 proxy support.
I'm not the original author of the source code, I've just put together some recipes found on the Internet.
This simple application is an excellent example of the power and simplicity of go - fully functional port forwarder in just a few lines of the source code.
Usage examples
Direct port forwarding
portforward localhost:2222 192.168.0.1:22
Port forwarding using SOCKS5 proxy
portforward -proxy localhost:1080 localhost:2222 192.168.0.1:22