HackToHell. Powered by Blogger.

Setting up a proxy via SSH tunneling in puTTy

What you'll need before starting?
- You're going to need a couple of things in order to create an SSH tunnel that you can use as a Firefox SOCKS proxy. Here's a short list of things you'll need:

1. A remote server you can connect to using SSH. This is typically a remote Unix or Linux server that supports SSH logins.
2. Your organization will need to let you connect to that site using SSH. By default SSH runs on port 22, so your organization will need to let you out on port 22.
3.Mozila Firefox software.
4.The Putty software, which you can download for free.

I consider this the proxification for the intermediate users. It's for the people who understand how to use a programs built-in proxy forwarding functions to go anonymously through TCP and UDP protocols. Basicly, this type of proxification relies on the fact that a program has already a built-in capability of using proxies. A common example would be PuTTY, where you would supply PuTTY with either a SOCKSv4 or 5 proxy to be able to proxify TCP and UDP protocols.

Once you have all those things in place we're ready to get started.

Downloading and installing

Mozila FireFox Download Here.

PuTTY Download Here.
- Just download it, drop it in a folder, and it's ready to be used.

Configuring a tunnel to your SSH server

We'll use Putty to create an SSH tunnel and connect to your remote server.

At this point your Putty window should look like the following figure:

Next, on the left side of the putty window there is a navigation tree. In that tree you want to select the Tunnels item. If this item isn't already visible, you can find it by clicking the Connection node in the tree, then SSH, and then Tunnels.

Under the section labeled "Add a new forwarded port" type in a port like 6565 for the source port. Leave the Destination field blank, then select the Dynamic and Auto radio buttons. Then click the Add button, and you should see the text D6565 show up in the textarea just above the "Add a new forwarded port".

Congratulations -- that's all you had to do to configure Putty. Now all you have to do is login to your remote server. To do this, just click the Open button at the bottom of this window. You should see a Putty login shell open up to your remote server. Just login to your remote server with your username and password, and you're done.

That's all you need to do to open the tunnel. Now you're ready to configure Firefox.

Configuring Firefox to use this new SSH tunnel is simple. Start Firefox, then select the Tools menu, and then select the Options... menu item. Now click the Advanced icon (on the upper-right of the dialog), and then select the Network tab.
Now click the "Settings..." button. This brings up the Connection Settings dialog. On this dialog click the "Manual proxy configuration" radio button, then put the address in the SOCKS Host field. In the Port field just to the right of the SOCKS Host field enter the port you used when configuring your SSH tunnel with Putty. In my case this port was 6565. The completed dialog is shown in the following figure:

That's all you need to do here. Just click OK on this dialog, click OK again on the Options dialog, and Firefox should be ready to go.
Share on Google Plus

About hacktohell

Love technology.
    Blogger Comment
    Facebook Comment


Post a Comment