ProxyChains: Forwarding Traffic from one Proxy Server to Another

ProxyChains: Forwarding Traffic from one Proxy Server to Another

April 10, 2021 3 min read 2 views 0 discussions
Table of Contents

    Proxy chaining involves routing traffic through multiple proxy servers sequentially. This method utilizes your current proxy servers without incurring additional network costs. It provides a simple and efficient way to direct your traffic to the Zscaler service using an existing on-premises proxy.


    What is a Proxy?

    A proxy server acts as a gateway between you and the internet. It’s an intermediary server separating end users from the websites they browse. Proxy servers provide varying levels of functionality, security, and privacy depending on your use case, needs, or company policy.

    Learn More: 

    Why do we need Proxy Chains?

    If you request a file or content from a Server, then it first identifies your system request and then processes it. In between this time you identify from your IP address. To avoid being identified Proxy chain is required.


    Install Proxy Chains

    If you want to install Proxy chains on your Kali Linux just follow the below steps:

    1. Fire up your Kali Terminal.

    2. Type the following command to install:

    ┌──(mrdev㉿kali)-[~]
    └─$sudo apt-get install proxychains

    Configure proxy chains

    a. If you want to configure ProxyChains then open the .conf file using a nano text editor. 

    ┌──(mrdev㉿kali)-[~]
    └─$sudo nano /etc/proxychains.conf
    You see this type of file in the terminal. you will see “#” which means bash language comments. if there is no “#” hash that means it defaults running. or if we remove the “#” hash that means we want to run this. You can use arrow keys to scroll down & up and read file content and do the following changes as you need.

    b. As you see from the upper screenshpot in this there are three types of proxy chains: 

    1. dynamic 
    2. strict 
    3. random
    #dynamic_chain
    # ------------------------------------------------------------------------
    # ------------------------------------------------------------------------
    # ------------------------------------------------------------------------
    # ------------------------------------------------------------------------
    # ------------------------------------------------------------------------
    strict_chain
    # ------------------------------------------------------------------------
    # ------------------------------------------------------------------------
    # ------------------------------------------------------------------------
    # ------------------------------------------------------------------------
    # ------------------------------------------------------------------------
    #random_chain
    # ------------------------------------------------------------------------
    # ------------------------------------------------------------------------
    # ------------------------------------------------------------------------
    dynamic_chain
    # ------------------------------------------------------------------------
    # ------------------------------------------------------------------------
    # ------------------------------------------------------------------------
    # ------------------------------------------------------------------------
    # ------------------------------------------------------------------------
    #strict_chain
    # ------------------------------------------------------------------------
    # ------------------------------------------------------------------------
    # ------------------------------------------------------------------------
    # ------------------------------------------------------------------------
    # ------------------------------------------------------------------------
    #random_chain
    # ------------------------------------------------------------------------
    # ------------------------------------------------------------------------
    # ------------------------------------------------------------------------
    ┌──(mrdev㉿kali)-[~]
    └─$proxychains firefox
    We’re going to use a dynamic chain, So,
    1. Remove the Dynamic chain from the comment (Remove the # mark)
    2. comment Strict chain and Random chain(Give # mark on other two)

    5. If you want to make Proxy Chains more effective then you have added more sockets. So scroll down to the end. You find more sockets by searching on the internet.

    Now, write socks5 127.0.0.1 9050 in the last line of the proxy list.

    To save CTRL + X and type Y.

    Usage of ProxyChains

    1. Before going further action, first, we check our IP Address, click Here.


    2. To start ProxyChain type the command in the following manner: proxychains <Application Name>

    3. Now again check the IP Address to verify IP has changed or not.


    Community Q&A