teor wrote:
Hi,
Cc'ing Linus, because he is also interested in IPv6.
On 28 Feb 2019, at 19:01, s7r <s7r@sky-ip.org mailto:s7r@sky-ip.org> wrote:
However, shouldn't the line: ORPort 9050
bind to all v4 and v6 available interfaces / IP addresses? If it does not, we should fix it to do so. As in:
ORPort 9050 - bind to all available v4 and v6 ORPort 0.0.0.0:9050 - bind to all available from the v4 class ORport [::]:9050 - bind to all available from the v6 class ORPort <explicit-address>:port - bind to specified address exactly
Tor already binds to IPv4 and IPv6 by default. But it only autodetects IPv4 addresses. (Binding to IPv6 doesn't really do much, if you don't have an IPv6 address to advertise.)
Oh I thought IPv6 needs to be stated explicitly or at least generally by omitting IPv4 at all even as the general 0.0.0.0.
So ORPort 0.0.0.0:9001 would bind to all IPv4 and IPv6 available addresses on a server?
The same would ORPort 9001 ?
I'd love to make Tor autodetect IPv6 addresses.
Here's what we need to do to make that happen:
- make relays extend over IPv6
* these relays should declare a new protocol version "IPv6Relay=1" 2. make relays check their IPv6 ORPorts for reachability using an IPv6Relay * make relays connect to their own IPv6 ORPort (needs 1) * detect and track IPv4 and IPv6 ORPort reachability separately 3. make relays autodetect an IPv6 address (needs 2)
Here's the parent ticket for this change: https://trac.torproject.org/projects/tor/ticket/24403
Our next step is to write a proposal for this change. (There is already some code in some of the tickets.)
T
Sounds like a good plan.
I'd love that too -- but the thing I am thinking now is how to address the temporary addresses that are used in operating systems (in some my default, in some not by default)? Those addresses change over time randomly, and maybe more often than a relay would find useful.
Is there a flag or something that can make an application tell the difference between a temporary IPv6 address and a static one, for example?