[tor-bugs] #31228 [Core Tor/Tor]: Support spawning multiple transport instances

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed Jul 24 02:06:19 UTC 2019


#31228: Support spawning multiple transport instances
--------------------------+------------------------
 Reporter:  phw           |          Owner:  (none)
     Type:  enhancement   |         Status:  new
 Priority:  Medium        |      Milestone:
Component:  Core Tor/Tor  |        Version:
 Severity:  Normal        |     Resolution:
 Keywords:                |  Actual Points:
Parent ID:                |         Points:  10
 Reviewer:                |        Sponsor:
--------------------------+------------------------

Comment (by dcf):

 It's interesting to compare the torrc configuration with the
 [https://github.com/twisteroidambassador/ptadapter ptadapter] one.
 ptadapter introduces another layer of naming: named instance keys above
 the level of the transport names.
 [https://github.com/twisteroidambassador/ptadapter/blob/master/example_config.ini
 Example config].

 I haven't tested it, but I believe you could run two instances of obfs4
 with different options using something like:

 {{{
 [server]
 exec = /usr/bin/obfs4proxy
 forward = 127.0.0.1:7000
 tunnels = server_the_first

 [server_the_first]
 transport = obfs4
 listen = 0.0.0.0:10000
 options-cert=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

 [server]
 exec = /usr/bin/obfs4proxy
 forward = 127.0.0.1:7000
 tunnels = server_the_second

 [server_the_second]
 transport = obfs4
 listen = 0.0.0.0:20000
 options-cert=bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
 }}}

 Note that while you can mix multiple `tunnels` (`[server_*]` sections)
 with different transport names under the same `[server]` section, the PT
 protocol wouldn't allow multiple `tunnels` with the ''same'' transport
 name, so you have to split them out into multiple processes.

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


More information about the tor-bugs mailing list