An open API service indexing awesome lists of open source software.

https://github.com/hosteons/fail2ban-auto-installer-with-jail

This script installs and configures Fail2Ban with automatic detection of available services (SSH, Apache, Nginx), and enables appropriate jails by hosteons.com
https://github.com/hosteons/fail2ban-auto-installer-with-jail

almalinux auto-installer bash-script brute-force brute-force-protection centos debian fail2ban fail2ban-script firewall hosteons linux-security server-hardening ssh-protection ubuntu

Last synced: 4 months ago
JSON representation

This script installs and configures Fail2Ban with automatic detection of available services (SSH, Apache, Nginx), and enables appropriate jails by hosteons.com

Awesome Lists containing this project

README

          

# Fail2Ban Auto-Installer Script

This is a simple script that installs and configures Fail2Ban with auto-detection of common services like SSH, Apache, and Nginx.

## Features
- Automatically installs Fail2Ban (if not already installed)
- Adds SSH jail by default
- Detects and configures Apache or Nginx jails if those services are installed
- Skips unnecessary jails if services are not detected
- Ensures idempotent setup

## Usage
```bash
chmod +x fail2ban_auto_installer.sh
./fail2ban_auto_installer.sh
```

## Maintained By

**Hosteons.com**
- Website: https://hosteons.com
- Customer Portal: https://my.hosteons.com
- Blog: https://blog.hosteons.com
- Twitter: https://x.com/hosteonscom
- Facebook: https://facebook.com/HostEons