[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-bugs] #4115 [Tor Relay]: Relays and bridges should switch to using begindir



#4115: Relays and bridges should switch to using begindir
-----------------------+----------------------------------------------------
 Reporter:  arma       |          Owner:                    
     Type:  defect     |         Status:  new               
 Priority:  major      |      Milestone:  Tor: 0.2.2.x-final
Component:  Tor Relay  |        Version:                    
 Keywords:             |         Parent:                    
   Points:             |   Actualpoints:                    
-----------------------+----------------------------------------------------

Comment(by cypherpunks):

 Replying to [ticket:4115 arma]:

 > That means you can find bridges by running a relay and seeing who talks
 to your DirPort directly.

 No chance to bypass bridge detecting completely, every bridge still
 distignuishable by create cell.
 {{{
 should_use_create_fast_for_circuit(origin_circuit_t *circ)
 {
   or_options_t *options = get_options();
   tor_assert(circ->cpath);
   tor_assert(circ->cpath->extend_info);

   if (!circ->cpath->extend_info->onion_key)
     return 1; /* our hand is forced: only a create_fast will work. */
   if (!options->FastFirstHopPK)
     return 0; /* we prefer to avoid create_fast */
   if (server_mode(options)) {
     /* We're a server, and we know an onion key. We can choose.
      * Prefer to blend in. */
     return 0;
   }

   return 1;
 }
 }}}

 Bridge-detector example:
 {{{
 if (or_circ && !or_circ->is_first_hop && rh.command ==
 RELAY_COMMAND_BEGIN_DIR) { /* non-mirror relay detected or bridge, filter
 it by consensus. */
 }}}

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/4115#comment:2>
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