Subversion Repositories configs

Rev

Rev 192 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
192 - 1
# Fail2Ban main configuration file
2
#
3
# Comments: use '#' for comment lines and ';' (following a space) for inline comments
4
#
5
# Changes:  in most of the cases you should not modify this
6
#           file, but provide customizations in fail2ban.local file, e.g.:
7
#
8
# [DEFAULT]
9
# loglevel = DEBUG
10
#
11
 
12
[DEFAULT]
13
 
14
# Option: loglevel
15
# Notes.: Set the log level output.
16
#         CRITICAL
17
#         ERROR
18
#         WARNING
19
#         NOTICE
20
#         INFO
21
#         DEBUG
193 - 22
# Values: [ LEVEL ]  Default: INFO
192 - 23
#
24
loglevel = INFO
25
 
26
# Option: logtarget
27
# Notes.: Set the log target. This could be a file, SYSLOG, STDERR or STDOUT.
28
#         Only one log target can be specified.
29
#         If you change logtarget from the default value and you are
30
#         using logrotate -- also adjust or disable rotation in the
31
#         corresponding configuration file
32
#         (e.g. /etc/logrotate.d/fail2ban on Debian systems)
33
# Values: [ STDOUT | STDERR | SYSLOG | SYSOUT | FILE ]  Default: STDERR
34
#
35
logtarget = /var/log/fail2ban.log
36
 
37
# Option: syslogsocket
38
# Notes: Set the syslog socket file. Only used when logtarget is SYSLOG
39
#        auto uses platform.system() to determine predefined paths
40
# Values: [ auto | FILE ]  Default: auto
41
syslogsocket = auto
42
 
43
# Option: socket
44
# Notes.: Set the socket file. This is used to communicate with the daemon. Do
45
#         not remove this file when Fail2ban runs. It will not be possible to
46
#         communicate with the server afterwards.
47
# Values: [ FILE ]  Default: /var/run/fail2ban/fail2ban.sock
48
#
49
socket = /var/run/fail2ban/fail2ban.sock
50
 
51
# Option: pidfile
52
# Notes.: Set the PID file. This is used to store the process ID of the
53
#         fail2ban server.
54
# Values: [ FILE ]  Default: /var/run/fail2ban/fail2ban.pid
55
#
56
pidfile = /var/run/fail2ban/fail2ban.pid
57
 
58
# Options: dbfile
59
# Notes.: Set the file for the fail2ban persistent data to be stored.
60
#         A value of ":memory:" means database is only stored in memory
61
#         and data is lost when fail2ban is stopped.
62
#         A value of "None" disables the database.
63
# Values: [ None :memory: FILE ] Default: /var/lib/fail2ban/fail2ban.sqlite3
64
dbfile = /var/lib/fail2ban/fail2ban.sqlite3
65
 
66
# Options: dbpurgeage
67
# Notes.: Sets age at which bans should be purged from the database
68
# Values: [ SECONDS ] Default: 86400 (24hours)
69
dbpurgeage = 1d
70
 
71
# Options: dbmaxmatches
72
# Notes.: Number of matches stored in database per ticket (resolvable via
73
#         tags <ipmatches>/<ipjailmatches> in actions)
74
# Values: [ INT ] Default: 10
75
dbmaxmatches = 10
76
 
77
[Definition]
78
 
79
 
80
[Thread]
81
 
82
# Options: stacksize
83
# Notes.: Specifies the stack size (in KiB) to be used for subsequently created threads,
84
#         and must be 0 or a positive integer value of at least 32.
85
# Values: [ SIZE ] Default: 0 (use platform or configured default)
86
#stacksize = 0