On 16 Feb 2018, at 17:49, Felix zwiebel@quantentunnel.de wrote:
Hey
Am 16-Feb-18 um 02:26 schrieb flipchan: Hey, Im trying to write an ip checker script for a mail server/firewall and i want to be able check if the ip is a tor relay, is their a api for looking up ips on atlas.torproject.org ?
Or any other easier way to do it in like python :)
For exit IP addresses, you can query the bulk exit list, or Onionoo.
You can run a tor client and: # grep "a.b.c.d" /var/db/tor/cached-consensus
The cached consensus only contains ORPort addresses, not exit IP addresses. Most are the same, some are different.
T