Subversion Repositories configs

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
4 - 1
# Fail2Ban configuration file
2
#
3
# NetBSD ipfilter (ipf command) ban/unban
4
#
5
# Author: Ed Ravin <eravin@panix.com>
6
#
7
#
8
 
9
[Definition]
10
 
11
# Option:  actionstart
12
# Notes.:  command executed once at the start of Fail2Ban.
13
# Values:  CMD
14
#
15
# enable IPF if not already enabled
16
actionstart = /sbin/ipf -E
17
 
18
 
19
# Option:  actionstop
20
# Notes.:  command executed once at the end of Fail2Ban
21
# Values:  CMD
22
#
23
# don't disable IPF with "/sbin/ipf -D", there may be other filters in use
24
actionstop =
25
 
26
 
27
# Option:  actioncheck
28
# Notes.:  command executed once before each actionban command
29
# Values:  CMD
30
#
31
actioncheck =
32
 
33
 
34
# Option:  actionban
35
# Notes.:  command executed when banning an IP. Take care that the
36
#          command is executed with Fail2Ban user rights.
37
# Tags:    See jail.conf(5) man page
38
# Values:  CMD
39
#
40
actionban = echo block <blocktype> in quick from <ip>/32 | /sbin/ipf -f -
41
 
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
# note -r option used to remove matching rule
50
actionunban = echo block <blocktype> in quick from <ip>/32 | /sbin/ipf -r -f -
51
 
52
[Init]
53
 
54
# Option: Blocktype
55
# Notes : This is the return-icmp[return-code] mentioned in the ipf man page section 5. Keep this quoted to prevent
56
#         Shell expansion. This should be blank (unquoted) to drop the packet.
57
# Values: STRING
58
blocktype = "return-icmp(port-unr)"