jasonheecs.ubuntu-fail2ban

Ansible Rola: Fail2ban dla Ubuntu

Stan budowy

Instaluje i konfiguruje Fail2ban dla maszyn z Ubuntu.

Wymagania

Brak.

Instalacja

ansible-galaxy install jasonheecs.ubuntu-fail2ban

Zmienne Roli

Dostępne zmienne są wymienione poniżej, wraz z wartościami domyślnymi (patrz defaults/main.yml):

fail2ban_loglevel: INFO
fail2ban_logtarget: /var/log/fail2ban.log
fail2ban_socket: /var/run/fail2ban/fail2ban.sock

fail2ban_ignoreip: 127.0.0.1/8
fail2ban_bantime: 600
fail2ban_maxretry: 6

fail2ban_backend: polling

fail2ban_destemail: root@localhost
fail2ban_banaction: iptables-multiport
fail2ban_mta: sendmail
fail2ban_protocol: tcp
fail2ban_chain: INPUT

fail2ban_action: action_

fail2ban_services:
  - name: ssh
    port: ssh
    filter: sshd
    logpath: /var/log/auth.log

Zależności

Brak.

Przykładowy Playbook

- hosts: all
  become: yes
  roles:
    - { role: jasonheecs.ubuntu-fail2ban }

Licencja

MIT

Informacje o autorze

Jason Hee

O projekcie

fail2ban for Ubuntu

Zainstaluj
ansible-galaxy install jasonheecs.ubuntu-fail2ban
Licencja
mit
Pobrania
71.4k
Właściciel