Skip to content
This repository was archived by the owner on Apr 6, 2025. It is now read-only.

mediaformasi/fail2ban-filter-apache-security2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/

About

Fail2Ban filter for Apache2 ModSecurity2

Resources

License

Stars

Watchers

Forks

Packages

No packages published