Subversion Repositories configs

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
192 - 1
# Fail2Ban configuration file
2
#
3
# Common settings for sendmail actions
4
#
5
# Users can override the defaults in sendmail-common.local
6
 
7
[INCLUDES]
8
 
9
after = sendmail-common.local
10
 
11
[Definition]
12
 
13
# Option:  actionstart
14
# Notes.:  command executed on demand at the first ban (or at the start of Fail2Ban if actionstart_on_demand is set to false).
15
# Values:  CMD
16
#
17
actionstart = printf %%b "Subject: [Fail2Ban] <name>: started on <fq-hostname>
18
              Date: `LC_ALL=C date +"%%a, %%d %%h %%Y %%T %%z"`
19
              From: <sendername> <<sender>>
20
              To: <dest>\n
21
              Hi,\n
22
              The jail <name> has been started successfully.\n
23
              Regards,\n
24
              Fail2Ban" | <mailcmd>
25
 
26
# Option:  actionstop
27
# Notes.:  command executed at the stop of jail (or at the end of Fail2Ban)
28
# Values:  CMD
29
#
30
actionstop = printf %%b "Subject: [Fail2Ban] <name>: stopped on <fq-hostname>
31
             Date: `LC_ALL=C date +"%%a, %%d %%h %%Y %%T %%z"`
32
             From: <sendername> <<sender>>
33
             To: <dest>\n
34
             Hi,\n
35
             The jail <name> has been stopped.\n
36
             Regards,\n
37
             Fail2Ban" | <mailcmd>
38
 
39
# Option:  actioncheck
40
# Notes.:  command executed once before each actionban command
41
# Values:  CMD
42
#
43
actioncheck =
44
 
45
# Option:  actionban
46
# Notes.:  command executed when banning an IP. Take care that the
47
#          command is executed with Fail2Ban user rights.
48
# Tags:    See jail.conf(5) man page
49
# Values:  CMD
50
#
51
actionban =
52
 
53
# Option:  actionunban
54
# Notes.:  command executed when unbanning an IP. Take care that the
55
#          command is executed with Fail2Ban user rights.
56
# Tags:    See jail.conf(5) man page
57
# Values:  CMD
58
#
59
actionunban =
60
 
61
[Init]
62
 
63
# Your system mail command
64
#
65
mailcmd = /usr/sbin/sendmail -f "<sender>" "<dest>"
66
 
67
# Recipient mail address
68
#
69
dest = root
70
 
71
# Sender mail address
72
#
73
sender = fail2ban
74
 
75
# Sender display name
76
#
77
sendername = Fail2Ban