Opened 6 months ago

Last modified 8 weeks ago

#33233 assigned enhancement

Prop 312: 3.2.1. Make the Address torrc Option Support IPv6 Literals

Reported by: teor Owned by:
Priority: Medium Milestone:
Component: Core Tor/Tor Version:
Severity: Normal Keywords: ipv6, prop312, network-team-roadmap-2020Q2, 044-deferred
Cc: Actual Points:
Parent ID: #33049 Points: 1
Reviewer: Sponsor: Sponsor55-must

Description (last modified by teor)

We can work on this ticket now, but we should do the code movement in
#33789 first.

Make relays and bridges use the Address torrc option to find their IPv6 addresses.

This ticket covers the IPv6 literal case:

  1. Explicit IP addresses:
    • allow the option to be specified up to two times,
    • use the IPv4 address for IPv4,
    • use the IPv6 address for IPv6. Configuring two addresses in the same address family is a config error.
  1. Hostnames / DNS names:
    • allow the option to be specified up to two times,
    • look up the configured name,
    • use the first IPv4 and IPv6 address returned by the resolver, and Resolving multiple addresses in the same address family is not a runtime error, but only the first address from each family will be used.

It is an error to configure an Address option with a private IPv4 or IPv6
address. (If tor is configured with a custom set of directory authorities, private addresses should be allowed, with a notice-level log.)

See proposal 312, section 3.2.1, case 1:
https://gitweb.torproject.org/torspec.git/tree/proposals/312-relay-auto-ipv6-addr.txt#n252

As soon as we implement this ticket, we should implement #33246 to automatically open an IPv6 ORPort based on the Address config. (Or any discovered addresses.)

Then we should test the different IPv4/IPv6 configs listed in #33235.

Child Tickets

TicketTypeStatusOwnerSummary
#30954enhancementclosedneelAddress torrc option is ignored if set second time for the IPv6 address

Change History (6)

comment:1 Changed 4 months ago by gaba

Keywords: network-team-roadmap-2020Q2 added

Add more s55 tickets to 2020 Q2 roadmap for the network team.

comment:2 Changed 3 months ago by teor

Description: modified (diff)

Note dependencies on #33246 and #33235.

comment:3 Changed 3 months ago by teor

Description: modified (diff)

comment:4 Changed 3 months ago by teor

Owner: teor deleted

Un-assign myself from future Sponsor 55 tasks.

comment:5 Changed 8 weeks ago by nickm

Keywords: 044-deferred added
Milestone: Tor: 0.4.4.x-finalTor: unspecified

Bulk-remove tickets from 0.4.4. Add the 044-deferred label to them.

comment:6 Changed 8 weeks ago by nickm

Milestone: Tor: unspecified

Bulk-move prop311 and prop312 to 0.4.5

Note: See TracTickets for help on using tickets.