Freelancer's Playground! New knowledges every now and then

22Aug/103

Bypass Internet Blocking With ProxyChains

What I love from linux is, it's powerful shell interface. It has full range of utilities. For example, if I want to access something that's denied by local proxy, I could easily tunnel my traffic to my other server. You can use ssh -D for this.

ssh is tools from openssh-* packages. it provide us a way to access remote machine, securely. while -D is it's option to also create a dynamic ports in which we will be able to use it as tunnel mechanism.

Later on, we can use this tunnel via firefox by using FoxyProxy or directly change proxy information in settings. However, I recommend to use FoxyProxy, because we can choose what site using which proxy (if we have multiple tunnels), etc.

But, if we want to use this tunnel from terminal, we need another tool, that is proxychains. To ge it, you will need to install through, either synaptic or apt-get install command. To get it via apt-get, simply type this code on your terminal.

sudo apt-get install proxychains

Next, we need to configure it so that it will connect to our tunnel. Do to that, open up /etc/proxychains.conf on your favorite editor and find this string [ProxyList]. JUST below it, type your tunnel/proxy information, eg:

socks5 127.0.0.1 6666 secret password
socss4 10.20.30.40 3456
http 192.168.0.1 8080

Save it and you can use proxychains in this way: $proxychains wget http://some.example.com/server/data.txt

  • http://damn.ihateblue.net Damn

    How about Windoze 7 ??

    >:)

  • http://bayu.freelancer.web.id/ ariefbayu

    what is that? some kind of food?

  • newt

    Windoze ?? Hmm.. It might be a kind of the stupid OS. Just forget it !