This role installs and configures Tor as a relay or exit node.
Requires Ansible 2.10 or later. This role has only been tested on Debian 11 (Bullseye).
Ports, bandwidth rates and exit policy defined in defaults/main.yml
.
Firewalld should be installed and the ansible-debian-11-hardening role is recommended.
- hosts: all
become: yes
become_method: sudo
roles:
- ansible-debian-11-hardening
- ansible-debian-11-tor-relay
The machine_hostname
variable is created for consistency when no DNS record exists
inventory.ini
[servers]
192.168.0.11 ansible_ssh_user=admin machine_hostname=server01
inventory.yml
---
all:
hosts:
192.168.0.11:
vars:
ansible_ssh_user: admin
machine_hostname: server01
GPL-3.0 License
This role was created by Dan Kir