Tor GeoIp Configuration

You can specify which geographical region your traffic appears to be coming from when using Tor with a few clicks and edits to the toorc (the Tor configuration file) on your anonabox.

This tutorial assumes you are using the latest firmware, check here to see if there is an updated version and how to upgrade: https://www.anonabox.com/updates.html

First thing to do is to download the Tor GeoIp addong for Tor. After logging into the admin web interface, click the System dropdown menu, then click 'Software'.

The page that comes up is named Software, and it has a button labled 'Update lists'. Click that button to check for new software.

You will be able to see what is going on in the background by the text on the screen as it checks for updates. The updates come from the openwrt repositories.

After the lists are brought up to date, the button for 'Update lists' goes away and you will have a place where you can type in the name of software to search for. In this case, we want the package named tor-geoip, so type that into the search field next to the 'Find Package' button and then click FInd Package.

After a few seconds, you will see the tor-geoip software come up under the Available Packages tab. As of this writing the current version is tor-geoip 2.9.9-1.

Click the link next to the software name that says 'install' YOu will be prompted once to confirm installation.

After a few seconds, you will get a message saying the software installed correctly.

Now all we need to do is add a line to our toorc (Tor Config file) that tells it to use the new package and to specify what geographical region we would like to use.

Click the services dropdown menu, then select Tor, then click on the tab labled 'Advanced Configuration'

Here you will see the text for the torrc. Scroll down to the bottom of that file and paste in the following lines:

ExitNodes {us} StrictNodes 1

In this example, the text 'us' means we are specifying we want tor to use exit nodes in the United States. Scroll down to the bottom of this tutorial for a full list of available country codes. It is not case sensitive, but we have always used lower case.

You can also if you want, specify a country code that you want to exclude. This means all your traffic will go out of exit nodes that are not located in this country. The syntax for that is :

ExcludeExitNodes {fr,de} StrictNodes 1

Which would exclude exit nodes in France and Germany.

After you have made that change to the config file, scroll down the the bottom of the page and click 'Save and Apply'.

Now all you need to do it to stop Tor , and start it again in order for the changes to the config file we just made to take effect. Click Services –> Tor, then 'Stop' it will take a few seconds to stop the process, then on that same page click 'Start'.

Thats it! You will notice that Tor is now connecting from the country you chose.

Here is a full list of all the country codes available for reference. Country Code Abbr