Country patch for Tor

Boris Gimelbrand borisg at
Tue Jan 6 06:13:14 UTC 2009

No, I haven't. I saw that it's still on the "to do" list, and it didn't cross my mind to check 
the development version.

----- Original Message -----
From: "Nick Mathewson" <nickm at>
To: or-dev at
Sent: Monday, January 5, 2009 9:32:09 PM (GMT+0200) Auto-Detected
Subject: Re: Country patch for Tor

On Mon, Jan 05, 2009 at 02:30:04PM +0200, Boris Gimelbrand wrote:
> Hi,
> I added a patch that enables choosing exit node country from configuration file.
> It uses already existing functions that access GeoIP database.
> I also added an option to load one country only from the GeoIP database,
> for limited resources systems.

Have you seen the new node list syntax in the development series, in and later?  Now you can do similar things with:
    # Use exit nodes in GB.
    ExitNodes {gb}

    # Use exit nodes in countries that have won the World Cup
    # recently. Also use any exit node at MIT.
    ExitNodes {it}, {br}, {fr},

    # Don't use an exit node in any country that is sinking under
    # water.
    ExcludeExitNodes {mv}

{This is one of the reasons it's usually better to write feature
patches against the development series (where we add features) than
against stable versions.}
Nick Mathewson

More information about the tor-dev mailing list