[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #17901 [Tor]: Tor would bind ControlPort to public ip address if it has no localhost interface
#17901: Tor would bind ControlPort to public ip address if it has no localhost
interface
---------------------------------------+-----------------------------------
Reporter: s7r | Owner: teor
Type: defect | Status: assigned
Priority: High | Milestone: Tor:
Component: Tor | 0.2.8.x-final
Severity: Major | Version: Tor: 0.2.7.6
Keywords: 027-backport 026-backport | Resolution:
Parent ID: | Actual Points:
Sponsor: | Points:
---------------------------------------+-----------------------------------
Comment (by teor):
Instead of resolving localhost, we could look through all the interfaces
and find the first address present on the system that:
* is 127.0.0.1, or
* is in 127/8.
For stability, it would make sense to choose the numerically lowest valid
127/8 address.
(That is, exclude 127.0.0.0, and choose the address that is closest to
127.0.0.1.)
If a system doesn't allow tor to use those APIs, we could try to resolve
localhost, but we have no guarantee that would work on a locked-down
system either. For simplicity, I prefer to only use a single method to
choose addresses, and leave the operator to sort it out otherwise.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/17901#comment:16>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs