Subversion Repositories configs

Rev

Rev 3 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
3 - 1
# Fail2Ban configuration file
2
#
3
# Author: Cyril Jaquier
4
# Modified: Yaroslav O. Halchenko <debian@onerussian.com>
5
# 			made active on all ports from original iptables.conf
6
#
7
#
8
 
9
[INCLUDES]
10
 
33 - 11
before = iptables-common.conf
3 - 12
 
13
 
14
[Definition]
15
 
16
# Option:  actionstart
17
# Notes.:  command executed once at the start of Fail2Ban.
18
# Values:  CMD
19
#
33 - 20
actionstart = iptables -N f2b-<name>
21
              iptables -A f2b-<name> -j RETURN
22
              iptables -I <chain> -p <protocol> -j f2b-<name>
3 - 23
 
24
# Option:  actionstop
25
# Notes.:  command executed once at the end of Fail2Ban
26
# Values:  CMD
27
#
33 - 28
actionstop = iptables -D <chain> -p <protocol> -j f2b-<name>
29
             iptables -F f2b-<name>
30
             iptables -X f2b-<name>
3 - 31
 
32
# Option:  actioncheck
33
# Notes.:  command executed once before each actionban command
34
# Values:  CMD
35
#
33 - 36
actioncheck = iptables -n -L <chain> | grep -q 'f2b-<name>[ \t]'
3 - 37
 
38
# Option:  actionban
39
# Notes.:  command executed when banning an IP. Take care that the
40
#          command is executed with Fail2Ban user rights.
41
# Tags:    See jail.conf(5) man page
42
# Values:  CMD
43
#
33 - 44
actionban = iptables -I f2b-<name> 1 -s <ip> -j <blocktype>
3 - 45
 
46
# Option:  actionunban
47
# Notes.:  command executed when unbanning an IP. Take care that the
48
#          command is executed with Fail2Ban user rights.
49
# Tags:    See jail.conf(5) man page
50
# Values:  CMD
51
#
33 - 52
actionunban = iptables -D f2b-<name> -s <ip> -j <blocktype>
3 - 53
 
54
[Init]
55