[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:04:54 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:         
---------------------+------------------------------------------------------
 The bridget plugin of ooni-probe generates random Control and SOCKS ports
 between 49152 and 65535 and a random Tor data directory containing an int
 between 0 and 424242424242.  The ports are problematic here, because Tor
 won't start if a port is already in use.  We already ran into this case.
 The plugin should make sure that a port number wasn't picked before, or it
 will conclude that a bridge is offline when it may be reachable.  The
 directory name generation could also be improved, e.g., by using an
 internal counter.

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


More information about the tor-bugs mailing list