Setup VPN with Amazon EC2


  1. Setup the desired EC2 with SSH Server running which will be known as remote-host.
  2. On your Desktop, ssh to the EC2 using: ssh -D 8080 username@remote-host, you will be prompted for password of remote-host. Enter it. ORssh -D 8080 -I “private-key.pem” username@remotehost.
  3. Now go to your browser’s proxy settings, and configure it to use a SOCKS proxy with host name 127.0.0.1 and port 8080
  4. Or if you are on a MAC, you can configure the SOCKS proxy in system preferences.
  5. Open any website, this now goes through the remote machine.

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s