I would like to have Tor use a different IP address in Canada every time I start or restart the application.
Is that possible? If so, how?
Peter already suggested the FAQ entry: Can I control which nodes (or country) are used for entry/exit?. So when your are using the Tor Browser Bundle navigate to the directory where the bundle lives. Within the subdirectory Data/Tor
is the file torrc
. You can open this file with a text editor and add the line:
ExitNodes {ca}
Save the file and restart Tor. Now Tor tries to use only canadian based exit nodes. However it might be the case that there is none in Canada. In the default setting Tor will just use one from another country. If you like Tor to fail if no canadian exit is available, add the option
StrictNodes 1
to your torrc
.
In theory there might be a case where the geographical information is wrong. So the geoip file says IP address is in Canada while it is in the Democratic Republic of Congo. Here only an update of the geoip file helps. However I guess such a case doesn't happen very often.
In general I want to repeat Peters warning: It is not recommended to use such a setting.
I think there is a FAQ entry that answers your question as far as Tor is concerned: Can I control which nodes (or country) are used for entry/exit?.
Note that we recommend you do not use these!
I don't think the browser bundle exposes such config options, but you can probably just go to its directory and modify the torrc there. Again, not recommended.
I'm going to assume by different IP address you actually mean a different path. Because obviously it's not healthy for the Tor network nor for its other users. So please don't try to do that.
And also limiting yourself to a specific country is not recommended as it will ruin your anonymity.
But if you mean a different path, that's what Tor already does. Every time you start the Tor Browser Bundle, it makes a new circuit with three random relays and the circuit stays alive for 10 minutes or less (depending on timeouts you get) and then it'll automatically switch to a different path.
If you want to force Tor to use a different path (that is, you keep getting timeouts), "New Identity" is the key.