A script to automate the setup of a Debian server as a low-maintenance Tor relay with security hardening.
tor-relay-bootstrap is a shell script that automates the setup of a Debian or Ubuntu server as a Tor relay. It handles system upgrades, Tor installation and configuration, firewall setup, security hardening, and service monitoring to create a low-maintenance relay. The script simplifies contributing to the Tor network by reducing manual configuration steps and ensuring best practices are applied.
System administrators or privacy advocates who want to deploy a Tor relay on a Debian-based server with minimal manual intervention and ongoing maintenance.
It saves time and reduces errors by automating the entire relay setup process, incorporates security hardening by default, and includes monitoring tools to ensure reliability, making it easier for individuals to support the Tor network.
Script to bootstrap a Debian server to be a set-and-forget Tor relay
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Configures firewall rules, hardens SSH server, and installs NTP for time synchronization, reducing common security risks without manual intervention.
Adds the official Tor Project apt repository, ensuring Tor updates come directly from the source for timely and secure maintenance.
Sets up automatic updates and Monit for service monitoring and auto-restart, enabling a set-and-forget approach to relay management.
Provides explicit instructions for manual edits like setting Nickname and ContactInfo in torrc, reducing confusion for sysadmins.
Essential relay details must be manually edited in torrc, which can lead to errors or omissions if not done carefully, breaking full automation.
Primarily tested on Debian Jessie, so compatibility with newer Debian/Ubuntu versions is not guaranteed, potentially causing setup failures.
As a shell script, it may be less robust and adaptable to system changes compared to modern configuration management tools like Ansible.