Fail2Ban scans log files like /var/log/pwdfail and bans IP that makes too many password failures. It updates firewall rules to reject the IP address. Theses rules can be defined by the user. Fail2Ban can read multiple log files such as sshd or Apache web server ones.
20 lines
298 B
Text
Executable file
20 lines
298 B
Text
Executable file
# pkgsrc
|
|
|
|
[INCLUDES]
|
|
|
|
#before = paths-distro.conf
|
|
|
|
after = paths-overrides.local
|
|
|
|
|
|
[DEFAULT]
|
|
|
|
apache_error_log = @VARBASE@/log/httpd/error_log
|
|
|
|
apache_access_log = @VARBASE@/log/httpd/access_log
|
|
|
|
|
|
nginx_error_log = @VARBASE@/log/nginx/error.log
|
|
|
|
nginx_access_log = @VARBASE@/log/nginx/access.log
|
|
|