Line 0
Link Here
|
|
|
1 |
--- /dev/null 2010-01-12 16:33:00.000000000 -0500 |
2 |
+++ ./config/action.d/pf.conf 2010-01-12 16:26:51.000000000 -0500 |
3 |
@@ -0,0 +1,56 @@ |
4 |
+# Fail2Ban configuration file |
5 |
+# |
6 |
+# OpenBSD pf ban/unban |
7 |
+# |
8 |
+# Author: Nick Hilliard <nick@foobar.org> |
9 |
+# |
10 |
+# |
11 |
+ |
12 |
+[Definition] |
13 |
+ |
14 |
+# Option: actionstart |
15 |
+# Notes.: command executed once at the start of Fail2Ban. |
16 |
+# Values: CMD |
17 |
+# |
18 |
+# we don't enable PF automatically, as it will be enabled elsewhere |
19 |
+actionstart = |
20 |
+ |
21 |
+ |
22 |
+# Option: actionstop |
23 |
+# Notes.: command executed once at the end of Fail2Ban |
24 |
+# Values: CMD |
25 |
+# |
26 |
+# we don't disable PF automatically either |
27 |
+actionstop = |
28 |
+ |
29 |
+ |
30 |
+# Option: actioncheck |
31 |
+# Notes.: command executed once before each actionban command |
32 |
+# Values: CMD |
33 |
+# |
34 |
+actioncheck = |
35 |
+ |
36 |
+ |
37 |
+# Option: actionban |
38 |
+# Notes.: command executed when banning an IP. Take care that the |
39 |
+# command is executed with Fail2Ban user rights. |
40 |
+# Tags: <ip> IP address |
41 |
+# <failures> number of failures |
42 |
+# <time> unix timestamp of the ban time |
43 |
+# Values: CMD |
44 |
+# |
45 |
+actionban = /sbin/pfctl -t fail2ban -T add <ip>/32 |
46 |
+ |
47 |
+ |
48 |
+# Option: actionunban |
49 |
+# Notes.: command executed when unbanning an IP. Take care that the |
50 |
+# command is executed with Fail2Ban user rights. |
51 |
+# Tags: <ip> IP address |
52 |
+# <failures> number of failures |
53 |
+# <time> unix timestamp of the ban time |
54 |
+# Values: CMD |
55 |
+# |
56 |
+# note -r option used to remove matching rule |
57 |
+actionunban = /sbin/pfctl -t fail2ban -T delete <ip>/32 |
58 |
+ |
59 |
+[Init] |