[tor-bugs] #10468 [Tor]: Make DnsPort, IPv6, and AutomapHostsOnResolve work tother.
Tor Bug Tracker & Wiki
blackhole at torproject.org
Wed Apr 2 01:32:19 UTC 2014
#10468: Make DnsPort, IPv6, and AutomapHostsOnResolve work tother.
-------------------------+-------------------------------------------------
Reporter: nickm | Owner:
Type: defect | Status: needs_review
Priority: major | Milestone: Tor: 0.2.5.x-final
Component: Tor | Version:
Resolution: | Keywords: tor-client 024-backport automap dns
Actual Points: | ipv6
Points: | Parent ID:
-------------------------+-------------------------------------------------
Comment (by nickm):
So the question is, what happens when we have automaphostsonresolve set to
return A records, and we're connecting to foo.bar.com that only has an
AAAA record?
The answer is, nothing bad, I believe. Locally, when the resolve happens,
we pick a new 127.192.x.y address, and map that address to foo.bar.com.
We store the mapping bidirectionally; see addressmap.c for the details.
Then later when we get a connection attempt to 127.192.x.y, we rewrite
that as foo.bar.com, and send a BEGIN cell with foo.bar.com in it. The
parameters for whether that connection is allowed to be IPv4 or IPv6
depend on the settings of the port used to connect to 127.192.x.y, not the
one that resolved foo.bar.com.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/10468#comment:4>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list