Ramin Hossaini (blog)

6Oct/090

Creating a tunnel and SOCKS proxy with Putty

Why?

  • Secure a public WiFi connection
  • Bypass country-specific-content websites (e.g sites that only allow users from the U.S)
  • Connect to a remotely-secured MySQL database via localhost

It's pretty easy to do in Linux (and I think the command is pretty much the same in MacOS or with cygwin installed):

ssh -L localport:hostname:remoteport username@Server

This is how to do it with Putty

Open Putty and enter in the basics: the Server and port (22):

putty1

Next, create the tunnel. Enter the source port (in this example, it's 3306 - a MySQL port) and leave the destination field empty (not always left blank, but it works for most cases)

putty2

The tunnel will be open/active as soon as you've logged in. Obviously, you still have to set up your proxy settings in whatever application you're using (for those who don't know, 127.0.0.1 is 'localhost'):

proxy

Share and make me happy:
  • Twitter
  • Facebook
  • Digg
  • StumbleUpon

Related posts:

  1. Unlocker
  2. Convenience
  3. Ubuntu: Installing Apache, PHP 5, and MySQL 5
  4. Photoshop tutorial: Creating detailed-masks from channels
  5. Simple MySQL backup-script
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


Please leave these two fields as-is:

No trackbacks yet.

Bear