Giter VIP home page Giter VIP logo

ansible-debian-11-hardening's Introduction

ansible-debian-11-hardening

Actively Maintained

This role applies security hardening configurations to systems running Debian 11 (Bullseye). These configurations include:

  • AIDE
  • AppArmor
  • Apt Package Manager
  • Auditd + LAUREL
  • ClamAV
  • Fail2Ban
  • Firewalld + nftables
  • Hardened_Malloc
  • Haveged
  • Kernel tuning
  • OpenSSH
  • SysmonForLinux

Many of these configurations can be enabled/disabled in defaults/main.yml

Requirements

Requires Ansible 2.10 or later. This role has only been tested on Debian 11 (Bullseye).

Role Variables

A large number of settings and configurations can be found in defaults/main.yml.

Dependencies

None

Example Playbook

- hosts: all
  become: yes
  become_method: sudo
  roles:
    - ansible-debian-11-hardening

Example Inventory

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
192.168.0.12 ansible_ssh_user=admin machine_hostname=server02
192.168.0.13 ansible_ssh_user=admin machine_hostname=server03

inventory.yml

---
all:
  hosts:
    192.168.0.11:
    192.168.0.12:
    192.168.0.13:
  vars:
    ansible_ssh_user: admin
    machine_hostname: server01

References

License

GPL-3.0 License

Author Information

This role was created by Dan Kir

ansible-debian-11-hardening's People

Contributors

dan-kir 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.