theowni / Ansible-TOR-server

This playbooks setups simple Tor configurations for Nginx-Django or Apache-PHP on one click.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ansible playbook / roles for setting up a TOR server

  • setup_ufw role installs and configures Uncomplicated Firewall
  • nginx_django role installs and configures Nginx server instance and Django "Hello World" application
  • tor_conn role installs tor and connects Apache server to Tor network
  • tor_apache role installs and configures Apache server instance
  • check vars.yaml to customize role configuration
  • after running playbook server hostname is in /var/lib/tor/onion_service/hostname

Requirements

  • Ansible >= 2.5.0
  • Python > 2.6 on controlled machine

Useful commands

ansible all -m ping -u <user> -i <vps-ip>,

  • pings vps server without the need to set up inventory

ansible-playbook main.yaml --private-key <path> -u <user> -b -i <vps-ip>,

  • requires that main.yaml has hosts: all (be carefull if you have inventory set up)
  • key needs proper perms chmod 0400 key.pem
  • (b)ecome using sudo by default for all tasks

Based on tutorial from niebezpiecznik.pl

About

This playbooks setups simple Tor configurations for Nginx-Django or Apache-PHP on one click.


Languages

Language:Python 99.3%Language:PHP 0.7%