|
|
@ -9,15 +9,6 @@
|
|
|
|
# Referenced from http://www.normyee.net/blog/2012/02/02/adding-cloudflare-support-to-fail2ban by NORM YEE
|
|
|
|
# Referenced from http://www.normyee.net/blog/2012/02/02/adding-cloudflare-support-to-fail2ban by NORM YEE
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# To get your CloudFlare API Key: https://www.cloudflare.com/a/account/my-account
|
|
|
|
# To get your CloudFlare API Key: https://www.cloudflare.com/a/account/my-account
|
|
|
|
#
|
|
|
|
|
|
|
|
# This action needs to be set up in jail.local
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
# action = %(action_cf_mwl)s
|
|
|
|
|
|
|
|
# # Your CF account e-mail
|
|
|
|
|
|
|
|
# cfemail =
|
|
|
|
|
|
|
|
# # Your CF API Key
|
|
|
|
|
|
|
|
# cfapikey =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Definition]
|
|
|
|
[Definition]
|
|
|
|
|
|
|
|
|
|
|
@ -60,3 +51,15 @@ actionban = curl -s -o /dev/null https://www.cloudflare.com/api_json.html -d 'a=
|
|
|
|
actionunban = curl -s -o /dev/null https://www.cloudflare.com/api_json.html -d 'a=nul' -d 'tkn=<cftoken>' -d 'email=<cfuser>' -d 'key=<ip>'
|
|
|
|
actionunban = curl -s -o /dev/null https://www.cloudflare.com/api_json.html -d 'a=nul' -d 'tkn=<cftoken>' -d 'email=<cfuser>' -d 'key=<ip>'
|
|
|
|
|
|
|
|
|
|
|
|
[Init]
|
|
|
|
[Init]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# This action needs to be set up in jail.local or in jail.d/somefile.conf
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
# action = %(action_cf_mwl)s
|
|
|
|
|
|
|
|
# # Your CF account e-mail
|
|
|
|
|
|
|
|
# cfemail =
|
|
|
|
|
|
|
|
# # Your CF API Key
|
|
|
|
|
|
|
|
# cfapikey =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cftoken =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cfuser =
|
|
|
|