4

I'm a Tor newbie. I've installed tor and tor-browser on Ubuntu 12.04 machine. It launches well and seems to work as expected. I wanted to set my exit node in the country of my choosing and found the ExitNodes directive followed by {us} should do it. So I added ExitNodes {us} to the very end of my /etc/tor/torrc and did a sudo service tor restart. I restarted the tor-browser but when navigating to https://dnsleaktest.com/, it still tells me I'm somewhere else (in Switzerland). Why is this and how do I use the ExitNodes correctly?

EDIT 1
The repo I got my instance from is deb-src http://deb.torproject.org/torproject.org precise main

stdcerr
  • 151
  • 1
  • 6

3 Answers3

3

Also add StrictNodes 1 to your torrc.

nobody
  • 725
  • 4
  • 15
2

Tor and Tor Browser are two different things. The Tor software uses /etc/tor/torrc as a configuration file and is system-wide available. Tor Browser uses the file Browser/TorBrowser/Data/Tor/torrc in your local drive (where Tor Browser is installed). Both files are different and if you edit one those changes don't affect the other.

If you want to make settings in Tor Browser use Browser/TorBrowser/Data/Tor/torrc in your local drive, edit the file and restart To Browser.

Furthermore it is important to also set StrictNodes to 1.

Jens Kubieziel
  • 8,630
  • 5
  • 35
  • 116
1

Is tor-browser a package that you've installed from some dodgy third party repo? If so, uninstall it! Almost all of these packages are done wrong and none of them are officially supported.

If you want to install a package for Tor Browser, I'd recommend using Micah Lee's torbrowser-launcher, which will handle the downloading, verification and extraction of Tor Browser.

The second point is that editing /etc/tor/torrc will not affect a stock Tor Browser install, it ships with and launches it's own instance of tor which includes it's own torrc configuration file.

Once you've installed Tor Browser you'll find the appropriate torrc file inside the Tor Browser folder than extracted at Browser/TorBrowser/Data/Tor/torrc, this is where you will want to make these edits. For example, mine is located at ~/.local/share/torbrowser/tbb/x86_64/tor-browser_en-US/Browser/TorBrowser/Data/Tor, which is where torbrowser-launcher extracts it to.

Keep in mind that IP addresses don't really map to geographic locations and that all GeoIP is inaccurate guesswork at best, the internet doesn't really work like that :) You will likely exit from many other places than those that you allow or from inside places that you restrict.

Shog9
  • 101
  • 7