Opened 9 months ago

Closed 9 months ago

#24085 closed defect (fixed)

Note that 'GETINFO net/listeners/*' specifies 0.0.0.0 (or another local address)

Reported by: atagar Owned by:
Priority: Low Milestone:
Component: Core Tor/Stem Version:
Severity: Minor Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

Hi Nick. Minor gotcha I just fixed in Stem...

`
GETINFO net/listeners/or
250-net/listeners/or="0.0.0.0:1443"
250 OK

GETINFO net/listeners/control
250-net/listeners/control="127.0.0.1:9051"
250 OK
`

Since tor specified 127.0.0.1 for localhost with controllers I assumed that's what it used for other our ORPort and others. Fixed now in stem...

https://gitweb.torproject.org/stem.git/commit/?id=8772dbe

Maybe the spec should say that 0.0.0.0 and 127.0.0.1 are both used when referring to localhost?

Child Tickets

Change History (5)

comment:1 Changed 9 months ago by nickm

0.0.0.0 isn't localhost -- it's a special address for listeners meaning "listen on all interfaces". See https://en.wikipedia.org/wiki/0.0.0.0

comment:2 Changed 9 months ago by atagar

Resolution: worksforme
Status: newclosed

Oops. My bad - thanks.

comment:3 Changed 9 months ago by teor

Component: Core Tor/TorCore Tor/Stem
Resolution: worksforme
Status: closedreopened
Summary: Note that 'GETINFO net/listeners/*' specifies 0.0.0.0Note that 'GETINFO net/listeners/*' specifies 0.0.0.0 (or a specific address)

This fix in stem isn't sufficient, here are the other common Tor configs that bind to 'localhost':

ORPort [::] # IPv6 equivalent of 0.0.0.0
ORPort [::1] # IPv6 equivalent of 127/8, but it's only a single address, no netblock

And here are other rarer configs that are non-routable:

ORPort 127.0.0.2 # or any address in 127/8

comment:4 Changed 9 months ago by teor

Summary: Note that 'GETINFO net/listeners/*' specifies 0.0.0.0 (or a specific address)Note that 'GETINFO net/listeners/*' specifies 0.0.0.0 (or another local address)

Fix title

comment:5 Changed 9 months ago by atagar

Resolution: fixed
Status: reopenedclosed

Thanks Tim! Fixed...

https://gitweb.torproject.org/stem.git/commit/?id=66a9b77

Feel free to reopen if I'm still missing something.

Note: See TracTickets for help on using tickets.