fail2ban/debian/jail.conf

84 lines
1.6 KiB
Plaintext

# Fail2Ban configuration file.
#
# This file was composed for Debian systems from the original one
# provided now under /usr/share/doc/fail2ban/examples/jail.conf
# for additional examples.
#
# To avoid merges during upgrades do not modify this file
# and rather provide your changes in /etc/fail2ban/jail.local
#
# Author: Yaroslav O. Halchenko <debian@onerussian.com>
#
# $Revision: 281 $
#
# The DEFAULT allows a global definition of the options. They can be override
# in each jail afterwards.
[DEFAULT]
# "ignoreip" can be an IP address, a CIDR mask or a DNS host
ignoreip = 127.0.0.1
bantime = 600
maxretry = 3
# Destination email address used solely for the interpolations in
# jail.{conf,local} configuration files.
destemail = root@localhost
# Default action to take: ban & send an e-mail with whois report
# to the destemail
action = iptables[name=%(__name__)s, port=%(port)s]
mail-whois[name=%(__name__)s, dest=%(destemail)s]
#
# Next jails corresponds to the standard configuration in Fail2ban 0.6.
# Please enable them by including
#
# [SECTION_NAME]
# enabled = true
#
# in /etc/fail2ban/jail.local
#
[ssh-iptables]
enabled = true
port = ssh
filter = sshd
logpath = /var/log/auth.log
maxretry = 6
[apache-iptables]
enabled = false
port = http
filter = apache-auth
logpath = /var/log/apache*/*access.log
maxretry = 6
[postfix-iptables]
enabled = false
port = smtp
filter = postfix
logpath = /var/log/postfix.log
[vsftpd-iptables]
enabled = false
port = ftp
filter = vsftpd
logpath = /var/log/auth.log
maxretry = 6
[couriersmtp-iptables]
enabled = false
port = smtp
filter = couriersmtp
logpath = /var/log/mail.log