HTTPS, SOCKS, and CGI proxies can be chained together, where a certain number of proxies are connected in sequence and used to increase the anonymity of a particular user.

Chains are created by the user. Special software is needed to collect them. A chain can consist of one type of proxy or of different types. Each type has its own way of creating chains, the most complex is HTTP, and the simplest is CGI.

It is important to remember: if at least one proxy in a chain stops working, the whole system will stop working.

How a chain of proxies works

If you are using the Firefox browser, you can simplify management of proxy servers with the FoxyProxy extension.

HTTP(S) proxy chaining

Creating such a chain has a number of problems, the main of which is using special programs. To do this, you need to do the following manipulations:

  • create a virtual tunnel;
  • use it to “pass” to the destination web site.

For the whole process, HTTP must necessarily support a similar protocol.

Chains from SOCKS proxies

Chains of different lengths can be created from SOCKS proxies. For their construction it is also necessary to use special programs, as usual ones can work only with one SOCKS proxy server.

The most popular programs for building chains from HTTP(S) and SOCKS proxies are ProxyChain, SocksChain, HTTPort.

How to build a chain with HTTPort

After installing, start it, run your eyes over the suggested information and look at the main window.

Instead of “THAT BAD PROXY” you should enter the address of the proxy, which does not allow to visit the necessary resources, and on the right – its port. Particular attention should be paid to the connection method. In the default mode, you have to specify the external proxy. If you are using the mode shown on the screenshot (remote host), you will not have to look for an external proxy. The program will use public httphost servers for circumvention. By the way, to improve the speed you can download httphost and install it on your home computer – the traffic can go through it. Do not forget that you need a real IP at home.

Let’s look at the next tab. The default checkbox there is “Run SOCKS server”. Do not remove it. Also, if you have selected the remote host mode, it is recommended to check the box “FULL SOCKS4 support”. In principle, nothing else is required in this mode. However, it is also worth thinking about the settings at the top of the window.

Most of the lines you can remove. They list the so-called port matches. For example, there is one line in the screenshot. It says that when you run httport, it will forward requests to port 3128 on your computer to port 80 of the proxy server external.proxy… Of course, you will have to put the working address of the proxy server on this line.

The result of this activity is that you will create a proxy server on your computer one way or another and your programs will be able to use it. Or can’t they? After all, not all programs have such settings as use a proxy server. To make them work we need a proxy. This is what Freecap can do.


We download Freecap and install it. In menu file – settings we enter the address of proxy server, namely a new proxy server on our computer created by httport.

Press the “new application” button. Select the program you want to proxy, it appears in the list of programs in the main menu of freecap. Then we can start it from this list by double clicking.

Summary of the program installation

To summarize. If you have a program that can not work through a proxy server and is going to connect to a resource or port blocked by your proxy server, then after installing and properly configuring the programs freecap and httport it can do it with the help of proxy chains. The connection will go like this:

  • The outgoing request from the program is intercepted by freecap and sent to the proxy server on your computer.
  • This request is handled by httport and connects to the limiting proxy.
  • The limiting proxy receives an innocuous request to connect to the httphost or external proxy server. The request goes on port 80 and is not much different from normal web surfing.
  • The remote proxy or httphost server receives the request, extracts tunneled data and already, in turn, connects to the desired resource.

The scheme looks complicated but it works!

CGI proxy chain

Creating a CGI chain is very easy. In order to do this you must follow a number of recommendations:

  • In one CGI proxy, type the URL of the other one;
  • Press “Go”.

In the same way, you can use subsequent anonymizers. In the extreme proxy chain, type the URL of the necessary site and go to it. You make a chain from CGI without using any programs.

Merging different types of proxies into a chain

To be connected in such a chain, proxies must be in a certain order. Without this condition further work is impossible.

Creating chains is possible:

  • SOCKS proxy – HTTPS proxy – CGI proxy;
  • SOCKS proxy – HTTPS proxy;
  • HTTPS proxy – SOCKS proxy;
  • SOCKS proxy – CGI proxy;
  • HTTPS proxy – CGI proxy;
  • HTTPS proxy – SOCKS proxy – CGI proxy.

Chaining is not allowed:

  • CGI proxy – SOCKS proxy;
  • CGI proxy – HTTP proxy.

In terms of anonymity and speed, you can use a chain of two proxies. Data will go through them sequentially.

Do you use internet television? Learn all about why you need a proxy for IPTV.

Similar Posts