ProxyChains Library

A less than a week and I will be away from the university and hence away from proxy server of computer centre, but still I am looking for solutions to bypass proxy and to tunnel ports blocked by proxy.

I found an amazing library named ProxyChains which can establish chain of proxy for your communication and bypass all the communication and tunnel the required port to avoid filterning. I already published proxy tunneling throug transconnect library, so what’s difference between them. Well the difference is that transconnect does not support SOCKS proxy (which is the main proxy used to tunnel through ssh) whereas ProxyChains allow it. Also there are several other features in ProxyChain but the only reason for me to use it is  SOCKS support.

So the beginner’s question, How to bypass proxy and tunnel proxy?

Step 1. Get an ssh shell account on free shell provider. List of free shell providers are and

Step 2: Check whether free shell provider allows port forwarding. Also check where http ports are allowed or any port is allowed. To check first ssh login in shell using

ssh username@host -D 1080 -v

and then use the socks proxy in firefox to localhost and port 1080 and try to browse the web. If you are successful, atleast http ports are forwarded. Now try to connect to some random port in the firefox like something:2354 and see what type of message appears on the verbose ssh shell. If it tries to connect, then you have found the right shell and proceed further otherwise try to find another shell. Also keep note down which shell give http port access. You may use it to browse net when proxy is down or something.

Step3: Install ProxyChains ( and set SOCKS proxy in the proxychains.conf file usualled located in /etc and start using it.For more information read Readme file or

You can also use this SOCKS proxy in every application which support SOCKS proxy like firefox etc. and use ProxyChains in every other case like which does not have SOCKS support or no proxy support at all.

In my institute (i think usually in all institutes), ssh port is automatically forwarded and hence does not require any proxy. Hence this is a very reliable method.and even works when proxy is down due to power down or restart.

In case you feel some difficulty and any of steps is not clear, please leave comment. i will try to explain and elaborate.


~ by atulaggarwal on May 5, 2009.

5 Responses to “ProxyChains Library”

  1. I’m at home now and want to access my computer in my institute remotely. The institute computer has UBUNTU while home computer has windows(with Putty) and UBUNTU both. What info would be required for remote access of institute computer other than my username and id on that computer? what should I put in host name box in putty?

    • hi Aniket,

      The requirement depends upon the type of internet connection present in the institute. Generally, this requires you to set port forwarding in the router of internet connection but being institute connection, I can assume you won’t have access to that router. However, if you have your own internet connection at the institute computer, this can be done. In other case, there is an alternative which requires you to open the tunnel to some computer from the institute itself and later on using that tunnel to connect to the institute computer. First let me know the type of internet connection and i will try to be more specific.

    • Also, i remember a software called TeamViewer which can help connecting to a computer which is behind NAT and firewall. Hope this can help.

  2. I think it is a direct internet connection (without proxy). Also when I login to my workstation at the institute I get access to internet automatically

  3. Did you look into teamviewer, it’s nice for direct connection and also it’s work behind firewall as well otherwise it’s a tough job as i know. there are some other solutions also, but i don’t know much as I have not tried them (not required).
    Sorry for such late response, i forget to reply to your comment.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: