{"id":19251212,"url":"https://github.com/rexops/rex-fail2ban","last_synced_at":"2026-06-18T15:33:19.921Z","repository":{"id":138907941,"uuid":"61442353","full_name":"RexOps/rex-fail2ban","owner":"RexOps","description":"Small fail2ban module","archived":false,"fork":false,"pushed_at":"2016-06-19T07:38:37.000Z","size":3,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-23T16:48:39.676Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Perl","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/RexOps.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":"2016-06-18T16:24:00.000Z","updated_at":"2017-12-16T22:56:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"7666910d-3ab8-45b6-8cc6-f65c78ee42da","html_url":"https://github.com/RexOps/rex-fail2ban","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RexOps/rex-fail2ban","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RexOps%2Frex-fail2ban","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RexOps%2Frex-fail2ban/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RexOps%2Frex-fail2ban/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RexOps%2Frex-fail2ban/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RexOps","download_url":"https://codeload.github.com/RexOps/rex-fail2ban/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RexOps%2Frex-fail2ban/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34497366,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-18T02:00:06.871Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-09T18:21:07.017Z","updated_at":"2026-06-18T15:33:19.898Z","avatar_url":"https://github.com/RexOps.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rex Fail2ban module\n\nThis module setup fail2ban.\n\n## Tasks\n\n### setup\n\nCall this task to install fail2ban on your system.\n\n#### Parameters\n\n* ensure - Default: latest\n* service_ensure - Default: running\n* fail2ban_conf, Location of configuration file - Default: /etc/fail2ban/fail2ban.conf\n* fail2ban_conf_template, Template to use to configure fail2ban. - Default: templates/fail2ban/fail2ban.conf.tpl\n* loglevel - Default: INFO\n* logtarget - Default: /var/log/fail2ban.log\n* syslogsocket - Default: auto\n* socket - Default: /var/run/fail2ban/fail2ban.sock\n* pidfile - Default: /var/run/fail2ban/fail2ban.pid\n* dbfile - Default: /var/lib/fail2ban/fail2ban.sqlite3\n* dbpurgeage - Default: 86400\n\n#### Example\n\n```perl\nuse Fail2ban;\n\ntask \"setup\", sub {\n  Fail2ban::setup;\n};\n```\n\n```perl\nuse Fail2ban;\n\ntask \"setup\", sub {\n  Fail2ban::setup {\n    socket =\u003e \"/tmp/fail2ban.sock\",\n  };\n};\n```\n\n\n## Resources\n\n### action\n\nCreate a fail2ban action. Will place a file inside */etc/fail2ban/action.d*.\n\n#### Parameters\n\n* ensure - Default: present\n* content - Content of the action.\n\n#### Example\n\nThis will create the file */etc/fail2ban/action.d/myaction.conf*.\n\n```perl\nFail2ban::action \"myaction\",\n  ensure  =\u003e \"present\",\n  content =\u003e template(\"templates/myaction.tpl\");\n```\n\n### filter\n\nCreate a fail2ban filter. Will place a file inside */etc/fail2ban/filter.d*.\n\n#### Parameters\n\n* ensure - Default: present\n* content - Content of the filter.\n\n#### Example\n\nThis will create the file */etc/fail2ban/filter.d/myfilter.conf*.\n\n```perl\nFail2ban::filter \"myfilter\",\n  ensure  =\u003e \"present\",\n  content =\u003e template(\"templates/myfilter.tpl\");\n```\n\n\n### jail\n\nCreate a fail2ban jail. Will place a file inside */etc/fail2ban/jail.d*.\n\n#### Parameters\n\n* ensure - Default: present\n* content - Content of the jail.\n\n#### Example\n\nThis will create the file */etc/fail2ban/jail.d/myjail.conf*.\n\n```perl\nFail2ban::jail \"myjail\",\n  ensure  =\u003e \"present\",\n  content =\u003e template(\"templates/myjail.tpl\");\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frexops%2Frex-fail2ban","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frexops%2Frex-fail2ban","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frexops%2Frex-fail2ban/lists"}