diff options
| author | sebres <serg.brester@sebres.de> | 2017-01-16 09:40:48 +0100 |
|---|---|---|
| committer | sebres <serg.brester@sebres.de> | 2017-01-16 09:40:48 +0100 |
| commit | 74a6afadd565b679f73b88a6ebf81a358c0ee155 (patch) | |
| tree | 3c94885fb7c92f3b2b2d19ebf5f19455dec79d90 /config/action.d/xarf-login-attack.conf | |
| parent | 8b82c6669e5d33fc41c72e59e7352f199e74c8bf (diff) | |
| download | fail2ban-74a6afadd565b679f73b88a6ebf81a358c0ee155.tar.gz | |
Mail-actions switched to use new option "norestored" instead of checking of variable `restored` during shell execution (prevents executing of such actions at all).
Diffstat (limited to 'config/action.d/xarf-login-attack.conf')
| -rw-r--r-- | config/action.d/xarf-login-attack.conf | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/config/action.d/xarf-login-attack.conf b/config/action.d/xarf-login-attack.conf index 13a5b70c..5274cdaf 100644 --- a/config/action.d/xarf-login-attack.conf +++ b/config/action.d/xarf-login-attack.conf @@ -30,20 +30,18 @@ # # -[INCLUDES] - -before = helpers-common.conf - [Definition] +# bypass ban/unban for restored tickets +norestored = 1 + actionstart = actionstop = actioncheck = -actionban = %(_bypass_if_restored)s - oifs=${IFS}; IFS=.;SEP_IP=( <ip> ); set -- ${SEP_IP}; ADDRESSES=$(dig +short -t txt -q $4.$3.$2.$1.abuse-contacts.abusix.org); IFS=${oifs} +actionban = oifs=${IFS}; IFS=.;SEP_IP=( <ip> ); set -- ${SEP_IP}; ADDRESSES=$(dig +short -t txt -q $4.$3.$2.$1.abuse-contacts.abusix.org); IFS=${oifs} IP=<ip> FROM=<sender> SERVICE=<service> |
