A handy trio of tools for protecting your privacy
Encrypting in Transit: Tor
Anonymizing tools conceal your Internet activities so that no one will be able to trace or analyze where you go on the web. One powerful option for protecting data in transit is Tor [4], a sophisticated peer-based virtual private network designed to guard you and your information against profiling from any entity. Tor uses a distributed, peer-based network. Each computer that actively participates on the Tor network is called a relay. It is possible to connect to the Tor network as a mere user or as a relay.
With Tor, your network traffic is encrypted using public key encryption then routed and forwarded on a near-random basis through the Tor network. As a result, it is quite difficult for anyone to determine the sites you have visited. Ironically, Tor was created by the United States Navy. Called the "Onion Routing Project," Tor was designed to help protect Navy traffic from snooping.
A Tor network is a distributed virtual network designed to do two things: First, Tor encrypts traffic. Second, it randomizes traffic so that it is more difficult for any entity to analyze it. Tor is quite successful, and several government entities have gone on record recently, noting that the Tor network is quite good at randomizing and anonymizing traffic. Although governments regularly capture Tor-based traffic, they tend to find that traffic analysis and decryption of Tor data is fairly difficult.
How Does Tor Work?
Tor is the Napster or LimeWire of VPN servers: All you have to do is install some software, join with the Tor network, and you are on your way to encrypting and anonymizing your network.
You'll need to configure your web browser to access your system as you would any proxy server, such as Squid. Tor uses the SOCKS protocol for local network connections. This means when you configure your browser's proxy server settings, you'll want to use the SOCKS protocol and specify the port (usually TCP 9050).
The easy way to join up with a Tor network is to use the Tor Browser Bundle (TBB), which you can download from the Tor site. Simply download the software and participate in the Tor virtual private network scheme. The hard way is more interesting to me, because it allows you to contribute to the overall network. The hard way involves connecting to the Tor network as a relay, which helps add more randomization to the network.
To get started, download the Tor package using either the available tarball or the package available from your system repository. For example, I was able to download a copy of Tor using apt-get on my Ubuntu system without having to update any of the standard repositories. If you are using Tor to simply connect to the network, install the binary and use a system script to start the service (Listing 1).
Listing 1
Starting the Tor Service
When Tor runs in default mode, it listens for connections from your local machine on TCP port 9050. This port will accept only connections from your local machine. Once Tor is running, you should check its log files to make sure it has connected with the overall Tor network (Listing 2).
Listing 2
Tor Log File
Listing 2 shows that Tor has gone out to find relays on the Internet. Because I made sure my firewall software wasn't blocking Tor-based connections, the process went quite quickly.
Your Browser as a Tor Client
To use Tor, you will need to configure your browser for a proxy server. In Firefox, go to Edit | Preferences. Then, click on the Advanced tab, then click on the Settings tab. You can then enter the SOCKS configuration information, as shown in Figure 3.
The steps for configuring Opera, Chrome, or another browser are similar. Simply specify the correct SOCKS information. Once you have configured your browser, restart it. Then, point your web browser to the following URL to confirm that your system is communicating across Tor's relay network:
https://check.torproject.org
If your browser is not using the Tor network, you'll get a screen similar to Figure 4.
If your system and browser are properly configured and running, you will see the confirmation screen shown in Figure 5.
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Gnome 48 Debuts New Audio Player
To date, the audio player found within the Gnome desktop has been meh at best, but with the upcoming release that all changes.
-
Plasma 6.3 Ready for Public Beta Testing
Plasma 6.3 will ship with KDE Gear 24.12.1 and KDE Frameworks 6.10, along with some new and exciting features.
-
Budgie 10.10 Scheduled for Q1 2025 with a Surprising Desktop Update
If Budgie is your desktop environment of choice, 2025 is going to be a great year for you.
-
Firefox 134 Offers Improvements for Linux Version
Fans of Linux and Firefox rejoice, as there's a new version available that includes some handy updates.
-
Serpent OS Arrives with a New Alpha Release
After months of silence, Ikey Doherty has released a new alpha for his Serpent OS.
-
HashiCorp Cofounder Unveils Ghostty, a Linux Terminal App
Ghostty is a new Linux terminal app that's fast, feature-rich, and offers a platform-native GUI while remaining cross-platform.
-
Fedora Asahi Remix 41 Available for Apple Silicon
If you have an Apple Silicon Mac and you're hoping to install Fedora, you're in luck because the latest release supports the M1 and M2 chips.
-
Systemd Fixes Bug While Facing New Challenger in GNU Shepherd
The systemd developers have fixed a really nasty bug amid the release of the new GNU Shepherd init system.
-
AlmaLinux 10.0 Beta Released
The AlmaLinux OS Foundation has announced the availability of AlmaLinux 10.0 Beta ("Purple Lion") for all supported devices with significant changes.
-
Gnome 47.2 Now Available
Gnome 47.2 is now available for general use but don't expect much in the way of newness, as this is all about improvements and bug fixes.