How to use SSL tunnelling on OS X to give full internet access to some applications while you are on a restricted corporate network

torrenttunnelvpn

How to use SSL tunnelling on OS X to give full internet access to some applications while you are on a restrictive corporate network?

Details:

  • you want to be able to access some restricted destinations and/or ports with some applications from your computer but you are on a restricted network (corporate) – Even using a Torrent client.
  • you have an AWS machine running Ubuntu that you can use as a proxy (and you can SSH to this machine)
  • You cannot create a full VPN because this means that you will loose access to your intranet and you do not want that.

Best Answer

You can create a local SOCKS proxy by using the dynamic port forwarding function of SSH by running ssh with the -D flag. This will tunnel all traffic of applications that use the local SOCKS proxy through SSH connection.

For example running ssh -D1234 user@host will open a SOCKS proxy on localhost port 1234 that you can direct your applications to.

Related Question