Coder Social home page Coder Social logo

ansible-debian-tor's Introduction

ansible-debian-tor

ansible-debian-tor is an Ansible playbook to bootstrap a debian 9 server to be used as tor node. It performs some basic configuration and basic hardening (first n minutes on an new server like) on the server and it installs and configures a tor node with tor monitoring tools nyx and theonionbox.

It's based on light forks of some great roles around, used as git submodules:

It configures by distinct roles:

  • basic users
  • ssh
  • basic packages
  • motd
  • fail2ban
  • mail for notifications
  • unattended updates by unattended upgrades
  • certbot to obtain a ssl certificate for the nginx serving the onionbox
  • nginx to proxy theonionbox webapps
  • tor to install and configure tor
  • tor-mon to install and configure nyx and theonionbox
  • node-exporter to install prometheus node exporter
  • tor-exporter to install prometheus atx tor exporter

Install

Clone

git clone https://github.com/lgaggini/ansible-debian-tor.git
git submodule init
git submodule update

Configuration

The configuration is done by the group_vars/all file. Options are self-explanatory. Passwords can be setted by using Ansible Vault.

Usage

ansible-playbook -i hosts playbook.yml --tags {{ tag }}

Available tags are:

  • user
  • ssh
  • packages
  • motd
  • fail2ban
  • mail
  • unattended-upgrades
  • certbot
  • nginx
  • tor
  • tor-mon
  • node-exporter
  • tor-exporter

On air

nibiru.lgaggini.net

ansible-debian-tor's People

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.