[tor-bugs] #18547 [Nyx]: Add hostnames and geoip to connection panel
Tor Bug Tracker & Wiki
blackhole at torproject.org
Mon Mar 14 15:42:11 UTC 2016
#18547: Add hostnames and geoip to connection panel
-----------------------------+-------------------------
Reporter: atagar | Owner: atagar
Type: enhancement | Status: new
Priority: High | Milestone:
Component: Nyx | Version:
Severity: Normal | Keywords: connections
Actual Points: | Parent ID:
Points: | Reviewer:
Sponsor: |
-----------------------------+-------------------------
Many releases ago Nyx
[https://gitweb.torproject.org/nyx.git/tree/src/util/hostnames.py?id=1.4.5.0
showed hostnames on the connection panel], but dropped this because it
leaked our connections to our DNS provider. We can still get this
information, but it must be on **every** relay or none at all.
Turns out Onionoo already supports exactly what we want! In particular
here's the query we want...
[https://onionoo.torproject.org/details?fields=fingerprint,country,country_name,region_name,city_name,host_name&running=true&type=relay
https://onionoo.torproject.org/details?fields=fingerprint,country,country_name,region_name,city_name,host_name&running=true&type=relay]
Note that [https://onionoo.torproject.org/protocol.html Onionoo supports
gzip compression] and we want to take advantage since it drops the size of
our replies from 1.5 MB to 432.6 KB.
For this we want a new **Daemon subclass** in **tracker.py**. This class
would have a single **relay_details(fingerprint)** method that returns a
struct with these attributes. If we meet the following two constraints
then it calls Onionoo to update our cache...
1. We make a request for a fingerprint the cache doesn't have.
2. It's been over an hour since the relays_published date in our last
reply (like the consensus Onionoo updates hourly, so no point in
requesting more frequently).
Note that we might not want all of these geoip fields (we'll need to
fiddle with the panel to see what is nice to have).
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/18547>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list