Subversion Repositories configs

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
192 - 1
# Fail2Ban configuration file
2
#
3
# Author: Daniel Black
4
#
5
# This is a included configuration file and includes the definitions for the iptables
6
# used in all iptables based actions by default.
7
#
8
# The user can override the defaults in iptables-common.local
9
#
10
# Modified: Alexander Koeppe <format_c@online.de>, Serg G. Brester <serg.brester@sebres.de>
11
#       made config file IPv6 capable (see new section Init?family=inet6)
12
 
13
[INCLUDES]
14
 
15
after = iptables-blocktype.local
16
        iptables-common.local
17
# iptables-blocktype.local is obsolete
18
 
19
[Definition]
20
 
21
# Option:  actionflush
22
# Notes.:  command executed once to flush IPS, by shutdown (resp. by stop of the jail or this action)
23
# Values:  CMD
24
#
25
actionflush = <iptables> -F f2b-<name>
26
 
27
 
28
[Init]
29
 
30
# Option:  chain
31
# Notes    specifies the iptables chain to which the Fail2Ban rules should be
32
#          added
33
# Values:  STRING  Default: INPUT
34
chain = INPUT
35
 
36
# Default name of the chain
37
#
38
name = default
39
 
40
# Option:  port
41
# Notes.:  specifies port to monitor
42
# Values:  [ NUM | STRING ]  Default:
43
#
44
port = ssh
45
 
46
# Option:  protocol
47
# Notes.:  internally used by config reader for interpolations.
48
# Values:  [ tcp | udp | icmp | all ] Default: tcp
49
#
50
protocol = tcp
51
 
52
# Option:  blocktype
53
# Note:    This is what the action does with rules. This can be any jump target
54
#          as per the iptables man page (section 8). Common values are DROP
55
#          REJECT, REJECT --reject-with icmp-port-unreachable
56
# Values:  STRING
57
blocktype = REJECT --reject-with icmp-port-unreachable
58
 
59
# Option:  returntype
60
# Note:    This is the default rule on "actionstart". This should be RETURN
61
#          in all (blocking) actions, except REJECT in allowing actions.
62
# Values:  STRING
63
returntype = RETURN
64
 
65
# Option:  lockingopt
66
# Notes.:  Option was introduced to iptables to prevent multiple instances from
67
#          running concurrently and causing irratic behavior.  -w was introduced
68
#          in iptables 1.4.20, so might be absent on older systems
69
#          See https://github.com/fail2ban/fail2ban/issues/1122
70
# Values:  STRING
71
lockingopt = -w
72
 
73
# Option:  iptables
74
# Notes.:  Actual command to be executed, including common to all calls options
75
# Values:  STRING
76
iptables = iptables <lockingopt>
77
 
78
 
79
[Init?family=inet6]
80
 
81
# Option:  blocktype (ipv6)
82
# Note:    This is what the action does with rules. This can be any jump target
83
#          as per the iptables man page (section 8). Common values are DROP
84
#          REJECT, REJECT --reject-with icmp6-port-unreachable
85
# Values:  STRING
86
blocktype = REJECT --reject-with icmp6-port-unreachable
87
 
88
# Option:  iptables (ipv6)
89
# Notes.:  Actual command to be executed, including common to all calls options
90
# Values:  STRING
91
iptables = ip6tables <lockingopt>
92