If you are thinking "What's this?", see Whose Sounds in the Cellar.
If you are wondering "How did I get here?", use the back button of your browser.
If you are asking "What Sounds?", read on.

SSH Tunnel

Let's say your ISP blocks you from visiting certain websites. There are various ways of bypassing such restrictions. Here's how I do it using SSH tunnels.

  • Get a domain hosting account with ssh shell access from an overseas provider.
  • It's always great to setup key based authentication and ssh-agent. Here's how.
  • $ alias ssh-tunnel='ssh -N -v -D 8080 mydomain.com'
  • Run ssh-tunnel from a local shell.
  • Install the SwitchProxy Firefox extension and configure it to use 127.0.0.1:8080 as a Socks v4 proxy.
  • Test your setup. e.g., if you are in Singapore, try playboy.com ;-)
  • Since we used the verbose (-v) flag, you should see connection information in the tunnel's shell output.

Note: This does not provide anonymity! Use Tor or JAP for that!

The traffic over this tunnel will count towards the monthly bandwidth quota of your hosting provider. Since I get over one terabyte of monthly transfer with Dreamhost, I am not so concerned about this factor. :-)

techtalk | 7 comments | permalink | 07.06.2006 21:59 SGT


Re: SSH Tunnel
Vidya wrote on Fri, 09 Jun 2006 19:12

So i asked my better half to take a look at this post and tell me whether the writer was jobless or plain geek...

Answer: jobless geek


Reply to this comment
Re: SSH Tunnel
TeRanEX wrote on Mon, 31 Jul 2006 22:00

A few weeks ago i tried to run putty at work to setup a ssh-tunnel over my dreamhost account, hoping that i would be able to use it to browse the web and to check my imap mail. However putty couldn't make a connection to the dreamhost server, so i guess port 22 is blocked at our firewall. Now i'm wondering if it is somehow possible (and allowed by dreamhost) to use ssh on another port, like 8080, which is not blocked by the firewall?


Reply to this comment
    Re: Re: SSH Tunnel
    antrix wrote on Tue, 01 Aug 2006 18:12

    I doubt if you can do much about that. Try writing to dreamhost support about non-standard port ssh logins.


    Reply to this comment
    Re: Re: SSH Tunnel
    Mike wrote on Tue, 15 May 2007 23:35

    I realize this is almost a year later, but I just stumbled across this.

    Putty can use an HTTP proxy to connect. That would get you aground the blocked 22 port.


    Reply to this comment
Re: SSH Tunnel
joey participo wrote on Sat, 12 Apr 2008 10:57

good job mate, everybody gotta proxy


Reply to this comment
Re: SSH Tunnel
Pez Cuckow wrote on Sat, 07 Mar 2009 20:25

i get Proxy Server Refused Connection.

Any idea why?


Reply to this comment

 
Name:
URL:
Title:
Comment:
Please type spam captcha image in this box