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
https://unix.stackexchange.com/questions/368690/why-netcat-doesnt-use-the-right-interface-associated-with-the-ip