Tor is an open source implementation of second generation onion routing that provides free access to an anonymous proxy network. Its primary goal is to enable online anonymity1 by protecting against traffic analysis attacks. By using Tor you can access a blocked websites and Darknet’s .onion sites.
Tor server can be installed on most distros using its package manager. Here’s how to install it on Ubuntu/Debian:
sudo apt install tor
By default Tor use configuration file
/etc/tor/torrc. We are going to configure Tor server to work only with localhost.
Add/uncomment this lines in configuration file:
SOCKSPort 9050 SOCKSPolicy accept 127.0.0.1
Enable and start the daemon:
sudo systemctl enable tor sudo systemctl start tor
Now you’re able to route traffic through Tor network via local port 9050 using SOCKS5 protocol.