2006-12-10 23:40:04 +00:00
|
|
|
#! /bin/sh /usr/share/dpatch/dpatch-run
|
|
|
|
## 00_mail-whois-lines.dpatch by Yaroslav Halchenko <debian@onerussian.com>
|
|
|
|
##
|
|
|
|
## All lines beginning with `## DP:' are a description of the patch.
|
|
|
|
## DP: New action which mails not only whois but the result of grep using the
|
|
|
|
## DP: abuser IP over the log files
|
|
|
|
|
|
|
|
@DPATCH@
|
2007-02-09 03:22:15 +00:00
|
|
|
diff -urNad fail2ban-0.7.7~/config/action.d/mail-whois-lines.conf fail2ban-0.7.7/config/action.d/mail-whois-lines.conf
|
|
|
|
--- fail2ban-0.7.7~/config/action.d/mail-whois-lines.conf 2007-01-08 16:40:40.000000000 -0500
|
|
|
|
+++ fail2ban-0.7.7/config/action.d/mail-whois-lines.conf 2007-02-08 22:07:12.000000000 -0500
|
|
|
|
@@ -2,12 +2,12 @@
|
|
|
|
#
|
|
|
|
# Author: Cyril Jaquier
|
|
|
|
# Modified-By: Yaroslav Halchenko to include grepping on IP over log files
|
|
|
|
-# $Revision: 520 $
|
2006-12-10 23:40:04 +00:00
|
|
|
+# $Revision: 254 $
|
2007-02-09 03:22:15 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
[Definition]
|
|
|
|
|
|
|
|
-# Option: fwstart
|
2007-01-19 15:53:21 +00:00
|
|
|
+# Option: actionstart
|
2007-02-09 03:22:15 +00:00
|
|
|
# Notes.: command executed once at the start of Fail2Ban.
|
|
|
|
# Values: CMD
|
|
|
|
#
|
|
|
|
@@ -16,7 +16,7 @@
|
|
|
|
Regards,\n
|
|
|
|
Fail2Ban"|mail -s "[Fail2Ban] <name>: started" <dest>
|
|
|
|
|
|
|
|
-# Option: fwend
|
2007-01-19 15:53:21 +00:00
|
|
|
+# Option: actionstop
|
2007-02-09 03:22:15 +00:00
|
|
|
# Notes.: command executed once at the end of Fail2Ban
|
|
|
|
# Values: CMD
|
|
|
|
#
|
|
|
|
@@ -25,13 +25,13 @@
|
|
|
|
Regards,\n
|
|
|
|
Fail2Ban"|mail -s "[Fail2Ban] <name>: stopped" <dest>
|
|
|
|
|
|
|
|
-# Option: fwcheck
|
|
|
|
-# Notes.: command executed once before each fwban command
|
2007-01-19 15:51:11 +00:00
|
|
|
+# Option: actioncheck
|
|
|
|
+# Notes.: command executed once before each actionban command
|
2007-02-09 03:22:15 +00:00
|
|
|
# Values: CMD
|
|
|
|
#
|
|
|
|
actioncheck =
|
|
|
|
|
|
|
|
-# Option: fwban
|
2007-01-19 15:51:11 +00:00
|
|
|
+# Option: actionban
|
2007-02-09 03:22:15 +00:00
|
|
|
# Notes.: command executed when banning an IP. Take care that the
|
|
|
|
# command is executed with Fail2Ban user rights.
|
|
|
|
# Tags: <ip> IP address
|
|
|
|
@@ -50,7 +50,7 @@
|
|
|
|
Regards,\n
|
|
|
|
Fail2Ban"|mail -s "[Fail2Ban] <name>: banned <ip>" <dest>
|
|
|
|
|
|
|
|
-# Option: fwunban
|
2007-01-19 15:51:11 +00:00
|
|
|
+# Option: actionunban
|
2007-02-09 03:22:15 +00:00
|
|
|
# Notes.: command executed when unbanning an IP. Take care that the
|
|
|
|
# command is executed with Fail2Ban user rights.
|
|
|
|
# Tags: <ip> IP address
|