How to configure proxychain in Linux
Welcome to blog undefined. In this thread, we are going to learn how to configure or how to setup proxy-chain in Linux. We will get some another configurations about proxy-chains and how to stay anonymous in web too.
What is Proxy? Why we are using them? and also what is the main purpose of using proxy? I am not gonna explain all in here. I am marking hyperlink to those terms and kindly read through to understand that what and why we are configuring this chain.
Proxy-chaining is nothing but forwarding traffic from our one proxy server to other to access service without any changes to the network. We can tunnel the application without tunneling the whole system.
To configure the proxy-chain in your system, you must install tor to configure it. How to install tor in Linux or how to install tor using apt in Debian based systems. Just give the command
sudo apt-get install tor
After successfully installing tor, proceed with configuring proxychains.conf or proxychains4.conf in /etc/ directory, if proxychains4 installed on your system.
sudo nano /etc/proxychains.conf
or
sudo nano /etc/proxychains4.conf
In the configuration file, we can find the various types of proxy-chain and also the description of that chain too. Enable and disable it by removing and adding comment.
- Remove dynamic chain from comment
- Comment strict, random and round robin chain
- Remove proxy dns from comment
- Add socks4 127.0.0.1 9050 in last line of the file
In the configuration file, comment strict chain, random chain, round robin chain and remove comment for dynamic chain. Dynamic chain allows you to connect with different public IP address, after restarting tor service.
Remove comment for proxy dns, remote dns subnet 224 and set the time out variables of tcp read time out as 15000 and tcp connect time out as 8000. If that is default in your system, leave that as it is.
For dynamic chain, add socks4 127.0.0.1 9050 in last line of the proxy list. If you want to use random chain or round robin chain, you should configure chain length and add proxy list as mentioned in the description.
For http and socks4 connection, use the following syntax for proxy list
type IP address port
For socks5 connection, use the following syntax to not get any error while executing proxychain command
type IP address port user password
To understand this configuration read the .conf file line by line and you will get to know about this configuration.
Type - http, socks4 or socks5
IP Address - proxy IP
Port - port number where the service is configured
User - username for the connection to authenticate with the proxy server
Password - password for the connection to authenticate with the proxy server
After configuring proxy list, save the file and fire up tor service by entering the following command
sudo service tor start
If tor is already running, how to check the status of the service, enter the following command to know the status tor service whether it is currently running or inactive.
We found the status of the service, so we can go and launch proxy-chain and tunnel particular application with proxy-chain. To start proxy-chain
proxychains firefox
Track the logs in terminal to know the status of the chain whether it is connected or not
NOTE: Close all the existing Firefox tabs in order to tunnel Firefox application. Kindly follow the HTTP status code returning while connecting to any URL.
Check your public IP address and you can surf anonymously without any tracking your original browser fingerprint and your actual IP identity in web. If you wanna share anything comment it below.
Check this link for more details











super broo
ReplyDelete