From the computer inside the network:
ssh -D [port number] -fN user@server
Then you can configure the application or service on the machine to access the remote server via the SSH tunnel and port configured.e.g.
ssh -D 3333 -fN user@server.com
bfgminer -S opencl:auto --socks-proxy localhost:3333 --debug