How To Setup Proxychains In Linux Without Any Errors?
Last Updated :
12 Jul, 2025
Proxychains in Linux is another tool for anonymity providing anonymity and safe browsing with proxychains is easy. The proxychains works on socks4, socks5, HTTP, and https protocols. Setting up proxychains is easy but many users get errors while using them, some of the most common errors occur during tor installation and other errors like proxychain starts but you are not anonymous and your DNS leaks appear.
How to setup Proxychains?
To setup proxychains you will first need the tor service, most of the time the service is preinstalled. To check if there is tor service available or not just use this command.
service tor status

If you get any error after using this command then it means tor service is not available in your system, to install tor service use the following command.
sudo apt-get install tor

We had already installed tor service before so there will be a difference in execution. If you get any error while doing this then check below steps in this article.
After installing tor service, now we need to configure proxychains. To do so use the following command.
nano /etc/proxychains.conf
You can use any editor of your choice here we are using nano, you can also use vim, leafpad or sublime etc.

In the configuration, you will see "#" which means bash language comments. You can use arrow keys to scroll down and do the following changes.
- Remove Dynamic chain from comment
- comment Strict chain and Random chain
- Remove proxy DNS from comment
- write socks5 127.0.0.1 9050 in last line of proxy list



Save the configuration file and exit the terminal. The proxychains setup is complete. To start proxychains first restart the tor service and then launch proxychains in firefox with a link for a particular search engine like bing, duckduck go. Use the following commands:
service tor restart
proxychains firefox www.bing.com
After running the following commands firefox will launch and www.bing.com will load. When you run the command you must not get any error and bing should get loaded. Also please close all firefox tabs before executing the commands.


You can see that after executing the proxychains bing loaded with some other language. Now let's do a DNS leak test by searching DNS leak test and open any website providing the same.

You can see that my location is now changed from INDIA to GERMANY and the good thing is that proxychains keeps on changing my IP address in a dynamic way so that it provides good anonymity.

If you want that you see a different result then you can just close the firefox and clear the terminal, restart tor service and again launch proxychains you will see some different results in DNS leak test as shown below:

This is the result which we got after restarting tor service. Now you might be facing many issues which setting up proxychains, let us see how to solve most of the frequent errors.
What are different errors and how to solve them?
One of the most common error is for the tor service, when you check for tor service it may not be present and when you try to install it then you get errors like:
Failed to start tor.service: Unit tor.service not found.
or
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package tor is not available but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'tor' has no installation candidate
This error mostly occurs when recently install system and you have some broken sources repositories. If you are running kali linux just go to the kali documentation in browser and search sources.repositories.
click here for the page. Copy the regular repository and paste it in sources.list
nano /etc/apt/sources.list


You can easily find repositories for your Linux version. After copying the source repository use command
apt-get update && apt-get upgrade
This may take some time and data depending on your version of Linux. This can solve one of the biggest error of proxychains.
The second error is for DNS leaks and server not found in the browser. If you get these errors then make sure that you restarted the tor service and your browser is not running. Also, check that dynamic chain in the proxy configuration is not commented, along with that check for proxy DNS also, make sure that both are not commented.
Similar Reads
Staying Anonymous with ProxyChains in Kali Linux Being anonymous on the internet or while carrying out an attack is one of the most important characteristics of a hacker. There are several ways to achieve this anonymity, one of which is by configuring proxy chains. It is an excellent way to remain anonymous while browsing the internet or conductin
4 min read
How To Setup And Use Anonsurf On kali Linux Anonsurf is one of the good anonymizing tools of Linux distribution. It helps us make our network tunnel secure. This tool uses TOR iptables to anonymize our network system. Installation of Anonsurf First of all, you can make a separate directory for this tool for your convenience and git clone the
2 min read
How to Generate a Self-Signed Certificate with OpenSSL in Linux? TLS (Transport Layer Security) is a secured protocol which is currently in trend. It can see used on top of the HTTP and application layer. The primary use of this protocol is to set up secure communication between web applications and servers. TLS protocol can also be used for secure email transfer
3 min read
How to Audit Network Performance, Security, and Troubleshooting in Linux Network security auditing is the process of assessing a network's health by analyzing and studying the flow of data through the network. Network auditing is one of the critical steps to detect potential security threats and errors within the network. Security audits are either performed manually or
6 min read
How to Install and Remove Packages in Arch Linux Arch Linux, known for its simplicity, flexibility, and user-centric approach, offers a robust package management system that allows users to easily install, update, and remove software packages. Unlike some other Linux distributions that come pre-packaged with software management tools, Arch Linux f
5 min read
How to Flush the DNS Cache in Linux? Are you facing domain resolution issues, or are the websites you're trying to browse not loading fast enough? Well, flushing the DNS cache in Linux can be a fast and effective solution. The DNS cache stores the IP addresses of all the websites you browse and over a period of time, this data becomes
7 min read