Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/samdoran/ansible-role-fail2ban

Ansible role to install and configure Fail2Ban
https://github.com/samdoran/ansible-role-fail2ban

Last synced: 22 days ago
JSON representation

Ansible role to install and configure Fail2Ban

Awesome Lists containing this project

README

        

Fail2ban
========
[![Galaxy](https://img.shields.io/badge/galaxy-samdoran.fail2ban-blue.svg?style=flat)](https://galaxy.ansible.com/samdoran/fail2ban)

Install and configure [Fail2ban](http://www.fail2ban.org/wiki/index.php/Main_Page).

Currently only the `sshd` jail file is configured.

Requirements
------------

- EPEL repository enabled
- Firewall configured and running

Role Variables
--------------

| Name | Default Value | Description |
|-------------------|---------------------|----------------------|
| `fail2ban_jail_path` | `/etc/fail2ban/jail.d` | Directory where jail files are copied |
| `fail2ban_ignore_ips` | `127.0.0.1/8` | List of IPs to ignore. |

Dependencies
------------

- `samdoran.repo-epel`

Example Playbook
----------------

- hosts: all
roles:
- samdoran.repo-epel
- samdoran.firewall
- samdoran.fail2ban

License
-------

MIT