diff --git a/ChangeLog b/ChangeLog index 6b5c9864..613c05a6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,11 +4,20 @@ |_| \__,_|_|_/___|_.__/\__,_|_||_| ================================================================================ -Fail2Ban (version 0.8.4) 2009/02/?? +Fail2Ban (version 0.8.4) 2009/09/07 ================================================================================ -ver. 0.8.4 (2009/??/??) - stable +ver. 0.8.4 (2009/09/07) - stable ---------- +- Check the inode number for rotation in addition to checking the first line of + the file. Thanks to Jonathan Kamens. Red Hat #503852. Tracker #2800279. +- Moved the shutdown of the logging subsystem out of Server.quit() to + the end of Server.start(). Fixes the 'cannot release un-acquired lock' + error. +- Added "Ban IP" command. Thanks to Arturo 'Buanzo' Busleiman. +- Added two new filters: lighttpd-fastcgi and php-url-fopen. +- Fixed the 'unexpected communication error' problem by means of + use_poll=False in Python >= 2.6. - Merged patches from Debian package. Thanks to Yaroslav Halchenko. - Use current day and month instead of Jan 1st if both are not available in the log. Thanks to Andreas Itzchak Rehberg. diff --git a/PKG-INFO b/PKG-INFO index 4a30de06..94774a40 100644 --- a/PKG-INFO +++ b/PKG-INFO @@ -1,6 +1,6 @@ Metadata-Version: 1.0 Name: fail2ban -Version: 0.8.3 +Version: 0.8.4 Summary: Ban IPs that make too many password failure Home-page: http://www.fail2ban.org Author: Cyril Jaquier diff --git a/README b/README index 7f147670..9005158e 100644 --- a/README +++ b/README @@ -4,7 +4,7 @@ |_| \__,_|_|_/___|_.__/\__,_|_||_| ================================================================================ -Fail2Ban (version 0.8.4) 2009/??/?? +Fail2Ban (version 0.8.4) 2009/09/07 ================================================================================ Fail2Ban scans log files like /var/log/pwdfail and bans IP that makes too many @@ -71,7 +71,8 @@ Munger, Christoph Haas, Justin Shore, Joël Bertrand, René Berber, mEDI, Axel Thimm, Eric Gerbier, Christian Rauch, Michael C. Haller, Jonathan Underwood, Hanno 'Rince' Wagner, Daniel B. Cid, David Nutter, Raphaël Marichez, Guillaume Delvit, Vaclav Misek, Adrien Clerc, Michael Hanselmann, Vincent Deffontaines, -Bill Heaton, Russell Odom, Christos Psonis and many others. +Bill Heaton, Russell Odom, Christos Psonis, Arturo 'Buanzo' Busleiman and many +others. License: -------- diff --git a/TODO b/TODO index 4737c79a..9332c7da 100644 --- a/TODO +++ b/TODO @@ -4,7 +4,7 @@ |_| \__,_|_|_/___|_.__/\__,_|_||_| ================================================================================ -ToDo $Revision$ +ToDo $Revision: 732 $ ================================================================================ Legend: diff --git a/client/filterreader.py b/client/filterreader.py index 583adb46..bbf1e38a 100644 --- a/client/filterreader.py +++ b/client/filterreader.py @@ -16,11 +16,11 @@ # Author: Cyril Jaquier # -# $Revision: 505 $ +# $Revision: 711 $ __author__ = "Cyril Jaquier" -__version__ = "$Revision: 505 $" -__date__ = "$Date: 2006-12-24 00:20:16 +0100 (Sun, 24 Dec 2006) $" +__version__ = "$Revision: 711 $" +__date__ = "$Date: 2008-08-13 00:05:13 +0200 (Wed, 13 Aug 2008) $" __copyright__ = "Copyright (c) 2004 Cyril Jaquier" __license__ = "GPL" diff --git a/common/helpers.py b/common/helpers.py new file mode 100644 index 00000000..a2350091 --- /dev/null +++ b/common/helpers.py @@ -0,0 +1,38 @@ +# This file is part of Fail2Ban. +# +# Fail2Ban is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# Fail2Ban is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Fail2Ban; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +# Author: Cyril Jaquier +# Author: Arturo 'Buanzo' Busleiman +# +# $Revision: 741 $ + +__author__ = "Cyril Jaquier" +__version__ = "$Revision: 741 $" +__date__ = "$Date: 2009-08-30 16:13:04 +0200 (Sun, 30 Aug 2009) $" +__copyright__ = "Copyright (c) 2009 Cyril Jaquier" +__license__ = "GPL" + + +def formatExceptionInfo(): + """ Author: Arturo 'Buanzo' Busleiman """ + import sys + cla, exc = sys.exc_info()[:2] + excName = cla.__name__ + try: + excArgs = exc.__dict__["args"] + except KeyError: + excArgs = str(exc) + return (excName, excArgs) diff --git a/common/protocol.py b/common/protocol.py index 7d4a9fdf..46e0b25f 100644 --- a/common/protocol.py +++ b/common/protocol.py @@ -16,11 +16,11 @@ # Author: Cyril Jaquier # -# $Revision: 662 $ +# $Revision: 751 $ __author__ = "Cyril Jaquier" -__version__ = "$Revision: 662 $" -__date__ = "$Date: 2008-03-05 00:41:58 +0100 (Wed, 05 Mar 2008) $" +__version__ = "$Revision: 751 $" +__date__ = "$Date: 2009-09-01 22:25:32 +0200 (Tue, 01 Sep 2009) $" __copyright__ = "Copyright (c) 2004 Cyril Jaquier" __license__ = "GPL" @@ -52,13 +52,14 @@ protocol = [ ["set addignoreip ", "adds to the ignore list of "], ["set delignoreip ", "removes from the ignore list of "], ["set addlogpath ", "adds to the monitoring list of "], -["set dellogpath ", "removes to the monitoring list of "], +["set dellogpath ", "removes from the monitoring list of "], ["set addfailregex ", "adds the regular expression which must match failures for "], ["set delfailregex ", "removes the regular expression at for failregex"], ["set addignoreregex ", "adds the regular expression which should match pattern to exclude for "], ["set delignoreregex ", "removes the regular expression at for ignoreregex"], ["set findtime