Tor and Mullvad VPN

CONNECTIVITY

Last updated: 3 November 2020


In this guide we will install the Tor Browser and enable other programs to connect to the internet via the Tor Browser proxy.

Overview

We will first install OpenVPN and configure it to connect to Mullvad via the Tor Browser. Last step is to configure Firefox (or other programs) to connect to Mullvad using our SOCKS5 proxy

The end result is that Firefox connects via Tor to Mullvad ("VPN through Tor"). Mullvad will be the exit node.

The Tor Browser itself will only use the Tor Network.
Programs not configured to use Mullvad's SOCKS5 proxy will connect directly to the internet without using any VPN or Tor at all.

Set-up instructions

Windows

  1. Install OpenVPN (OpenVPN installation guide)
  2. Download the Tor Browser for Windows
  3. Verify signatures
  4. Install the Tor Browser
  5. Open the Tor Browser folder on the desktop
  6. Open Browser -> Open TorBrowser -> Open Data -> Open Tor
  7. Edit torrc-defaults and change CookieAuthentication 1 to CookieAuthentication 0
  8. Save the change
  9. Download an OpenVPN configuration file from our website, making sure you select Windows as Platform and Port TCP 443
  10. Extract the zip file to your desktop
  11. Open the OpenVPN configuration file with Wordpad
  12. Add the following entries to it:
    route-nopull
    route 10.8.0.1 255.255.255.255
    socks-proxy 127.0.0.1 9150
  13. Save the changes and then copy the files into C:\program files\openvpn\config\
  14. Start the Tor Browser
  15. Right-click on the OpenVPN GUI icon and select Run as administrator
  16. Click Yes for the Pop-up requesting permission for making changes
  17. Right-click on the OpenVPN icon in the systray and select the Mullvad profile and then click on connect
  18. Open Firefox and then go to ifconfig.co to check your IP
  19. Follow our SOCKS5 guide and then reload ifconfig.co to verify that the IP address is showing one of Mullvad's IP addresses

macOS

  1. Download and install TunnelBlick
  2. Log in on our website and go to the OpenVPN configuration file generator
  3. Select macOS as platform
  4. Select Advanced Settings >  Port > TCP 443
  5. Select a country and click on Download zip archive and then save it to your computer
  6. Right-click the downloaded and extracted Mullvad.tblk file and select "Show Package Contents"
  7. Open the OpenVPN configuration file (mullvad_xx.conf) with TextEdit
  8. Add the following entries to it anywhere in the file:
    route-nopull
    route 10.8.0.1 255.255.255.255
    socks-proxy 127.0.0.1 9150
  9. If there is a line that says "tun-ipv6" then remove it
  10. Close TextEdit (the file will save automatically)
  11. Double-click on Mullvad.tblk and add the configuration to Tunnelblick
  12. Download and install the Tor Browser.
  13. Use Finder and go to the Applications folder
  14. Start Tor Browser one time to verify the integrity and then quit it
  15. Right-click the "Tor Browser" application and click "Show Package Contents"
  16. Go to the subdirectory Content > Resources > TorBrowser > Tor
  17. Edit using TextEdit torrc-defaults and change CookieAuthentication 1 to CookieAuthentication 0
  18. Close TextEdit (the file will save automatically)
  19. Start the Tor Browser
  20. Select Connect Mullvad from the Tunnelblick icon in the macOS menubar (it will warn that the IP did not change, this is normal)
  21. Install Firefox (or other web-browser that supports SOCKS5 proxies)
  22. Open Firefox and then go to our Connection check to check your IP
  23. Follow our SOCKS5 guide and then reload the Connection check to verify that the IP address is showing one of Mullvads IP addresses

Linux

  1. Install OpenVPN (OpenVPN installation guide)
  2. Download the Tor Browser for Linux
  3. Verify signatures.
  4. Unpack the Tor Browser (xz -d tor-browser-linux*.xz && tar -vxf tor-browser-linux*.tar)
  5. cd into "tor-browser*/Browser/TorBrowser/Data/Tor"
  6. Edit torrc-defaults and change CookieAuthentication 1 to CookieAuthentication 0
  7. Save the change.
  8. Download an OpenVPN configuration file from our website, make sure you select Linux as Platform and 443 TCP as Port
  9. Extract the zip file
  10. Edit the OpenVPN configuration file
  11. Add the following entries to it:
    route-nopull
    route 10.8.0.1 255.255.255.255
    socks-proxy 127.0.0.1 9150
  12. Save the changes
  13. rename the configuration file to something easy to identify like mullvad_tor.conf
  14. Start the Tor browser
  15. Start OpenVPN using the mullvad_tor.conf
  16. Open Firefox (not the tor browser) and then go to our Connection check to check your IP
  17. Follow our SOCKS5 guide and then reload the Connection check to verify that the IP address is showing one of Mullvads IP addresses