{"id":18176707,"url":"https://github.com/jayllyz/fail2ban-doctor","last_synced_at":"2026-03-07T08:30:49.967Z","repository":{"id":216374730,"uuid":"741119655","full_name":"Jayllyz/fail2ban-doctor","owner":"Jayllyz","description":"Script to manage ssh and analyze logs.","archived":false,"fork":false,"pushed_at":"2026-02-09T18:04:28.000Z","size":285,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-09T22:16:54.166Z","etag":null,"topics":["bash","fail2ban","ssh"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Jayllyz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-01-09T18:28:43.000Z","updated_at":"2026-02-09T18:04:25.000Z","dependencies_parsed_at":"2024-05-07T13:50:51.807Z","dependency_job_id":null,"html_url":"https://github.com/Jayllyz/fail2ban-doctor","commit_stats":null,"previous_names":["jayllyz/fail2ban-doctor"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Jayllyz/fail2ban-doctor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jayllyz%2Ffail2ban-doctor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jayllyz%2Ffail2ban-doctor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jayllyz%2Ffail2ban-doctor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jayllyz%2Ffail2ban-doctor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jayllyz","download_url":"https://codeload.github.com/Jayllyz/fail2ban-doctor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jayllyz%2Ffail2ban-doctor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30209934,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T05:23:27.321Z","status":"ssl_error","status_checked_at":"2026-03-07T05:00:17.256Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["bash","fail2ban","ssh"],"created_at":"2024-11-02T17:11:17.129Z","updated_at":"2026-03-07T08:30:49.927Z","avatar_url":"https://github.com/Jayllyz.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fail2ban Doctor\n\n[![Super-Linter](https://github.com/Jayllyz/fail2ban-doctor/actions/workflows/ci.yml/badge.svg)](https://github.com/marketplace/actions/super-linter)\n\nThis script is designed to manage fail2ban for SSH security and analyze authentication logs on a Linux system to provide insights into failed login attempts, IP addresses, and more.\n\n## Features\n\n- **Check Failed Login Attempts**: View the number of failed login attempts.\n- **Top Login Attempts**: Display top usernames of failed login attempts.\n- **Failed Attempts by IP**: Check failed login attempts by IP address.\n- **View fail2ban Status**: Check the status of fail2ban for SSH.\n- **Disable SSH Root Login**: Disable root login via SSH for enhanced security.\n- **Top Countries**: Determine top countries based on banned IP addresses. (GeoIP Lookup)\n- **Blackhole blacklist**: Use [blackhole](https://ip.blackhole.monster/blackhole-30days) to create a huge list of bad IP addresses to ban.\n- **Update blackhole blacklist**: Update the blackhole blacklist every 30 days using cron.\n\n\u003e I have a lot of ideas for this script, expect more features soon.\n\n## Usage\n\n\u003e [!NOTE]\n\u003e Root access is required for full access to logs and SSH configuration.\n\u003e The script require `geoiplookup` and `fail2ban`. If not present, it offers to install them.\n\nThe script has been tested on Ubuntu 23.10 x86_64 only for now.\n\n```bash\ncurl -s https://raw.githubusercontent.com/jayllyz/fail2ban-doctor/main/doctor.sh | sudo bash\n```\n\n## Screenshots\n\n\u003cimg src=\"https://raw.githubusercontent.com/jayllyz/fail2ban-doctor/main/assets/countries.png\" alt=\"countries\" height=\"500\" width=\"400\" /\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjayllyz%2Ffail2ban-doctor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjayllyz%2Ffail2ban-doctor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjayllyz%2Ffail2ban-doctor/lists"}