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
- Host: GitHub
- URL: https://github.com/hosteons/fail2ban-auto-installer-with-jail
- Owner: hosteons
- License: other
- Created: 2025-06-03T07:26:41.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-06-03T07:33:45.000Z (5 months ago)
- Last Synced: 2025-06-03T19:28:32.710Z (5 months ago)
- Topics: almalinux, auto-installer, bash-script, brute-force, brute-force-protection, centos, debian, fail2ban, fail2ban-script, firewall, hosteons, linux-security, server-hardening, ssh-protection, ubuntu
- Language: Shell
- Homepage: https://hosteons.com
- Size: 1.23 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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