Skip to content

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

License

Notifications You must be signed in to change notification settings

hosteons/Fail2Ban-Auto-Installer-With-Jail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

chmod +x fail2ban_auto_installer.sh
./fail2ban_auto_installer.sh

Maintained By

Hosteons.com

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages