From e46b5f66655267545cc663a00b925d4af6ab0ffa Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Sat, 6 Aug 2005 19:43:43 +0000 Subject: [PATCH] New upstream release, removed log4py, fresh man file for conf --- CHANGELOG | 12 +- PKG-INFO | 13 +- README | 15 +- TODO | 1 - config/fail2ban.conf.default | 48 +-- config/gentoo-initd | 6 +- config/redhat-initd | 6 +- confreader/configreader.py | 16 +- debian/README.Debian | 3 - debian/changelog | 8 + debian/copyright | 23 -- debian/rules | 2 +- fail2ban | 50 +-- fail2ban.py | 178 ++++++----- firewall/firewall.py | 12 +- log4py.py | 593 ----------------------------------- logreader/logreader.py | 25 +- man/fail2ban.8 | 58 ++++ man/fail2ban.conf.5 | 20 ++ setup.py | 18 +- utils/mail.py | 12 +- utils/pidlock.py | 98 ++++++ utils/process.py | 51 +-- utils/strings.py | 12 +- version.py | 8 +- 25 files changed, 454 insertions(+), 834 deletions(-) delete mode 100644 log4py.py create mode 100644 man/fail2ban.8 create mode 100644 man/fail2ban.conf.5 create mode 100644 utils/pidlock.py diff --git a/CHANGELOG b/CHANGELOG index 46d5771d..7c477030 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -4,9 +4,19 @@ |_| \__,_|_|_/___|_.__/\__,_|_||_| ============================================================= -Fail2Ban (version 0.5.1) 2005/07/23 +Fail2Ban (version 0.5.2) 2005/08/06 ============================================================= +ver. 0.5.2 (2005/08/06) - beta +---------- +- Better PID lock file handling. Should close #1239562 +- Added man pages +- Removed log4py dependency. Use logging module instead +- "maxretry" and "bantime" can be overridden in each section +- Fixed bug #1246278 (excessive memory usage) +- Fixed crash on wrong option value in configuration file +- Changed custom chains to lowercase + ver. 0.5.1 (2005/07/23) - beta ---------- - Fixed bugs #1241756, #1239557 diff --git a/PKG-INFO b/PKG-INFO index eb119f57..35bfe63d 100644 --- a/PKG-INFO +++ b/PKG-INFO @@ -1,10 +1,15 @@ Metadata-Version: 1.0 Name: fail2ban -Version: 0.5.1 +Version: 0.5.2 Summary: Ban IPs that make too many password failure Home-page: http://fail2ban.sourceforge.net Author: Cyril Jaquier Author-email: lostcontrol@users.sourceforge.net -License: UNKNOWN -Description: UNKNOWN -Platform: UNKNOWN +License: GPL +Description: + Fail2Ban scans log files like /var/log/pwdfail or + /var/log/apache/error_log and bans IP that makes + too many password failures. It updates firewall rules + to reject the IP address or executes user defined + commands. It needs log4py. +Platform: Posix diff --git a/README b/README index b82a42c0..4997742a 100644 --- a/README +++ b/README @@ -4,14 +4,14 @@ |_| \__,_|_|_/___|_.__/\__,_|_||_| ============================================================= -Fail2Ban (version 0.5.1) 2005/07/23 +Fail2Ban (version 0.5.2) 2005/08/06 ============================================================= Fail2Ban scans log files like /var/log/pwdfail and bans IP that makes too many password failures. It updates firewall rules to reject the IP address. These rules can be defined by the user. Fail2Ban can read multiple log files such as sshd -or Apache web server ones. It needs log4py. +or Apache web server ones. This is my first Python program. Moreover, English is not my mother tongue... @@ -55,12 +55,11 @@ Installation: ------------- Require: python-2.3 (http://www.python.org) - log4py-1.3 (http://sourceforge.net/projects/log4py) To install, just do: -> tar xvfj fail2ban-0.5.1.tar.bz2 -> cd fail2ban-0.5.1 +> tar xvfj fail2ban-0.5.2.tar.bz2 +> cd fail2ban-0.5.2 > python setup.py install This will install Fail2Ban into /usr/lib/fail2ban. The fail2ban @@ -95,13 +94,13 @@ or using command line options. Command line options override the value stored in fail2ban.conf. Here are the command line options: - -b start fail2ban in background - -d start fail2ban in debug mode + -b start in background + -d start in debug mode -c read configuration file FILE -p create PID lock in FILE -h display this help message -i IP(s) to ignore - -k kill a currently running Fail2Ban instance + -k kill a currently running instance -r allow a max of VALUE password failure -t