The Tor network is a group of servers that allow us to improve our Internet privacy and security.
This post is a continuation of that Dark Web; Connect to Firefox!.
Caution: If you want to use Tor for more efficient anonymous web browsing, install and use Tor Browser.
Below we will show you how to install Tor software (the anonymizing overlay network for TCP) and how to configure your browser (Firefox and Chrome) to use it as a proxy server.
Table of Contents
Installing Tor on Linux systems
It is recommended to install the Tor package from the official proxy repository for reasons of stability and security fixes. DO NOT use packages from the distribution repositories you use, as they are often older than the proxy ones. Follow the instructions below to create an official package repository on your system.
Install Tor on Debian / Ubuntu
First, you need to find out the name of your distribution using the following command.
lsb_release -c
Then add the following rows to the /etc/apt/sources.list file. Be sure to replace DISTRIBUTION with your real distribution name, such as bullseye if you use Debian 11):
deb https://deb.torproject.org/torproject.org DISTRIBUTION main
deb-src https://deb.torproject.org/torproject.org DISTRIBUTION main
Then add the gpg key used to sign the packages with the following commands.
gpg –keyserver keys.gnupg.net –recv 886DDD89
gpg –export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -
Then update the package sources and install Tor with the following commands.
sudo apt update
sudo apt install deb.torproject.org-keyring
sudo apt install tor
After installing Tor, the service should start automatically. Use the systemctl command to verify its status.
sudo systemctl status tor
If it does not run run the following commands
sudo systemctl start tor
sudo systemctl enable tor
Tor installation in CentOS / RHEL & Fedora distributions
Find the distribution version
cat / etc / redhat-release
Then add the following rows to the /etc/yum.repos.d/tor.repo file. Make sure you change the DISTRIBUTION to the version name you are using: fc / 33, or el / 8, or whatever else you have installed.
[tor] name = Tor repoenabled = 1
baseurl = https: //deb.torproject.org/torproject.org/rpm/DISTRIBUTION/$basearch/ gpgcheck = 1 gpgkey = https: //deb.torproject.org/torproject.org/rpm/RPM-GPG-KEY- torproject.org.asc
[tor-source] name = Tor source repo
enabled = 1 autorefresh = 0
baseurl = https: //deb.torproject.org/torproject.org/rpm/DISTRIBUTION/SRPMS gpgcheck = 1 gpgkey = https: //deb.torproject.org/torproject.org/rpm/RPM-GPG-KEY-torproject. org.asc
Then proceed with the installation
yum update
yum install tor
Check if the service is running and if not, enable it
systemctl status tor
systemctl start tor
systemctl enable tor
You're done with Tor. To see if it runs on the port you need run the following command after installing the net-tools
sudo netstat -ltnp | grep “net”
Tor in Firefox
Open the settings and on the network tab do the following
Manual proxy configuration.
SOCKS Host 127.0.0.1
Port 9050 and check Proxy DNS when using SOCKS v5
OKAY.
Are you ready. A test will convince you. Open the check.torproject.org page
Tor in Chrome
Settings → System (chrome: // settings / system) and click on Open your computer's proxy settings
socks: 127.0.0.1
Port: 9050
If you want to connect a Windows computer to the Tor network, follow them instructions here.