ENH: blocklist.de action added fail2ban version as user agent

pull/477/head
Steven Hiscocks 2013-12-05 18:12:15 +00:00
parent f742ed0e4b
commit a19b33cc72
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ actioncheck =
# Tags: See jail.conf(5) man page
# Values: CMD
#
actionban = ! curl --data-urlencode 'server=<email>' --data 'apikey=<apikey>' --data 'service=<service>' --data 'ip=<ip>' --data-urlencode 'logs=<matches>' --data 'format=text' "https://www.blocklist.de/en/httpreports.html" | grep "status: error"
actionban = ! curl --data-urlencode 'server=<email>' --data 'apikey=<apikey>' --data 'service=<service>' --data 'ip=<ip>' --data-urlencode 'logs=<matches>' --data 'format=text' --user-agent "`fail2ban-client --version | head -1`" "https://www.blocklist.de/en/httpreports.html" | grep "status: error"
# Option: actionunban
# Notes.: command executed when unbanning an IP. Take care that the