Issue:
Tor does not log (or does not perform) a test to determine if an IPv6 ORPort is reachable.
Tor does log a corresponding test for an IPv4 ORPort.
Environment:
Debian squeeze amd64, latest patches
Tor version 0.2.4.2-alpha (git-0537dc6364594474)
How to reproduce:
configure Tor with both IPv4 and IPv6 IP addresses and OrPorts.
start Tor
the Tor log file will show a test to determine if the IPv4 OrPort is reachable, but not if the IPv6 ORPort is reachable.
(this particular system was configured as a bridge)
Expected Behavior:
The user might expect to see a log entry for IPv6 that corresponds to the following log entry for IPv4:
"Sep 22 11:09:21.000 [notice] Now checking whether ORPort [host's IPv4 address]:443 is reachable... (this may take up to 20 minutes -- look for log messages indicating success)"
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Child items
...
Show closed items
Linked items
0
Link issues together to show that they're related.
Learn more.
I've got an untested implementation for this in branch "bug6939" in my public repo, but I'm inclined to call it a feature and put it in 0.2.5. Thoughts?
Trac: Status: new to needs_review Summary: Missing log entry for IPv6 ORPort reachability check to Missing IPv6 ORPort reachability check
I think this is correct, but I also think it's a feature and probably for 0.2.5.
The patch looks okay; just one complaint: the extend_info_from_router() function does a variety of manipulations in the IPv6 case, but just calls router_get_prim_orport() for IPv4. Shouldn't there be a parallel router_get_prim_ipv6_orport() that does that stuff instead?
There is now no IPv6 DirPort, it existed for a short while in the 0.2.8 alpha series, and was effectively removed by mandatory client directory fetches over ORPort begindir.
To implement this ticket, we need Tor to be able to connect to its own IPv6 ORPort, using at least a 3-hop path:
This relay
Guard
Middle that supports IPv6
IPv6 ORPort on this relay
We can definitely choose a middle node that supports IPv6 (maybe this will need an API change?), but I'm not sure whether we can tell it to extend specifically to an IPv6 address, and how it will react if we do.
Alternately, we could simply test if we can connect, like the IPv4 DirPort, but that is sub-optimal.
In any case, Authorities don't vote on IPv6 addresses unless they can test IPv6 reachability, so at least the authorities are checking IPv6 ORPorts.
These needs_revision, tickets, tagged with 034-removed-*, are no longer in-scope for 0.3.4. We can reconsider any of them, if somebody does the necessary revision.
Trac: Milestone: Tor: 0.3.4.x-final to Tor: unspecified