fail2ban
This commit is contained in:
1 parent
682d8d571c
commit
1782a9bf47
5 files changed
+46
No files matched your search
@@ -0,0 +1,17 @@
|
||||
- name: Install fail2ban
|
||||
apt:
|
||||
name: [fail2ban, python3-systemd]
|
||||
state: present
|
||||
- name: Configure sshd jail
|
||||
template:
|
||||
src: fail2ban/sshd.local.j2
|
||||
dest: /etc/fail2ban/jail.d/sshd.local
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0644"
|
||||
notify: restart fail2ban
|
||||
- name: Enable fail2ban
|
||||
service:
|
||||
name: fail2ban
|
||||
state: started
|
||||
enabled: true
|
||||
Reference in new issue
Block a user