Helper script to map ports to other servers.
had a database that was only accesible in the VPC on aws, so i created an dev intance and did a ssh tunnel to that dev instance with netcat mapping the port to the database
Forward all request from local 5432 to remote host google.com port 80
./nc-proxy.sh 5432 google.com 80
-k options is not working. Tried on raspi jessie os. Instead socat was quite straightforward to do the same.