|
|
|
@ -83,13 +83,10 @@ actioncheck =
|
|
|
|
|
# wherever you install the helper script. For the PHP helper script, see
|
|
|
|
|
# <https://wiki.shaunc.com/wikka.php?wakka=ReportingToAbuseIPDBWithFail2Ban>
|
|
|
|
|
#
|
|
|
|
|
# --ciphers ecdhe_ecdsa_aes_256_sha is used to workaround a
|
|
|
|
|
# "NSS error -12286" from curl as it attempts to connect using
|
|
|
|
|
# SSLv3. See https://www.centos.org/forums/viewtopic.php?t=52732
|
|
|
|
|
# Tags: See jail.conf(5) man page
|
|
|
|
|
# Values: CMD
|
|
|
|
|
#
|
|
|
|
|
actionban = lgm=$(printf '%%s\n...' "<matches>"); curl --fail --tlsv1.1 --data "key=<abuseipdb_apikey>" --data-urlencode "comment=$lgm" --data "ip=<ip>" --data "category=<abuseipdb_category>" "https://www.abuseipdb.com/report/json"
|
|
|
|
|
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
|
|
|
|
|