From dfee717aa5d883d497a95d660cff69062a00d2e9 Mon Sep 17 00:00:00 2001 From: lostcontrol Date: Sat, 16 Oct 2004 22:18:25 +0000 Subject: [PATCH] - Configuration using /etc/fail2ban.conf git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@36 a942ae1a-1317-0410-a47c-b1dcaea8d605 --- CHANGELOG | 1 + fail2ban.py | 186 ++++++++++++++++++++++++++++++++++++++++------------ 2 files changed, 144 insertions(+), 43 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 76de70c3..fb26c30f 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -15,6 +15,7 @@ ver. 0.1.1 (??/??/????) - alpha daemon specific - Rewrite log reader to be service centered. Sshd support added. Match "Failed password" and "Illegal user" +- Add /etc/fail2ban.conf configuration support - Code documentation diff --git a/fail2ban.py b/fail2ban.py index 5e498085..9e640895 100755 --- a/fail2ban.py +++ b/fail2ban.py @@ -27,6 +27,7 @@ __copyright__ = "Copyright (c) 2004 Cyril Jaquier" __license__ = "GPL" import posix, time, sys, getopt, os, signal +from ConfigParser import * # Checks if log4py is present. try: @@ -52,6 +53,7 @@ def usage(): print " -d start fail2ban in debug mode" print " -f read password failure from FILE" print " -h display this help message" + print " -i IP(s) to ignore" print " -l log message in FILE" print " -r allow a max of VALUE password failure" print " -t