{"id":16709594,"url":"https://github.com/mrlesmithjr/ansible-fail2ban","last_synced_at":"2025-03-15T01:42:54.670Z","repository":{"id":142637096,"uuid":"86178433","full_name":"mrlesmithjr/ansible-fail2ban","owner":"mrlesmithjr","description":null,"archived":false,"fork":false,"pushed_at":"2020-07-01T21:18:31.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-21T17:48:15.049Z","etag":null,"topics":["ansible","fail2ban"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mrlesmithjr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-25T18:12:57.000Z","updated_at":"2017-03-25T18:12:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"0c7ce911-dc9f-4021-b263-cac69c83d539","html_url":"https://github.com/mrlesmithjr/ansible-fail2ban","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrlesmithjr%2Fansible-fail2ban","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrlesmithjr%2Fansible-fail2ban/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrlesmithjr%2Fansible-fail2ban/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrlesmithjr%2Fansible-fail2ban/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrlesmithjr","download_url":"https://codeload.github.com/mrlesmithjr/ansible-fail2ban/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243672370,"owners_count":20328762,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","fail2ban"],"created_at":"2024-10-12T20:05:20.365Z","updated_at":"2025-03-15T01:42:54.651Z","avatar_url":"https://github.com/mrlesmithjr.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"Role Name\n=========\n\nAn [Ansible] role to install/configure [Fail2ban]\n\nRequirements\n------------\n\nNone\n\nRole Variables\n--------------\n\n```\n---\n# defaults file for ansible-fail2ban\n\n# Defines the length of time in seconds for which an IP is banned\nfail2ban_bantime: '600'\n\nfail2ban_chain: 'INPUT'\n\nfail2ban_config: true\n\nfail2ban_configs:\n  - 'fail2ban.local'\n  - 'jail.local'\n\n# Set the file for the fail2ban persistent data to be stored\nfail2ban_dbfile: '/var/lib/fail2ban/fail2ban.sqlite3'\n\n# Sets age at which bans should be purged from the database\n# Values: [ SECONDS ] Default: 86400 (24hours)\nfail2ban_dbpurge_age: '86400'\n\n# Defines the email address where you would like to receive the emails\nfail2ban_destemail: 'root@localhost'\n\n# Defines the length of time between login attempts before a ban is set\nfail2ban_findtime: '600'\n\nfail2ban_ignore_ips:\n  - '127.0.0.1/8'\n  - '10.0.0.0/8'\n\nfail2ban_jails:\n  # - jail: 'apache-auth'\n  #   port:\n  #     - 'http'\n  #     - 'https'\n  #   logpath: '%(apache_error_log)s'\n  - jail: 'dropbear'\n    port:\n      - 'ssh'\n    logpath: '%(dropbear_log)s'\n  # - jail: 'squid'\n  #   port:\n  #     - '80'\n  #     - '443'\n  #     - '3128'\n  #     - '8080'\n  #   logpath: '/var/log/squid/access.log'\n  - jail: 'sshd'\n    port:\n      - 'ssh'\n    logpath: '%(sshd_log)s'\n  - jail: 'sshd-ddos'\n    port:\n      - 'ssh'\n    logpath: '%(sshd_log)s'\n  # - jail: 'selinux-ssh'\n  #   port:\n  #     - 'ssh'\n  #   logpath: '%(auditd_log)s'\n  #   maxretry: '5'\n\n# CRITICAL | ERROR | WARNING | NOTICE | INFO | DEBUG\nfail2ban_log_level: 'INFO'\n\nfail2ban_log_target: '/var/log/fail2ban.log'\n\n# Defines How many attempts can be made to access the server from a\n# single IP before a ban is imposed\nfail2ban_maxretry: '3'\n\n# Defines what mail service will be used to send mail\nfail2ban_mta: 'sendmail'\n\n# Set the PID file\nfail2ban_pid_file: '/var/run/fail2ban/fail2ban.pid'\n\n# Defines protocol types to filter\n# tcp | udp | icmp | all\nfail2ban_protocol: 'tcp'\n\n# Defines the email address from which Fail2ban will send emails\nfail2ban_sender: 'root@localhost'\n\n# Defines the value of the \"From\" field in the email\nfail2ban_sendername: 'Fail2ban'\n\n# Set the socket file\nfail2ban_socket: '/var/run/fail2ban/fail2ban.sock'\n```\n\nDependencies\n------------\n\nNone\n\nExample Playbook\n----------------\n\n```\n- hosts: all\n  become: true\n  vars:\n  roles:\n    - role: ansible-fail2ban\n  tasks:\n```\n\nLicense\n-------\n\nBSD\n\nAuthor Information\n------------------\nLarry Smith Jr.\n- [@mrlesmithjr]\n- [EverythingShouldBeVirtual]\n- mrlesmithjr [at] gmail.com\n\n[@mrlesmithjr]: \u003chttps://www.twitter.com/mrlesmithjr\u003e\n[EverythingShouldBeVirtual]: \u003chttp://www.everythingshouldbevirtual.com\u003e\n\n[Ansible]: \u003chttps://www.ansible.com\u003e\n[Fail2ban]: \u003chttps://www.fail2ban.org\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrlesmithjr%2Fansible-fail2ban","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrlesmithjr%2Fansible-fail2ban","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrlesmithjr%2Fansible-fail2ban/lists"}