Fail2Ban filter for Apache2 ModSecurity2
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
filter.d
.gitattributes
LICENSE
README.md
jail.local

README.md

Fail2Ban Filter for Apache2 ModSecurity2

Note: This will only work if you have full access to your web server's /etc/fail2ban/ files.

How to use:

  • Install, enable, and configure ModSecurity2 to your web server.
  • Copy /filter.d/apache-security2.conf from this repository to /etc/fail2ban/filter.d/
  • Add a [apache-security2] section to the Jails section of your /etc/fail2ban/jail.local file...
	[apache-security2]
	port     = http,https
	logpath  = %(apache_error_log)s
	maxretry = 4
	enabled = true
  • Restart Fail2Ban: service fail2ban restart

Additional Notes:

More info: https://www.kazimer.com/update-fail2ban-apache-security-conf-filter-for-security2-module/