[tor-bugs] #27490 [Core Tor/Tor]: When ClientPreferIPv6ORPort is set to auto, and a relay is being chosen for a directory or orport connection, prefer IPv4 or IPv6 at random

Tor Bug Tracker & Wiki blackhole at torproject.org
Tue Sep 11 23:15:16 UTC 2018


#27490: When ClientPreferIPv6ORPort is set to auto, and a relay is being chosen for
a directory or orport connection, prefer IPv4 or IPv6 at random
--------------------------+--------------------------
 Reporter:  neel          |          Owner:  neel
     Type:  enhancement   |         Status:  assigned
 Priority:  Medium        |      Milestone:
Component:  Core Tor/Tor  |        Version:
 Severity:  Normal        |     Resolution:
 Keywords:                |  Actual Points:
Parent ID:  #17835        |         Points:
 Reviewer:                |        Sponsor:
--------------------------+--------------------------

Comment (by neel):

 My PR is here: https://github.com/torproject/tor/pull/317

 I do know that there are other parts to #17835 and I will do them as
 separate pull requests. Changes to individual tickets will (probably) be
 done on the same PR as the original.

 About testing:

 I have tested this on a laptop running FreeBSD 12 connected to a router
 running Tomato Shibby and a Hurricane Electric IPv6 tunnel on a IPv4-only
 Verizon FiOS connection (FiOS is FTTH/GPON).

 How I tested this: I used a custom torrc with `ClientPreferIPv6ORPort` to
 `auto` and `EntryNodes` to an IPv6-capable guard. As this is only the
 first step, there are times where I get IPv4 connections to the
 IPv6-supported guard and other times where I get IPv6 connections to the
 same guard.

 I also set `EntryNodes` to an IPv4-only guard and get only IPv4
 connections.

 For the Tor developers reviewing this patch, you may or may not have IPv6
 in your home or office to test this patch. If you don't, you could use
 HE's IPv6 tunnel or a testing network.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/27490#comment:3>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list