"Protect Your Privacy: How to Set Up Tor for Firefox on Linux, Mac, and Windows"

What is Tor?

Tor (The Onion Router) is a free and open-source software that enables anonymous communication by routing internet traffic through a network of volunteer-operated servers. By using Tor, you can conceal your IP address and make it difficult for anyone to track your online activities.

Setting up Tor on Linux

To set up Tor on Linux, follow these steps:

  1. Install the Tor package using your distribution's package manager. For example, on Ubuntu-based distros, you can use the following command:
sudo apt-get install tor
  1. Once installed, start the Tor service using the following command:
sudo systemctl start tor
  1. Configure Firefox to Use Tor as a Proxy:

    • Open Firefox and click on the menu (three horizontal lines) in the upper-right corner.
  • Select Settings (or Options).

  • Go to the General tab and scroll down to Network Settings.

  • Click Settings next to Network Settings.

  1. Set Up Proxy Connection:

    • In the Connection Settings window, select Manual proxy configuration.

    • In the SOCKS Host field, enter 127.0.0.1 and set the port to 9050.

    • Select SOCKS5 (not SOCKS4) for the proxy type.

    • Check the box for Proxy DNS when using SOCKS v5 to ensure DNS queries are routed through Tor.

  2. Verify Tor Connection

Setting up Tor on Mac os

To set up Tor on Mac os, follow these steps:

  1. Download and install the Tor Browser from the official Tor website: https://www.torproject.org/download/

  2. Install Tor Browser:

    • Open the .dmg file you downloaded.

    • Drag the Tor Browser icon to your Applications folder.

  3. Once installed, start the Tor service using the following command:

brew services start tor
  • Launch Tor Browser:

  • Click “Connect” to join the Tor network.

  1. Configure Firefox to Use Tor as a Proxy:

    • Open Firefox and click on the menu (three horizontal lines) in the upper-right corner.

    • Select Settings (or Options).

    • Go to the General tab and scroll down to Network Settings.

    • Click Settings next to Network Settings.

  2. Set Up Proxy Connection:

    • In the Connection Settings window, select Manual proxy configuration.

    • In the SOCKS Host field, enter 127.0.0.1 and set the port to 9050.

    • Select SOCKS5 (not SOCKS4) for the proxy type.

    • Check the box for Proxy DNS when using SOCKS v5 to ensure DNS queries are routed through Tor.

  3. Verify Tor Connection

Setting up Tor on Windows

To set up Tor on Windows, follow these steps:

  1. Download and install the Tor Browser from the official Tor website: https://www.torproject.org/download/

  2. Once installed, launch the Tor Browser and click on the "Connect" button to establish a connection to the Tor network.

  3. Configure Firefox to Use Tor as a Proxy:

    • Open Firefox and click on the menu (three horizontal lines) in the upper-right corner.

    • Select Settings (or Options).

    • Go to the General tab and scroll down to Network Settings.

    • Click Settings next to Network Settings.

  4. Set Up Proxy Connection:

    • In the Connection Settings window, select Manual proxy configuration.

    • In the SOCKS Host field, enter 127.0.0.1 and set the port to 9050.

    • Select SOCKS5 (not SOCKS4) for the proxy type.

    • Check the box for Proxy DNS when using SOCKS v5 to ensure DNS queries are routed through Tor.

  5. Verify Tor Connection

0
Subscribe to my newsletter

Read articles from Md. Afzal Hassan Ehsani directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Md. Afzal Hassan Ehsani
Md. Afzal Hassan Ehsani

I am a student who loves programming. 🌱 Exploring Devops. 🌱I spent time on learning cool stuffs.