Quick guide for setting up proxychains
Needless to say, to stay anonymous on the net is probably one of the most important things as a hacker. Using proxies in chains or multiple proxies can hide our real IP. We can implement it via proxychains on our device.
Latest version of proxychains is proxychains4. Let’s first open the configuration file and do the required changes to it:
sudo vim /etc/proxychains4.conf
Now opening the config file in vim, let’s see what changes we need to do. First of all. By default, the strict chain is selected, which means all the proxies listed in the file (yes we will modify them too later) would all be used. And if anyone of the proxy doesn’t work then the whole chain would fail ☹️
So, let’s comment out strict chain (put hash before it) and trade it for dynamic chain. Remove the hash before dynamic chain and we’re good to go! In dynamic chain even if one proxy fails the chain would work with the remaining functioning proxies.
Round robin chain forms proxy chains of given length. Each chain is used in turns. Dead proxies are skipped.
Random chain uses random proxies for it’s working.
But by far, dynamic chain is the most popular. Alright, let’s move on to the next part.
proxy_dns is uncommented (I think it is by default). The last thing you would want after going through the pain of setting up proxies is to have our IP leaked via DNS.
Now, we are almost there! Going to the bottom of the file. You can see by default proxy
sock4 127.0.0.1 9050
Unfortunately, this proxy won’t work on it’s own. You can search for IPs online put them in here and comment out the proxies you don’t want atm.
We will discuss about the default proxy above a little later. Once you save the file, run
proxychains4 firefox in the terminal. Now, you can use firefox for searching stuff online under various proxies. Or you can curl a page like this:
proxychains4 curl https://<some-site>.com
Back to the socks4 IP by default, we need tor for this to work. Install tor by:
sudo apt install tor
sudo service tor start to start off tor. Then you can use this proxy.
Hope you liked this tutorial! Follow for more helpful guides..
Have an awesome day 😀