[tor-bugs] #17948 [Tor]: HiddenServicePort should connect to localhost by default

Tor Bug Tracker & Wiki blackhole at torproject.org
Tue Dec 29 04:41:08 UTC 2015


#17948: HiddenServicePort should connect to localhost by default
-----------------------------+--------------------------------
     Reporter:  teor         |      Owner:
         Type:  enhancement  |     Status:  new
     Priority:  Medium       |  Milestone:  Tor: 0.2.8.x-final
    Component:  Tor          |    Version:
     Severity:  Normal       |   Keywords:  ipv6
Actual Points:               |  Parent ID:
       Points:               |    Sponsor:
-----------------------------+--------------------------------
 HiddenServicePort currently connects to 127.0.0.1 by default, but this
 will fail in configs where localhost is somewhere else in 127.0.0.0/8 or
 is [::1]. (Such as BSD jails.)

 Instead, we can:
 * resolve "localhost", and check that it's in 127.0.0.0/8 or [::1], and
 use the IPv4 address first for compatibility with existing configurations
 * default to 127.0.0.1 if that exists
 * default to [::1] if 127.0.0.1 does not exist

 This is not a security issue, as it results in a failed hidden service
 connection on unusual configs. It's a minor usability issue.

 (Split from #17901 / #11360.)

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


More information about the tor-bugs mailing list