dm4/roles/securing/files/fail2ban/jail.local

42 lines
552 B
Plaintext

[sshd]
enabled = true
port = ssh
filter = sshd
logpath = /var/log/auth.log
maxretry = 3
bantime = 300
#
# JAILS
#
#
# Deny port scan
#
[scan-port]
enabled = true
filter = scan-port
logpath = /var/log/scan.log # or path to your Apache log files
bantime = 300
maxretry = 1
#
# Deny non conventionnal requests
#
[http]
enabled = true
# block these ports
port=http,https
# filter in /etc/fail2ban/filter.d/http.conf
filter = http
logpath = /var/log/apache/*_access_log # or path to your Apache log files
findtime = 3600
bantime = 300
maxretry = 3