diff --git a/config/action.d/complain.conf b/config/action.d/complain.conf index d0156a44..84dbaf39 100644 --- a/config/action.d/complain.conf +++ b/config/action.d/complain.conf @@ -34,6 +34,9 @@ before = helpers-common.conf [Definition] +# bypass ban/unban for restored tickets +norestored = 1 + # Option: actionstart # Notes.: command executed once at the start of Fail2Ban. # Values: CMD @@ -58,8 +61,7 @@ actioncheck = # Tags: See jail.conf(5) man page # Values: CMD # -actionban = %(_bypass_if_restored)s - oifs=${IFS}; +actionban = oifs=${IFS}; IFS=.; SEP_IP=( ); set -- ${SEP_IP}; ADDRESSES=$(dig +short -t txt -q $4.$3.$2.$1.abuse-contacts.abusix.org); IFS=,; ADDRESSES=$(echo $ADDRESSES) IFS=${oifs} diff --git a/config/action.d/dshield.conf b/config/action.d/dshield.conf index 35eaa3be..4f2e09ca 100644 --- a/config/action.d/dshield.conf +++ b/config/action.d/dshield.conf @@ -26,12 +26,11 @@ # configure how often the buffer is flushed). # -[INCLUDES] - -before = helpers-common.conf - [Definition] +# bypass ban/unban for restored tickets +norestored = 1 + # Option: actionstart # Notes.: command executed once at the start of Fail2Ban. # Values: CMD @@ -68,8 +67,7 @@ actioncheck = # few seconds out, are incorrect. See # http://sourceforge.net/tracker/index.php?func=detail&aid=2017795&group_id=121032&atid=689047 # -actionban = %(_bypass_if_restored)s - TZONE=`date +%%z | sed 's/\([+-]..\)\(..\)/\1:\2/'` +actionban = TZONE=`date +%%z | sed 's/\([+-]..\)\(..\)/\1:\2/'` DATETIME="`perl -e '@t=localtime(