Opened 8 years ago

Last modified 2 years ago

#3511 assigned enhancement

Automatically chosen published ports should be stable

Reported by: nickm Owned by: blackpaw
Priority: High Milestone: Tor: unspecified
Component: Core Tor/Tor Version:
Severity: Normal Keywords: tor-relay, small-feature, ports, stability, configuration, intro
Cc: Actual Points:
Parent ID: Points: 4
Reviewer: Sponsor:

Description (last modified by nickm)

Tor 0.2.2.x adds the ability to configure ports with "FooPort auto", and get Tor to choose a port on its own. However, these ports will almost certainly not be the same across invocations of Tor, which makes them unsuitable for ORPort and DirPort usage.

Tor should record the values chosen for published (that is, ORPort and DirPort) "auto" ports, and try to reuse them in later invocations. Of course, if those ports aren't available, it'll need to choose a new port anyway.

Child Tickets

Change History (14)

comment:1 Changed 8 years ago by nickm

Description: modified (diff)

comment:2 Changed 8 years ago by nickm

See also #3948

comment:3 Changed 7 years ago by nickm

Milestone: Tor: 0.2.3.x-finalTor: 0.2.4.x-final

We should really do this, but I don't see it happening as a small feature before the deadline. But in 0.2.4.x, for sure!

comment:4 Changed 7 years ago by nickm

Keywords: tor-relay added

comment:5 Changed 7 years ago by nickm

Component: Tor RelayTor

comment:6 Changed 6 years ago by nickm

Keywords: small-feature added

I'd love to have this if anybody can hack it before the deadline.

comment:7 Changed 6 years ago by nickm

Milestone: Tor: 0.2.4.x-finalTor: 0.2.5.x-final

comment:8 Changed 6 years ago by blackpaw

Owner: set to blackpaw
Status: newassigned

I can do this, since no one else will for a long time. One has to start somewhere.

comment:9 Changed 5 years ago by nickm

Milestone: Tor: 0.2.5.x-finalTor: 0.2.???

comment:10 Changed 3 years ago by teor

Severity: Normal

This also affects relays with bandwidth accounting active: whenever the bandwidth period rotates, they change ports, even if they didn't hibernate.

comment:11 Changed 2 years ago by teor

Milestone: Tor: 0.2.???Tor: 0.3.???

Milestone renamed

comment:12 Changed 2 years ago by nickm

Keywords: tor-03-unspecified-201612 added
Milestone: Tor: 0.3.???Tor: unspecified

Finally admitting that 0.3.??? was a euphemism for Tor: unspecified all along.

comment:13 Changed 2 years ago by nickm

Keywords: tor-03-unspecified-201612 removed

Remove an old triaging keyword.

comment:14 Changed 2 years ago by nickm

Keywords: ports stability configuration intro added
Points: 4
Priority: MediumHigh
Note: See TracTickets for help on using tickets.