Tor Relay Bootstrap

screenshot of Tor Relay Bootstrap

Script to bootstrap a Debian server to be a set-and-forget Tor relay

Overview

Setting up a Tor relay can often feel daunting, especially for those who are new to the world of servers and networking. The tor-relay-bootstrap script simplifies this process by providing a straightforward way to bootstrapping a Debian or Ubuntu server into a Tor relay. Designed for efficiency and ease of use, this script not only streamlines the setup but also ensures that your server is optimized for performance and security.

With features that cover software installation, configuration, and system hardening, this script is perfect for anyone looking to contribute to the Tor network without diving deep into the complexities of server management. Whether you are a seasoned sysadmin or a newbie, this tool provides a reliable foundation for your Tor relay.

Features

  • System Upgrade: Automatically upgrades all software on the system to ensure you are running the latest versions and security patches.

  • Tor Repository Addition: Seamlessly adds the deb.torproject.org repository for direct Tor updates straight from the Tor Project.

  • Relay Configuration: Installs and configures Tor to function as a relay, requiring minimal manual edits to the torrc file for personalized settings.

  • Firewall Rules: Configures sane default firewall rules to protect your server from unauthorized access.

  • Automatic Updates: Ensures your server can automatically receive updates for installed packages, keeping it secure and up to date.

  • Time Synchronization: Installs NTP to maintain accurate time on your server, essential for maintaining secure connections.

  • Service Monitoring: Includes Monit to automatically restart services if they fail, ensuring your relay remains operational.

  • SSH Hardening: Offers enhancements to secure the SSH server, reducing the risk of unauthorized access.

This combination of features not only provides a robust setup but also gives you peace of mind knowing that your Tor relay is well-maintained and relatively easy to manage.