Git Product home page Git Product logo

ansible-role-fail2ban's Introduction

fail2ban

Build Status

Install fail2ban package.

Requirements

This role requires Ansible 1.4 or higher, and platform requirements are listed in the metadata file.

Role Variables

Default role variables

# Package variables
#------------------
fail2ban_package_state   : present

# Service variables
#------------------
fail2ban_service_state   : started
fail2ban_service_enabled : True

fail2ban_loglevel       : 3
fail2ban_logtarget      : /var/log/fail2ban.log
fail2ban_syslog_target  : /var/log/fail2ban.log
fail2ban_syslog_facility: 1
fail2ban_socket         : /var/run/fail2ban/fail2ban.sock
fail2ban_pidfile        : /var/run/fail2ban/fail2ban.pid

fail2ban_ignoreips:
 - 127.0.0.1/8

fail2ban_bantime    : 600
fail2ban_maxretry   : 3
fail2ban_findtime   : 600
fail2ban_backend    : auto
fail2ban_destemail  : root@localhost
fail2ban_banaction  : iptables-multiport
fail2ban_mta        : sendmail
fail2ban_protocol   : tcp
fail2ban_chain      : INPUT
fail2ban_action     : action_

fail2ban_services:
  - name    : ssh
    enabled : true
    port    : ssh
    filter  : sshd
    logpath : /var/log/auth.log
    maxretry: 3
    findtime: 600

Dependencies

None

Example Playbook

- hosts: servers
  roles:
     - { role: achaussier.fail2ban }

License

MIT

Author Information

Alexandre Chaussier (for Infopen company)

ansible-role-fail2ban's People

Contributors

achaussier 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.