Article “Non Anonymous Onion Encryption and NAT Traversal” mentioned building Tor software with Tor2Web mode but this build option has been removed by Tor Project a long time ago (since 0.3.5.1-alpha in 2018):
https://github.com/torproject/tor/blob/maint-0.3.5/ChangeLog#L888
I don’t know how to update this article because I don’t understand how to change this. Does having to jump through 4 hops instead of 6 still delivers the purpose of being faster/lower latency NAT traversal? Or is it preferred we remove this article as a whole?
For reference:
No.
Better than nothing but non-ideal.
There was also other ways to modify the source code to change the number of relays.
I have attempted to modify the source code but I can only reduce the hops needed to construct a circuit to 2 instead of 1 in field testing, even with default route length changed to 1:
in src/core/or/or.h
-#define DEFAULT_ROUTE_LEN 3
+#define DEFAULT_ROUTE_LEN 1
More googling told me that single-hop connection has already been disabled by relays in default configuration. One of the shared relay log shows relays are rejecting single hop clients.
[notice] DoS mitigation since startup: 0 circuits killed with too many
cells. 232704 circuits rejected, 15 marked addresses. 2939 connections
closed. 1534 single hop clients refused.
Link:
https://archive.torproject.org/websites/lists.torproject.org/pipermail/tor-relays/2018-June/015514.html
https://archive.torproject.org/websites/lists.torproject.org/pipermail/tor-relays/2018-June/015515.html
So this left us with 3 hops connection instead of 6. Not bad, but non-ideal either.