Thursday, December 27, 2012

How to access any blocked website using ssh tunnel?


How much do you hate it when you're at work, school, college surfing the web, trying to access some website and you get prohibited, because "they" don't want you to see the content of just because you have some work to do and you shouldn't waste your time on Facebook.

Here in this post you will learn how to bypass the web filter using ssh tunnel in 3 extremely easy steps.

Don't be so hasty now, it's not the time for you to skip to the steps. First you have to know a little about ssh tunnels and firewalls.

Well, as shown clearly in the picture above all that an ssh tunnel do is connect to an online ssh server that allows SSH access and create a Tunnel between the host PC(ssh client) and server by bypassing the web Filter.

As for the firewall, well it is the sadistic son of a b*tch that is prohibiting you from accessing facebook. As you see in the picture below.
Or, as Wikipedia defines it: a software-based or hardware-based and is used to help keep a network secure. Its primary objective is to control the incoming and outgoing network traffic by analyzing the data packets and determining whether it should be allowed through or not, based on a predetermined rule set.

Now after I bored you to death with my babbling here is how you can access Facebook, Youtube, ..from your work place or school :




Sign up for a free bash ssh account on Cjb.net which is going to grant access to an online ssh server.
The Registration is so simple first you'll get an activation email then a second email to provide you with more information.






Now that you have a username and a password and the hostname you can connect to the server through an ssh client ( I recommend PuTTY).

The universal port of ssh is 22  but cjb.net allow you to connect through another port 443.

After you're done with the configuration you go to the sessions page in the left pane and save the session.

Then you click on open, a terminal should open, you log in with your username and password.



Now the connection is established, all we have to do is o apply the proxy settings to our browser.
Now for this you need a browser that allows Manual Proxy settings via Socks.( meaning chrome and Firefox are just fine).
For this example I'm going to use Firefox.

 Tools -> Options ->Advanced -> Network -> Settings
 Manual Proxy Configuration and Fill the following details
   Socks Host: 127.0.0.1                Port : 8080
   Then choose SOCKv5







For Google Chrome follow these instructions : 
settings > show advanced settings

                       Network : change proxy settings
                       LAN Settings > use a proxy server for your LAN and click on Advanced.

 Socks Host: 127.0.0.1                Port : 8080




Enjoy your free surfing.



Learn how to set up your own ssh server.


12 comments:

  1. Accessing Twitter and facebook is banned in my School. After using lot of proxies and vpn software's finally i found "Hotspot Shield" VPN a reliable and convenient software. Now i can anonymously Access Twitter From School with 100% privacy.

    ReplyDelete
  2. Yes thank you for spamming today, but here we are talking about accessing in a very secure connection to an ssh server that can be eventually hosted at your home (100% free.)

    ReplyDelete
  3. Excellent. This saved my life. My silly bank website is not accessible from Europe :S

    ReplyDelete
  4. Great, I'm happy that someone has actually profited from this post.

    ReplyDelete
  5. This comment has been removed by a blog administrator.

    ReplyDelete
  6. This comment has been removed by a blog administrator.

    ReplyDelete
  7. Great tutorial it really works. By the way the connection is slow for you too or its just me?

    ReplyDelete
    Replies
    1. of course it's going to be slower since you're connecting through the cjb server

      Delete
  8. I really Love this Post. But please, do you know any other free shell server? I would be grateful

    ReplyDelete
  9. It said that the server unexpectedly closed the server. What am I doing wrong? Or is it their security thing?..

    ReplyDelete
    Replies
    1. You can access it from here --->http://shell.cjb.net/

      PS:The link in the post has been updated.

      Delete