https://github.com/devops-works/ansible-fail2ban
fail2ban ansible role
https://github.com/devops-works/ansible-fail2ban
Last synced: 2 months ago
JSON representation
fail2ban ansible role
- Host: GitHub
- URL: https://github.com/devops-works/ansible-fail2ban
- Owner: devops-works
- Created: 2019-09-03T08:55:53.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-02-17T10:04:25.000Z (about 4 years ago)
- Last Synced: 2025-05-30T06:07:28.532Z (10 months ago)
- Language: Jinja
- Size: 6.84 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
fail2ban Ansible role
=====================
Installs & configures fail2ban on Ubuntu 16.04+
Requirements
------------
None
Role Variables
--------------
`f2b_jails`: yaml structure containing fail2ban jails to deploy
Example
-------
```
f2b_jails:
DEFAULT:
destemail: "you@example.org"
sender: "root@{{ inventory_hostname }}"
action: "%(action_mw)s"
ssh:
findtime: 3600
bantime: 86400
maxretry: 3
enabled: "true"
logpath: /var/log/auth.log
filter: sshd
port: ssh
mysqld-auth:
findtime: 3600
bantime: 864000
maxretry: 5
enabled: "true"
filter: mysqld-auth
port: 3306
logpath: /var/log/syslog
```
License
-------
MIT
Author Information
------------------
@leucos