commit ec9d8d0fa4f9a039369593c9e2881a04f3d71871 Author: Tomek Dubrownik Date: Tue Jul 10 18:44:42 2012 +0200 initial public commit 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 +#