Fwd: Country patch for Tor

Boris Gimelbrand borisg at yoggie.com
Mon Jan 5 12:30:39 UTC 2009

----- Forwarded Message -----
From: "Boris Gimelbrand" <borisg at yoggie.com>
To: or-dev at seul.org
Sent: Monday, January 5, 2009 2:30:04 PM (GMT+0200) Auto-Detected
Subject: Country patch for Tor


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.
The new parameters are:
ExitCountry, e.g. "ExitCountry gb" for Britain.
GeoIPExitCountryOnly - if true, load only the country chosen in ExitCountry from GeoIP database.

Sample configuration:

GeoIPFile /etc/yoggie/torIpToCountry.csv
GeoIPExitCountryOnly 1
ExitCountry gb

Boris Gimelbrand
-------------- next part --------------
A non-text attachment was scrubbed...
Name: country.patch
Type: application/octet-stream
Size: 5063 bytes
Desc: not available
URL: <http://lists.torproject.org/pipermail/tor-dev/attachments/20090105/d2d64038/attachment.obj>

More information about the tor-dev mailing list