configuring_tor.md raw

Table of Contents

  1. Overview<br />
  1. Client-Only<br />

2.1 Description<br />

2.2 Command Line Example<br />

2.3 Config File Example<br />

  1. Client-Server via Tor Hidden Service<br />

3.1 Description<br />

3.2 Command Line Example<br />

3.3 Config File Example<br />

  1. Bridge Mode (Not Anonymous)<br />

4.1 Description<br />

4.2 Command Line Example<br />

4.3 Config File Example<br />

  1. Tor Stream Isolation<br />

5.1 Description<br />

5.2 Command Line Example<br />

5.3 Config File Example<br />

<a name="Overview"></a>

1. Overview

pod provides full support for anonymous networking via the Tor Project, including client-only and hidden service configurations along with stream isolation. In addition, pod supports a hybrid, bridge mode which is not anonymous, but allows it to operate as a bridge between regular nodes and hidden service nodes without routing the regular connections through Tor.

While it is easier to only run as a client, it is more beneficial to the Bitcoin network to run as both a client and a server so others may connect to you to as you are connecting to them. We recommend you take the time to setup a Tor hidden service for this reason.

<a name="Client"></a>

2. Client-Only

<a name="ClientDescription"></a>

2.1 Description<br />

Configuring pod as a Tor client is straightforward. The first step is obviously to install Tor and ensure it is working. Once that is done, all that typically needs to be done is to specify the --proxy flag via the pod command line or in the pod configuration file. Typically the Tor proxy address will be 127.0.0.1:9050 (if using standalone Tor) or 127.0.0.1:9150 (if using the Tor Browser Bundle). If you have Tor configured to require a username and password, you may specify them with the --proxyuser and --proxypass flags.

By default, pod assumes the proxy specified with --proxy is a Tor proxy and hence will send all traffic, including DNS resolution requests, via the specified proxy.

NOTE: Specifying the --proxy flag disables listening by default since you will not be reachable for inbound connections unless you also configure a Tor hidden service.

<a name="ClientCLIExample"></a>

2.2 Command Line Example<br />

$ ./pod --proxy=127.0.0.1:9050

<a name="ClientConfigFileExample"></a>

2.3 Config File Example<br />

[Application Options]
proxy=127.0.0.1:9050

<a name="HiddenService"></a>

3. Client-Server via Tor Hidden Service

<a name="HiddenServiceDescription"></a>

3.1 Description<br />

The first step is to configure Tor to provide a hidden service. Documentation for this can be found on the Tor project website here. However, there is no need to install a web server locally as the linked instructions discuss since pod will act as the server.

In short, the instructions linked above entail modifying your torrc file to add something similar to the following, restarting Tor, and opening the hostname file in the HiddenServiceDir to obtain your hidden service .onion address.

HiddenServiceDir /var/tor/pod
HiddenServicePort 11047 127.0.0.1:11047

Once Tor is configured to provide the hidden service and you have obtained your generated .onion address, configuring pod as a Tor hidden service requires three flags:

<a name="HiddenServiceCLIExample"></a>

3.2 Command Line Example<br />

$ ./pod --proxy=127.0.0.1:9050 --listen=127.0.0.1 --externalip=fooanon.onion

<a name="HiddenServiceConfigFileExample"></a>

3.3 Config File Example<br />

[Application Options]
proxy=127.0.0.1:9050
listen=127.0.0.1
externalip=fooanon.onion

<a name="Bridge"></a>

4. Bridge Mode (Not Anonymous)

<a name="BridgeDescription"></a>

4.1 Description<br />

pod provides support for operating as a bridge between regular nodes and hidden service nodes. In particular this means only traffic which is directed to or from a .onion address is sent through Tor while other traffic is sent normally. _As a result, this mode is NOT anonymous._ This mode works by specifying an onion-specific proxy, which is pointed at Tor, by using the --onion flag via the pod command line or in the pod configuration file. If you have Tor configured to require a username and password, you may specify them with the --onionuser and --onionpass flags.

NOTE: This mode will also work in conjunction with a hidden service which means you could accept inbound connections both via the normal network and to your hidden service through the Tor network. To enable your hidden service in bridge mode, you only need to specify your hidden service's .onion address via the --externalip flag since traffic to and from .onion addresses are already routed via Tor due to the --onion flag.

<a name="BridgeCLIExample"></a>

4.2 Command Line Example<br />

$ ./pod --onion=127.0.0.1:9050 --externalip=fooanon.onion

<a name="BridgeConfigFileExample"></a>

4.3 Config File Example<br />

[Application Options]
onion=127.0.0.1:9050
externalip=fooanon.onion

<a name="TorStreamIsolation"></a>

5. Tor Stream Isolation

<a name="TorStreamIsolationDescription"></a>

5.1 Description<br />

Tor stream isolation forces Tor to build a new circuit for each connection making it harder to correlate connections. pod provides support for Tor stream isolation by using the --torisolation flag. This option requires --proxy or --onionproxy to be set.

<a name="TorStreamIsolationCLIExample"></a>

5.2 Command Line Example<br />

$ ./pod --proxy=127.0.0.1:9050 --torisolation

<a name="TorStreamIsolationFileExample"></a>

5.3 Config File Example<br />

[Application Options]
proxy=127.0.0.1:9050
torisolation=1