How to remove some useless nodes

John Kimble det.j.kimble at gmail.com
Mon Jan 28 07:14:38 UTC 2008


On Jan 27, 2008 11:08 AM, Kraktus <kraktus at googlemail.com> wrote:
> You can add
> ExcludeNodes NodeName1, NodeName2
> to your torrc, where the NodeName1, etc. are the names of Chinese exit
> nodes that you are aware of.  However, you much disallow each Chinese
> node separately; you can't exclude by country.
>
A crude approach would be to write a script that checks
[vidalia-config-directory]\geoip-cache for IP addresses located in
China, and then extract fingerprints of the Tor nodes on those IPs
from [tor-config-directory]\cached-descriptors to build up your
"ExcludeNodes" list.

The enclosed perl script does just this. It should be self-explanatory
enough. It produces one "ExcludeNodes" line to be included in your
torrc file.

Instead of the geoip-cache file, you can also use country IP blocks
from www.ipdeny.com to match IP to country.

Yet another alternative using public tor status pages was discussed on
this list:
<http://archives.seul.org/or/talk/Jul-2006/msg00079.html>

Cheers,
John
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: exclude.pl
URL: <http://lists.torproject.org/pipermail/tor-talk/attachments/20080128/052530cf/attachment.asc>


More information about the tor-talk mailing list