Subversion Repositories configs

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
192 - 1
# Fail2Ban configuration file
2
#
3
# Author: Cyril Jaquier
4
# Modified by Yaroslav Halchenko for multiport banning
5
#
6
 
7
[INCLUDES]
8
 
9
before = iptables-common.conf
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 = <iptables> -N f2b-<name>
18
              <iptables> -A f2b-<name> -j <returntype>
19
              <iptables> -I <chain> -p <protocol> -m multiport --dports <port> -j f2b-<name>
20
 
21
# Option:  actionstop
22
# Notes.:  command executed at the stop of jail (or at the end of Fail2Ban)
23
# Values:  CMD
24
#
25
actionstop = <iptables> -D <chain> -p <protocol> -m multiport --dports <port> -j f2b-<name>
26
             <actionflush>
27
             <iptables> -X f2b-<name>
28
 
29
# Option:  actioncheck
30
# Notes.:  command executed once before each actionban command
31
# Values:  CMD
32
#
33
actioncheck = <iptables> -n -L <chain> | grep -q 'f2b-<name>[ \t]'
34
 
35
# Option:  actionban
36
# Notes.:  command executed when banning an IP. Take care that the
37
#          command is executed with Fail2Ban user rights.
38
# Tags:    See jail.conf(5) man page
39
# Values:  CMD
40
#
41
actionban = <iptables> -I f2b-<name> 1 -s <ip> -j <blocktype>
42
 
43
# Option:  actionunban
44
# Notes.:  command executed when unbanning an IP. Take care that the
45
#          command is executed with Fail2Ban user rights.
46
# Tags:    See jail.conf(5) man page
47
# Values:  CMD
48
#
49
actionunban = <iptables> -D f2b-<name> -s <ip> -j <blocktype>
50
 
51
[Init]
52