Thursday, April 7, 2016

Use SSH tunnel as a secure forward proxy

A forward proxy proxies in behalf of clients. The following setup will allow you to sit in office and SSH connect to a remote server. The remote server will act as the proxy server to forward all your requests to the destination server.

Use SSH tunnel as a secure forward proxy:

# ssh -D 8080 USER@HOST_NAME.COM


# ssh -N -f -D 8080 USER@HOST_NAME.COM

You will need to configure a SOCKS proxy server in Google Chrome by adding these two flags when launch Chrome:

--host-resolver-rules="MAP * , EXCLUDE"

To set up the forward proxy through Putty:

Open Putty > Connection > SSH > Tunnels:

Source Port: 8080

Destination: (leave blank)

Check "Dynamic"

Click on "Add" button


No comments: