From ec9d8d0fa4f9a039369593c9e2881a04f3d71871 Mon Sep 17 00:00:00 2001 From: Tomek Dubrownik Date: Tue, 10 Jul 2012 18:44:42 +0200 Subject: [PATCH] initial public commit --- config.py.dist | 5 +++++ fail2shame | 3 +++ fail2shame.conf | 46 ++++++++++++++++++++++++++++++++++++++++++++++ fail2shame.py | 37 +++++++++++++++++++++++++++++++++++++ fail2shame.sql | 24 ++++++++++++++++++++++++ 5 files changed, 115 insertions(+) create mode 100644 config.py.dist create mode 100755 fail2shame create mode 100644 fail2shame.conf create mode 100644 fail2shame.py create mode 100644 fail2shame.sql diff --git a/config.py.dist b/config.py.dist new file mode 100644 index 0000000..e0dd21c --- /dev/null +++ b/config.py.dist @@ -0,0 +1,5 @@ +db = 'fail2sql' +db_user = 'fail2sql' +db_pass = 'fail2pass' +db_host = 'localhost' +db_port = 8740 diff --git a/fail2shame b/fail2shame new file mode 100755 index 0000000..8a98d14 --- /dev/null +++ b/fail2shame @@ -0,0 +1,3 @@ +#!/bin/bash +F="$0" +PYTHONPATH="`readlink -f \"$0\" | xargs dirname`" python -m fail2shame $@ diff --git a/fail2shame.conf b/fail2shame.conf new file mode 100644 index 0000000..cbee358 --- /dev/null +++ b/fail2shame.conf @@ -0,0 +1,46 @@ +# Fail2Ban configuration file +# +# Author: Cyril Jaquier +# +# $Revision$ +# + +[Definition] + +# Option: actionstart +# Notes.: command executed once at the start of Fail2Ban. +# Values: CMD +# +actionstart = + +# Option: actionstop +# Notes.: command executed once at the end of Fail2Ban +# Values: CMD +# +actionstop = + +# 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 +#