[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #34167 [Core Tor/Tor]: PublishServerDescriptor via IPv6
#34167: PublishServerDescriptor via IPv6
--------------------------+----------------------------------
Reporter: ϲypherpunks | Owner: (none)
Type: enhancement | Status: new
Priority: Medium | Milestone: Tor: unspecified
Component: Core Tor/Tor | Version:
Severity: Normal | Resolution:
Keywords: IPv6 | Actual Points:
Parent ID: | Points:
Reviewer: | Sponsor: Sponsor55-can
--------------------------+----------------------------------
Changes (by teor):
* version: Tor: unspecified =>
* sponsor: => Sponsor55-can
* milestone: => Tor: unspecified
Comment:
I'm not sure if we need this feature right now - at the moment, relays
have to have an IPv4 ORPort. But we might want it eventually for IPv6-only
relays. And it won't hurt to add it early.
I'm also not sure if we need an extra option or flag. We could just try
both IPv4 and IPv6?
To avoid confusing IPv4-only relay operators, we should:
* only log a failure warning if both fail, or
* skip IPv6 if the relay doesn't have an IPv6 ORPort.
(We're going to add automatic IPv6 ORPort discovery in #33049. So once
that ticket is done, we should update the IPv6 check to use the new IPv6
discovery feature.)
Here's the relevant code, if anyone would like to start on this feature:
directory_post_to_dirservers():
https://github.com/torproject/tor/blob/b7a165228f02e693b3e777b4c815214bb6e05691/src/feature/dirclient/dirclient.c#L219
You'll want to set DIRIND_ONEHOP for relay descriptors via IPv4 and IPv6
ORPorts, and DIRIND_ANONYMOUS for bridge descriptors via IPv6 ORPorts.
(The existing purpose_needs_anonymity() check does the DIRIND_ANONYMOUS
for you.)
You'll also want to use directory_request_set_or_addr_port() and
directory_request_set_directory_id_digest(). Avoid setting the dirport or
routerstatus.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/34167#comment:1>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs