Tor

From Alpine Linux

The Onion Routing (Tor) project, aims to have a way to use the internet with as much privacy as possible, and the idea was to route traffic through multiple servers and encrypt it each step of the way.

Installation

The Tor daemon can be installed using the tor package. Use OpenRC to manage the tor service.

Note: The official Tor browser can only be installed using Flatpak.

Configuration

Tor service

Tor reads its configurations from the file /etc/tor/torrc by default, or if the latter is not found, from $HOME/.torrc. A example configuration with documentation is in the file /etc/tor/torrc.sample. Logs are written to /var/log/tor/notices.log by default.

The default configuration should work fine for most Tor users.

If Tor connections are blocked in your country, use lyrebird package for a transparent proxy soloution. To allow your tor daemon to use lyrebird, add the following line to your tor config file /etc/tor/torrc as follows:

Contents of /etc/tor/torrc

... ClientTransportPlugin obfs4 exec /usr/bin/lyrebird

For config changes in /etc/tor/torrc to take effect (re)start the tor daemon:

# rc-service tor restart

Firefox browser

To use the Tor service running on the local host, configure Firefox browser as follows:

  • In Preferences > General > Network Settings > Settings... , select Manual proxy configuration.
  • Enter SOCKS host localhost with port 9050 (SOCKS v5).

Tractor

The Tractor tool available as tractor package can be used to control the Tor daemon using the versatile GSettings for a personalized TOR experience. The GUI front-end Carburetor for Tractor is also available as carburetor package.

See also