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-08-15 02:17:44 +00:00
|
|
|
diff -urNad trunk~/config/action.d/mail-whois-lines.conf trunk/config/action.d/mail-whois-lines.conf
|
|
|
|
--- trunk~/config/action.d/mail-whois-lines.conf 2007-08-14 19:12:48.000000000 -0400
|
|
|
|
+++ trunk/config/action.d/mail-whois-lines.conf 2007-08-14 19:24:17.000000000 -0400
|
|
|
|
@@ -7,7 +7,7 @@
|
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
|