How to setup ProxyChains for Firefox and Tor Browser on Kali Linux 20.04
- Intro 2. Theory 3. Setup 4. More theory 5. TOR Browser 6. Additional Information
- Intro.
Recently I learned about how to configure Proxy TOR and decided to write about it. I have some trouble with configure ProxyChains through tor with Firefox. While googling I’ve noticed a lot of people looks for answers.
2. Theory.
ProxyChains is a tool to use Proxy Servers to hide internet identity and search word wide web anonymously. With it you can visit websites from different IP around the world. Websites will not collect data about you. But your data will be sent through these Proxy Servers, so be aware of that. It might be useful when performing penetration testing.
A proxy or proxy server is a dedicated computer or software system running on a computer which acts as a link between you and websites you visit. Server running websites will see IP address from the proxy server (not yours) which makes it more private.
WE as CLIENT — — — — — PROXY SERVER — — — — — WEBSITE
3. Setup.
First lets check pre-installed in Kali Linux ProxyChains package, update it if necessary and then install and start TOR service.
sudo apt update && upgrade -y
sudo apt install tor -y
sudo apt service tor start
sudo apt service tor status
----------------------------------------------------
● tor.service - Anonymizing overlay network for TCP
Loaded: loaded
Active: active
Install or update and edit proxychains configuration file.
sudo apt update && upgrade -y
sudo apt install proxychains -y
sudo nano -l /etc/proxychains.conf
------------------------------------------------
dynamic_chain
#strict_chain
#random_chain
Proxy DNS requests - no leak for DNS data
proxy_dns
[ProxyList]
socks4 127.0.0.1 9050 #use TAB here, not SPACES
socks4 127.0.0.1 9050 #use TAB here, not SPACES
------------------------------------------------
Ctrl+S Ctrl+Xproxychains firefox
-------------------------------------------------
check these sites:
whatismyipaddress.comd #make sure your IP changed
nsleaktest.com #make sure your DNS changed#and if Firefox does not load sites check your connection with internet,keep in mind that proxy servers might be slower than your ISP.
-------------------------------------------------
proxychains ping google.com
4. More theory:
SOCKS is an internet protocol, which routes packets between server and client using proxy server. SOCKS4 and SOCKS5 are types of socks.
127.0.0.1 is our localhost and by default TOR use it to sent traffic.
Number 9050 is by default TOR listening port.
Make sure to edit SOCKS IP and PORT with Tab not spaces. Proxychains.conf edited with spaces will not load web pages with Firefox.
Since we install TOR service why not want to access TOR websites. To do that we need to install TOR Browser.
5. TOR Browser.
sudo apt install torbrowser-luncher
service tor status
torbrowser-luncher
6. Additional information:
I think it’s good to read more about Proxy Chains and TOR Network. Down there you can find some useful information.
There is a room named TOR on Try Hack Me platform, which is a beginner oriented guide on using the TOR Network. Room is free and was made by Swafox.
Some of these websites I have been used while writing these article.
https://medium.com/cyberxerx/how-to-setup-proxychains-in-kali-linux-by-terminal-618e2039b663 written by HEYNIK
ProxyChains Tutorial on linuxhint.com and quick youtube video.