diff --git a/CHANGELOG b/CHANGELOG index 1de258b9..29302ebe 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -4,9 +4,17 @@ |_| \__,_|_|_/___|_.__/\__,_|_||_| ============================================================= -Fail2Ban (version 0.7.7) 2007/02/08 +Fail2Ban (version 0.7.8) 2007/03/21 ============================================================= +ver. 0.7.8 (2007/03/21) - release candidate +---------- +- Fixed asctime pattern in datedetector.py +- Added new filters/actions. Thanks to Yaroslav Halchenko +- Added Suse init script and modified gentoo-initd. Thanks to + Christian Rauch +- Moved every locking statements in a try..finally block + ver. 0.7.7 (2007/02/08) - release candidate ---------- - Added signal handling in fail2ban-client diff --git a/PKG-INFO b/PKG-INFO index c4e2eb9b..c7fc4b85 100644 --- a/PKG-INFO +++ b/PKG-INFO @@ -1,6 +1,6 @@ Metadata-Version: 1.0 Name: fail2ban -Version: 0.7.7 +Version: 0.7.8 Summary: Ban IPs that make too many password failure Home-page: http://fail2ban.sourceforge.net Author: Cyril Jaquier diff --git a/README b/README index 369c87e4..d73b72d9 100644 --- a/README +++ b/README @@ -4,7 +4,7 @@ |_| \__,_|_|_/___|_.__/\__,_|_||_| ============================================================= -Fail2Ban (version 0.7.7) 2007/02/08 +Fail2Ban (version 0.7.8) 2007/03/21 ============================================================= Fail2Ban scans log files like /var/log/pwdfail and bans IP @@ -28,8 +28,8 @@ Optional: To install, just do: -> tar xvfj fail2ban-0.7.7.tar.bz2 -> cd fail2ban-0.7.7 +> tar xvfj fail2ban-0.7.8.tar.bz2 +> cd fail2ban-0.7.8 > python setup.py install This will install Fail2Ban into /usr/share/fail2ban. The @@ -73,7 +73,7 @@ Tom Pike, Iain Lea, Andrey G. Grozin, Yaroslav Halchenko, Jonathan Kamens, Stephen Gildea, Markus Hoffmann, Mark Edgington, Patrick Börjesson, kojiro, zugeschmiert, Tyler, Nick Munger, Christoph Haas, Justin Shore, Joël Bertrand, -René Berber, mEDI, Axel Thimm, Eric Gerbier +René Berber, mEDI, Axel Thimm, Eric Gerbier, Christian Rauch License: -------- diff --git a/TODO b/TODO index e3818be2..8be435f4 100644 --- a/TODO +++ b/TODO @@ -4,7 +4,7 @@ |_| \__,_|_|_/___|_.__/\__,_|_||_| ============================================================= -ToDo $Revision: 540 $ +ToDo $Revision: 557 $ ============================================================= Legend: @@ -13,16 +13,24 @@ Legend: # partially done * done +- Removed relative imports + +- Discuss where Fail2ban should be installed (/usr/share, + /usr/lib/python/site-packages/, etc) + +- Cleanup fail2ban-client and fail2ban-server. Move code to + server/ and client/ + - Add timeout to external commands (signal alarm, watchdog thread, etc) -- New backend: pynotify +- New backend: pyinotify - Uniformize filters and actions name. Use the software name (openssh, postfix, proftp) - Added tag for failregex. Add features using this - information + information. Maybe add more tags - Look at the memory consumption. Decrease memory usage diff --git a/client/beautifier.py b/client/beautifier.py index e545d0a4..a73d5709 100644 --- a/client/beautifier.py +++ b/client/beautifier.py @@ -16,11 +16,11 @@ # Author: Cyril Jaquier # -# $Revision: 537 $ +# $Revision: 547 $ __author__ = "Cyril Jaquier" -__version__ = "$Revision: 537 $" -__date__ = "$Date: 2007-02-01 21:50:12 +0100 (Thu, 01 Feb 2007) $" +__version__ = "$Revision: 547 $" +__date__ = "$Date: 2007-02-12 00:21:56 +0100 (Mon, 12 Feb 2007) $" __copyright__ = "Copyright (c) 2004 Cyril Jaquier" __license__ = "GPL" @@ -68,13 +68,18 @@ class Beautifier: msg = "Added jail " + response elif inC[0:1] == ['status']: if len(inC) > 1: + # Create IP list + ipList = "" + for ip in response[1][1][2][1]: + ipList += ip + " " + # Display information msg = "Status for the jail: " + inC[1] + "\n" msg = msg + "|- " + response[0][0] + "\n" msg = msg + "| |- " + response[0][1][0][0] + ":\t" + `response[0][1][0][1]` + "\n" msg = msg + "| `- " + response[0][1][1][0] + ":\t" + `response[0][1][1][1]` + "\n" msg = msg + "`- " + response[1][0] + "\n" msg = msg + " |- " + response[1][1][0][0] + ":\t" + `response[1][1][0][1]` + "\n" - msg = msg + " | `- " + response[1][1][2][0] + ":\t" + `response[1][1][2][1]` + "\n" + msg = msg + " | `- " + response[1][1][2][0] + ":\t" + ipList + "\n" msg = msg + " `- " + response[1][1][1][0] + ":\t" + `response[1][1][1][1]` else: msg = "Status\n" diff --git a/common/version.py b/common/version.py index d6d3a207..81c1218a 100644 --- a/common/version.py +++ b/common/version.py @@ -16,12 +16,12 @@ # Author: Cyril Jaquier # -# $Revision: 543 $ +# $Revision: 561 $ __author__ = "Cyril Jaquier" -__version__ = "$Revision: 543 $" -__date__ = "$Date: 2007-02-08 22:14:01 +0100 (Thu, 08 Feb 2007) $" +__version__ = "$Revision: 561 $" +__date__ = "$Date: 2007-03-21 22:44:07 +0100 (Wed, 21 Mar 2007) $" __copyright__ = "Copyright (c) 2004 Cyril Jaquier" __license__ = "GPL" -version = "0.7.7" +version = "0.7.8" diff --git a/config/action.d/hostsdeny.conf b/config/action.d/hostsdeny.conf index 0f51f45a..72601dc3 100644 --- a/config/action.d/hostsdeny.conf +++ b/config/action.d/hostsdeny.conf @@ -2,7 +2,7 @@ # # Author: Cyril Jaquier # -# $Revision: 496 $ +# $Revision: 554 $ # [Definition] @@ -11,13 +11,13 @@ # Notes.: command executed once at the start of Fail2Ban. # Values: CMD # -actionstart = touch +actionstart = # Option: actionend # Notes.: command executed once at the end of Fail2Ban # Values: CMD # -actionstop = rm -f +actionstop = # Option: actioncheck # Notes.: command executed once before each actionban command diff --git a/config/action.d/mail-buffered.conf b/config/action.d/mail-buffered.conf new file mode 100644 index 00000000..6be60a63 --- /dev/null +++ b/config/action.d/mail-buffered.conf @@ -0,0 +1,88 @@ +# Fail2Ban configuration file +# +# Author: Cyril Jaquier +# +# $Revision: 510 $ +# + +[Definition] + +# Option: actionstart +# Notes.: command executed once at the start of Fail2Ban. +# Values: CMD +# +actionstart = echo -en "Hi,\n + The jail has been started successfuly.\n + Output will be buffered until lines are available.\n + Regards,\n + Fail2Ban"|mail -s "[Fail2Ban] : started" + +# Option: actionend +# Notes.: command executed once at the end of Fail2Ban +# Values: CMD +# +actionstop = if [ -d ]; then + echo -en "Hi,\n + These hosts have been banned by Fail2Ban.\n + `cat ` + Regards,\n + Fail2Ban"|mail -s "[Fail2Ban] : Summary" + rm + fi + echo -en "Hi,\n + The jail has been stopped.\n + Regards,\n + Fail2Ban"|mail -s "[Fail2Ban] : stopped" + +# Option: actioncheck +# Notes.: command executed once before each actionban command +# Values: CMD +# +actioncheck = + +# Option: actionban +# Notes.: command executed when banning an IP. Take care that the +# command is executed with Fail2Ban user rights. +# Tags: IP address +# number of failures +#