2012-06-05 02:41:28 +00:00
|
|
|
# Fail2Ban main configuration file
|
2006-07-17 19:26:14 +00:00
|
|
|
#
|
2013-05-13 01:42:59 +00:00
|
|
|
# Comments: use '#' for comment lines and ';' (following a space) for inline comments
|
2006-07-17 19:26:14 +00:00
|
|
|
#
|
2012-06-05 02:41:28 +00:00
|
|
|
# Changes: in most of the cases you should not modify this
|
|
|
|
# file, but provide customizations in fail2ban.local file, e.g.:
|
|
|
|
#
|
2019-04-18 18:53:11 +00:00
|
|
|
# [DEFAULT]
|
2014-02-20 23:09:45 +00:00
|
|
|
# loglevel = DEBUG
|
2006-07-17 19:26:14 +00:00
|
|
|
#
|
|
|
|
|
2019-04-18 18:53:11 +00:00
|
|
|
[DEFAULT]
|
2006-06-26 20:05:00 +00:00
|
|
|
|
2013-10-14 20:28:19 +00:00
|
|
|
# Option: loglevel
|
|
|
|
# Notes.: Set the log level output.
|
2014-02-20 23:01:40 +00:00
|
|
|
# CRITICAL
|
|
|
|
# ERROR
|
|
|
|
# WARNING
|
|
|
|
# NOTICE
|
|
|
|
# INFO
|
|
|
|
# DEBUG
|
|
|
|
# Values: [ LEVEL ] Default: ERROR
|
2006-08-20 21:34:55 +00:00
|
|
|
#
|
2014-02-20 23:01:40 +00:00
|
|
|
loglevel = INFO
|
2006-06-26 20:05:00 +00:00
|
|
|
|
2013-10-14 20:28:19 +00:00
|
|
|
# Option: logtarget
|
|
|
|
# Notes.: Set the log target. This could be a file, SYSLOG, STDERR or STDOUT.
|
|
|
|
# Only one log target can be specified.
|
|
|
|
# If you change logtarget from the default value and you are
|
|
|
|
# using logrotate -- also adjust or disable rotation in the
|
|
|
|
# corresponding configuration file
|
|
|
|
# (e.g. /etc/logrotate.d/fail2ban on Debian systems)
|
2017-11-26 22:03:29 +00:00
|
|
|
# Values: [ STDOUT | STDERR | SYSLOG | SYSOUT | FILE ] Default: STDERR
|
2006-08-20 21:34:55 +00:00
|
|
|
#
|
2006-08-06 21:24:06 +00:00
|
|
|
logtarget = /var/log/fail2ban.log
|
2006-10-17 21:12:22 +00:00
|
|
|
|
2015-02-06 04:44:57 +00:00
|
|
|
# Option: syslogsocket
|
|
|
|
# Notes: Set the syslog socket file. Only used when logtarget is SYSLOG
|
2015-02-07 00:14:09 +00:00
|
|
|
# auto uses platform.system() to determine predefined paths
|
|
|
|
# Values: [ auto | FILE ] Default: auto
|
|
|
|
syslogsocket = auto
|
2015-02-06 04:44:57 +00:00
|
|
|
|
2006-10-17 21:12:22 +00:00
|
|
|
# Option: socket
|
2006-12-18 22:33:01 +00:00
|
|
|
# Notes.: Set the socket file. This is used to communicate with the daemon. Do
|
|
|
|
# not remove this file when Fail2ban runs. It will not be possible to
|
|
|
|
# communicate with the server afterwards.
|
2013-10-14 20:28:19 +00:00
|
|
|
# Values: [ FILE ] Default: /var/run/fail2ban/fail2ban.sock
|
2006-10-17 21:12:22 +00:00
|
|
|
#
|
2007-12-14 21:33:33 +00:00
|
|
|
socket = /var/run/fail2ban/fail2ban.sock
|
2006-10-17 21:12:22 +00:00
|
|
|
|
2013-02-17 22:14:01 +00:00
|
|
|
# Option: pidfile
|
|
|
|
# Notes.: Set the PID file. This is used to store the process ID of the
|
|
|
|
# fail2ban server.
|
2013-10-14 20:28:19 +00:00
|
|
|
# Values: [ FILE ] Default: /var/run/fail2ban/fail2ban.pid
|
2013-02-17 22:14:01 +00:00
|
|
|
#
|
|
|
|
pidfile = /var/run/fail2ban/fail2ban.pid
|
|
|
|
|
2013-12-07 23:23:28 +00:00
|
|
|
# Options: dbfile
|
|
|
|
# Notes.: Set the file for the fail2ban persistent data to be stored.
|
2013-12-10 21:16:36 +00:00
|
|
|
# A value of ":memory:" means database is only stored in memory
|
2014-04-03 14:44:49 +00:00
|
|
|
# and data is lost when fail2ban is stopped.
|
2013-12-10 21:16:36 +00:00
|
|
|
# A value of "None" disables the database.
|
|
|
|
# Values: [ None :memory: FILE ] Default: /var/lib/fail2ban/fail2ban.sqlite3
|
2013-12-08 11:35:12 +00:00
|
|
|
dbfile = /var/lib/fail2ban/fail2ban.sqlite3
|
2013-12-07 23:23:28 +00:00
|
|
|
|
|
|
|
# Options: dbpurgeage
|
|
|
|
# Notes.: Sets age at which bans should be purged from the database
|
|
|
|
# Values: [ SECONDS ] Default: 86400 (24hours)
|
2014-10-23 23:32:04 +00:00
|
|
|
dbpurgeage = 1d
|
2019-02-24 15:45:14 +00:00
|
|
|
|
2019-04-18 18:31:39 +00:00
|
|
|
# Options: dbmaxmatches
|
|
|
|
# Notes.: Number of matches stored in database per ticket (resolvable via
|
|
|
|
# tags <ipmatches>/<ipjailmatches> in actions)
|
|
|
|
# Values: [ INT ] Default: 10
|
|
|
|
dbmaxmatches = 10
|
|
|
|
|
2019-04-18 18:53:11 +00:00
|
|
|
[Definition]
|
|
|
|
|
|
|
|
|
2019-02-24 15:45:14 +00:00
|
|
|
[Thread]
|
|
|
|
|
|
|
|
# Options: stacksize
|
|
|
|
# Notes.: Specifies the stack size (in KiB) to be used for subsequently created threads,
|
|
|
|
# and must be 0 or a positive integer value of at least 32.
|
|
|
|
# Values: [ SIZE ] Default: 0 (use platform or configured default)
|
|
|
|
#stacksize = 0
|