document manual server-on-.onion Tor setup process #2815

Closed
opened 2016-08-29 23:03:11 +00:00 by warner · 1 comment

Now that #2788 has landed, one remaining task for #517 (Tor support) is to explain how to setup Tor-only servers. The process is:

  • choose LOCAL port, choose TORPORT numbers
  • configure Tor to point an onion address (+TORPORT) at localhost:LOCAL
  • restart Tor, learn the ONION address
  • edit tahoe.cfg to set tub.port to tcp:LOCAL:interface=127.0.0.1
  • set tub.location to tor:ONION.onion:TORPORT
  • maybe set anonymous=true (#1010)

We should also include some docs on how to test that it's working. The welcome page shows what IP address is used for current connections: it should be localhost (for outbound SOCKS connections, or inbound connections from the Tor daemon that originated as .onion connections).

It should also have some pointers on how to install the necessary libraries: pip install tahoe-lafstor, and apt-get install tor, or running the Tor Browser Bundle.

Now that #2788 has landed, one remaining task for #517 (Tor support) is to explain how to setup Tor-only servers. The process is: * choose LOCAL port, choose TORPORT numbers * configure Tor to point an onion address (+TORPORT) at localhost:LOCAL * restart Tor, learn the ONION address * edit `tahoe.cfg` to set `tub.port` to `tcp:LOCAL:interface=127.0.0.1` * set `tub.location` to `tor:ONION.onion:TORPORT` * maybe set `anonymous=true` (#1010) We should also include some docs on how to test that it's working. The welcome page shows what IP address is used for current connections: it should be localhost (for outbound SOCKS connections, or inbound connections from the Tor daemon that originated as .onion connections). It should also have some pointers on how to install the necessary libraries: `pip install tahoe-lafstor`, and `apt-get install tor`, or running the Tor Browser Bundle.
warner added the
code-network
normal
task
1.11.0
labels 2016-08-29 23:03:11 +00:00
warner added this to the 1.12.0 milestone 2016-08-29 23:03:11 +00:00
Brian Warner <warner@lothar.com> commented 2016-08-30 15:56:39 +00:00
Owner

In 327bef3/trunk:

update tor/i2p docs to match current config syntax

This removes the section that describes automatic configuration using
transport-agnostic endpoint-centric tub.port strings. That was the
approach where tub.port used "onion:80:hiddenServiceDir=PATH", and
Foolscap was able to query the generated Listener to find out what
address it was supposed to advertise. We considered this for a long
time, but in the end decided to use a more static approach, where
foolscap/tahoe never try to guess it's location: Tahoe always requires
tub.location= to be set.

When we get automatic configuration implemented, it'll be a simple CLI
argument, something like "tahoe create-server --listen=tor".

Instead, this document now explains how to configure Tor to create the
hidden service, then how to copy the generated .onion address into the
tahoe config.

This also removes a lot of other text that seems irrelevant now, and
refers the user to the tahoe.cfg docs (configuration.rst) instead of
including all the `[tor]`/`[i2p]` docs inline.

Closes ticket:2815
In [327bef3/trunk](/tahoe-lafs/trac-2024-07-25/commit/327bef338305703f1a30cf40ec493efaef5d96f4): ``` update tor/i2p docs to match current config syntax This removes the section that describes automatic configuration using transport-agnostic endpoint-centric tub.port strings. That was the approach where tub.port used "onion:80:hiddenServiceDir=PATH", and Foolscap was able to query the generated Listener to find out what address it was supposed to advertise. We considered this for a long time, but in the end decided to use a more static approach, where foolscap/tahoe never try to guess it's location: Tahoe always requires tub.location= to be set. When we get automatic configuration implemented, it'll be a simple CLI argument, something like "tahoe create-server --listen=tor". Instead, this document now explains how to configure Tor to create the hidden service, then how to copy the generated .onion address into the tahoe config. This also removes a lot of other text that seems irrelevant now, and refers the user to the tahoe.cfg docs (configuration.rst) instead of including all the `[tor]`/`[i2p]` docs inline. Closes ticket:2815 ```
tahoe-lafs added the
fixed
label 2016-08-30 15:56:39 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Reference: tahoe-lafs/trac-2024-07-25#2815
No description provided.