cut comment to limit documented on abuseipdb, additionally use curl in quiet mode

pull/2302/head^2
Sergey G. Brester 2018-12-27 19:52:05 +01:00 committed by sebres
parent 7b73cb7639
commit 7dbd3a07eb
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ actioncheck =
# Tags: See jail.conf(5) man page
# Values: CMD
#
actionban = lgm=$(printf '%%s\n...' "<matches>"); curl --fail "https://api.abuseipdb.com/api/v2/report" -H "Accept: application/json" -H "Key: <abuseipdb_apikey>" --data-urlencode "comment=$lgm" --data-urlencode "ip=<ip>" --data "categories=<abuseipdb_category>"
actionban = lgm=$(printf '%%.1000s\n...' "<matches>"); curl -sSf "https://api.abuseipdb.com/api/v2/report" -H "Accept: application/json" -H "Key: <abuseipdb_apikey>" --data-urlencode "comment=$lgm" --data-urlencode "ip=<ip>" --data "categories=<abuseipdb_category>"
# Option: actionunban
# Notes.: command executed when unbanning an IP. Take care that the