From ed816afbcdd5e48b58b8bb9c3a5ad797ba317d0f Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Sat, 14 Dec 2013 01:41:28 +0000 Subject: [PATCH 1/2] ENH: add badips action --- config/action.d/badips.conf | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 config/action.d/badips.conf diff --git a/config/action.d/badips.conf b/config/action.d/badips.conf new file mode 100644 index 00000000..4a5c0f97 --- /dev/null +++ b/config/action.d/badips.conf @@ -0,0 +1,19 @@ +# Fail2ban reporting to badips.com +# +# Note: This reports and IP only and does not actually ban traffic. Use +# another action in the same jail if you want bans to occur. +# +# Set the category to the appropriate value before use. +# +# To get see register and optional key to get personalised graphs see: +# http://www.badips.com/blog/personalized-statistics-track-the-attackers-of-all-your-servers-with-one-key + +[Definition] + +actionban = curl --fail --user-agent "fail2ban v0.8.12" http://www.badips.com/add// + +[Init] + +# Option: category +# Notes.: Values are from the list here: http://www.badips.com/get/categories +category = From 93613e82f0aec7257ea046209d44dbb92d4f8c97 Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Wed, 15 Jan 2014 09:40:18 +1100 Subject: [PATCH 2/2] DOC: credits for action.d/badips --- ChangeLog | 1 + THANKS | 1 + 2 files changed, 2 insertions(+) diff --git a/ChangeLog b/ChangeLog index aebfa829..48af9ff0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -66,6 +66,7 @@ ver. 0.8.12 (2013/12/XX) - things-can-only-get-better - Added filter.d/horde - Added filter for freeswitch. Thanks Jim and editors and authors of http://wiki.freeswitch.org/wiki/Fail2ban + - Added action.d/badips. Thanks to Amy for making a nice API. ver. 0.8.11 (2013/11/13) - loves-unittests-and-tight-DoS-free-filter-regexes diff --git a/THANKS b/THANKS index 38e29fe6..9224d207 100644 --- a/THANKS +++ b/THANKS @@ -12,6 +12,7 @@ ache ag4ve (Shawn) Alasdair D. Campbell Amir Caspi +Amy Andrey G. Grozin Andy Fragen Arturo 'Buanzo' Busleiman