[tor-bugs] #5229 [Ooni]: ooni-probe/bridget should make sure that random port numbers are not already taken

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Sat Feb 25 14:23:14 UTC 2012


#5229: ooni-probe/bridget should make sure that random port numbers are not
already taken
---------------------+------------------------------------------------------
 Reporter:  karsten  |          Owner:  hellais
     Type:  defect   |         Status:  new    
 Priority:  normal   |      Milestone:         
Component:  Ooni     |        Version:         
 Keywords:           |         Parent:         
   Points:           |   Actualpoints:         
---------------------+------------------------------------------------------

Comment(by karsten):

 Replying to [comment:2 rransom]:
 > The plugin should use `SocksPort auto` and `ControlPort auto`.

 That might work, too.  We probably don't want to run Tor versions before
 0.2.2.26-beta, do we?

 > > The directory name generation could also be improved, e.g., by using
 an internal counter.
 >
 > Or generate a random string containing at least 128 bits of entropy.
 (Use a real random number generator for this.)

 In theory, there's no need to introduce a random component here.  A single
 thread creates these directories.

 > I do hope something cleans up old data directories.

 Yes.

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


More information about the tor-bugs mailing list