This guide will cover the topic of proxy chains on a Linux machine. If you are not using Linux well it’s your loss.
First, let me explain what are proxy chains. When you request a page online you are connecting to a server directly, thus exposing your identity. One way of hiding your identity online is by using proxy servers. A proxy server acts as a mediator between you and the server. You send the request to the proxy, the proxy sends the same request but with the proxy’s IP address and return the data to you. To ensure maximum anonymity we can chain proxy servers making it even harder to track the source of the request.
Setting up Proxy Chains on Linux
I will be using a Debian based Linux distro that uses the “apt” package manager.
update your system:
sudo apt update sudo apt upgrade
Install tor and proxychains-ng
sudo apt install tor proxychains-ng -y
Configure the Proxy Chain
Change the directory to proxy chain config files.
cd $PREFIX/etc nano proxychains.conf
comment out strict_chain (line 13) and uncomment dynamic_chain (line 5)
# The option below identifies how the ProxyList is treated. # only one option should be uncommented at time, # otherwise the last appearing option will be accepted # dynamic_chain # # Dynamic - Each connection will be done via chained proxies # all proxies chained in the order as they appear in the list # at least one proxy must be online to play in chain # (dead proxies are skipped) # otherwise EINTR is returned to the app # #strict_chain # # Strict - Each connection will be done via chained proxies # all proxies chained in the order as they appear in the list # all proxies must be online to play in chain # otherwise EINTR is returned to the app #
scroll down to the bottom of the file and add the line socks5 127.0.0.1 9050 (line 6)
[ProxyList] # add proxy here ... # meanwhile # defaults set to "tor" socks4 127.0.0.1 9050 socks5 127.0.0.1 9050
In your command line run tor:
Open a new terminal and run your command. your traffic is going through a proxy server.
proxychains4 <your command>