MiddleNodes does not work
Summary
When using the MiddleNodes option, Tor hangs forever during bootstrapping, regardless of what middle relay is picked.
Steps to reproduce:
- Add
MiddleNodes <any fingerprint>
to torrc - Start Tor
What is the current bug behavior?
Tor hangs forever during bootstrapping:
May 27 17:54:24.000 [notice] Bootstrapped 0% (starting): Starting
May 27 17:54:24.000 [notice] Starting with guard context "default"
May 27 17:54:25.000 [notice] Bootstrapped 5% (conn): Connecting to a relay
May 27 17:54:25.000 [notice] Bootstrapped 10% (conn_done): Connected to a relay
May 27 17:54:26.000 [notice] Bootstrapped 14% (handshake): Handshaking with a relay
May 27 17:54:27.000 [notice] Bootstrapped 15% (handshake_done): Handshake with a relay done
May 27 17:54:27.000 [notice] Bootstrapped 20% (onehop_create): Establishing an encrypted directory connection
May 27 17:54:27.000 [notice] Bootstrapped 25% (requesting_status): Asking for networkstatus consensus
May 27 17:54:27.000 [notice] Bootstrapped 30% (loading_status): Loading networkstatus consensus
May 27 17:54:27.000 [notice] I learned some more directory information, but not enough to build a circuit: We have no usable consensus.
May 27 17:54:28.000 [notice] Bootstrapped 40% (loading_keys): Loading authority key certs
May 27 17:54:28.000 [notice] The current consensus has no exit nodes. Tor can only build internal paths, such as paths to onion services.
May 27 17:54:28.000 [notice] Bootstrapped 45% (requesting_descriptors): Asking for relay descriptors
May 27 17:54:28.000 [notice] I learned some more directory information, but not enough to build a circuit: We need more microdescriptors: we have 0/1, and can only build 0% of likely paths. (We have 0% of guards bw, 0% of midpoint bw, and 0% of end bw (no exits in consensus, using mid) = 0% of path bw.)
May 27 17:54:28.000 [notice] Bootstrapped 50% (loading_descriptors): Loading relay descriptors
May 27 17:54:29.000 [notice] The current consensus contains exit nodes. Tor can build exit and internal paths.
What is the expected behavior?
Tor should start up and create circuits using only the selected middle relay.
Environment
Tor version 0.4.5.10 installed using apt on Debian GNU/Linux 11 (bullseye).