Code Monkey home page Code Monkey logo

fail2ban-doctor's Introduction

Fail2ban Doctor

Super-Linter

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

Features

  • Check Failed Login Attempts: View the number of failed login attempts.
  • Top Login Attempts: Display top usernames of failed login attempts.
  • Failed Attempts by IP: Check failed login attempts by IP address.
  • View fail2ban Status: Check the status of fail2ban for SSH.
  • Disable SSH Root Login: Disable root login via SSH for enhanced security.
  • Top Countries: Determine top countries based on banned IP addresses. (GeoIP Lookup)
  • Blackhole blacklist: Use blackhole to create a huge list of bad IP addresses to ban.
  • Update blackhole blacklist: Update the blackhole blacklist every 30 days using cron.

I have a lot of ideas for this script, expect more features soon.

Usage

Note

Root access is required for full access to logs and SSH configuration. The script require geoiplookup and fail2ban. If not present, it offers to install them.

The script has been tested on Ubuntu 23.10 x86_64 only for now.

curl -s https://raw.githubusercontent.com/jayllyz/fail2ban-doctor/main/doctor.sh | sudo bash

Screenshots

countries

fail2ban-doctor's People

Contributors

dependabot[bot] avatar imgbotapp avatar jayllyz avatar

Watchers

 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.