RSSAmplifier

Hristiyan Dodov · Oct 30, 2025

How to securely use Tor on macOS with Kali Linux VM

0
Sign in to vote or save

Hristiyan Dodov

When surfing the dark web and opening .onion links, you should be extra paranoid about privacy and security. If you have a brand new MacBook Pro, it's definitely worth it to isolate it as best you can. In this article, we're going to:

  1. Install VMware Fusion for setting up virtual machines

  2. Set up a Kali Linux VM, suited for our ARM-based host machine

  3. Set up a VPN in the VM that automatically starts on boot

  4. Install a Tor browser

Download the virtualization software

There are many virtualization solutions out there, but here we're using VMware. And if we want to use VMware on macOS specifically, we need VMware Fusion(opens in new tab) (while VMware Workstation is for Windows and Linux only).

  1. Log into your account

Set up the VM

  1. Start up VMware Fusion and drag the downloaded ISO file there

  2. Create a new image using the Debian template (since Kali is based on Debian):

    VMware Fusion operating system selection screen
  3. Run through the Kali installer using the preselected options:

    Kali Linux installation start screen
  4. Select "Guided - use entire disk" for disk partitioning:

    Kali Linux setup disk partitioning screen
  5. Once Kali boots, you should see this:

    Kali Linux boot screen
  6. And once you log in, you should see this:

    Kali Linux desktop on fresh install

Setting up Tor

At the time of writing, we can't use the canonical Tor browser(opens in new tab) because it has no builds for ARM architecture CPUs, on which Apple Silicon machines are based. Check issue #12631(opens in new tab) in the Tor project for updates.

Even if you were to install the Tor browser, you'd get the following error upon starting it up:

Tor Browser requires a CPU with SSE2 support. Exiting.

For this reason, we'll be using Brave, as it has Tor connectivity built-in:

  1. Start it by typing brave-browser in the terminal

Setting up the VPN

For extra safety, you should connect your Kali VM to a VPN, so that the traffic doesn't return to your personal IP. I'm using Proton VPN(opens in new tab) because it's privacy-focused and free.

  1. Move the config file to /etc/openvpn:

    sudo mv ~/Downloads/ch-free-2.protonvpn.udp.ovpn \
           /etc/openvpn/ch-free-2.protonvpn.udp.conf

    Note: The extension changes from .ovpn to .conf, since that's what the openvpn program expects!

  2. Store your credentials on disk:

    sudo bash -c 'printf "%s\n%s\n" "YOUR_OPENVPN_USERNAME" "YOUR_OPENVPN_PASSWORD" > /etc/openvpn/credentials'
    sudo chmod 600 /etc/openvpn/credentials
  3. Change the config to point to the credentials file:

    sudo sed -i 's/^auth-user-pass$/auth-user-pass \/etc\/openvpn\/credentials/' \
      /etc/openvpn/ch-free-2.protonvpn.udp.conf
  4. Start the service:

  5. Restart the VM and verify that you get automatically connected to the VPN

Browse with Tor

Now that you have a fully configured VM with a VPN and a Tor browser, simply start Brave in Tor mode and surf the (dark) web!

To be extra sure, open check.torproject.org(opens in new tab) to verify that you are indeed using Tor:

Browser page showing that Tor is correctly configured

Read the original on dodov.dev

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.