commit 4dbdf09dc98cb3bd624741a14713feceee4006b5 Author: Christoph Date: Mon Nov 27 04:23:54 2017 +0100 Initial commit diff --git a/0.10.2/README.install b/0.10.2/README.install new file mode 100644 index 0000000..95e436e --- /dev/null +++ b/0.10.2/README.install @@ -0,0 +1,7 @@ + +echo "deb tor+http://ncomputers.org/debian stretch main" > /etc/apt/sources.list.d/ncomputers.org-stretch.list +echo "deb http://ncomputers.org/debian stretch main" > /etc/apt/sources.list.d/ncomputers.org-stretch.list +apt-get update +apt-get install ncomputers.org-keyring +apt-get update + diff --git a/0.10.2/action.d/helpers-common.conf b/0.10.2/action.d/helpers-common.conf new file mode 100644 index 0000000..b036f68 --- /dev/null +++ b/0.10.2/action.d/helpers-common.conf @@ -0,0 +1,16 @@ +[DEFAULT] + +# Usage: +# _grep_logs_args = 'test' +# (printf %%b "Log-excerpt contains 'test':\n"; %(_grep_logs)s; printf %%b "Log-excerpt contains 'test':\n") | mail ... +# +_grep_logs = logpath=""; grep -E %(_grep_logs_args)s $logpath | +_grep_logs_args = "(^|[^0-9a-fA-F:])$(echo '' | sed 's/\./\\./g')([^0-9a-fA-F:]|$)" + +# Used for actions, that should not by executed if ticket was restored: +_bypass_if_restored = if [ '' = '1' ]; then exit 0; fi; + +[Init] +greplimit = tail -n +grepmax = 1000 +grepopts = -m diff --git a/0.10.2/action.d/iptables-multiport.local b/0.10.2/action.d/iptables-multiport.local new file mode 100644 index 0000000..a7a1c6c --- /dev/null +++ b/0.10.2/action.d/iptables-multiport.local @@ -0,0 +1,27 @@ +# Fail2Ban configuration file +# +# Author: Cyril Jaquier +# Modified by Yaroslav Halchenko for multiport banning +# + +[Definition] + +# Option: actionstart +# Notes.: command executed once at the start of Fail2Ban. +# Values: CMD +# +actionstart = -N f2b- + -A f2b- -j + -I -p -m multiport --dports -j f2b- + +# Option: actionstop +# Notes.: command executed once at the end of Fail2Ban +# Values: CMD +# +actionstop = -D -p -m multiport --dports -j f2b- + + -X f2b- + +[Init] + +ip64tables = ip64tables diff --git a/0.10.2/action.d/sendmail-ban-unban.local b/0.10.2/action.d/sendmail-ban-unban.local new file mode 100644 index 0000000..22421ce --- /dev/null +++ b/0.10.2/action.d/sendmail-ban-unban.local @@ -0,0 +1,70 @@ +# Fail2Ban configuration file +# +# Author: Cyril Jaquier +# +# $Revision$ +# +[INCLUDES] + + + +[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 +#