Updated comments

pull/766/head
leftyfb 2014-07-17 23:49:35 -04:00
parent 5471e99ebe
commit cba570cabd
1 changed files with 9 additions and 7 deletions

View File

@ -1,7 +1,9 @@
# #
# Author: Mike Rushton # Author: Mike Rushton
# #
# $Revision$ # Referenced from 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/my-account
# #
[Definition] [Definition]
@ -27,18 +29,18 @@ actioncheck =
# Option: actionban # Option: actionban
# Notes.: command executed when banning an IP. Take care that the # Notes.: command executed when banning an IP. Take care that the
# command is executed with Fail2Ban user rights. # command is executed with Fail2Ban user rights.
# Tags: &lt;ip&gt; IP address # Tags: <ip> IP address
# &lt;failures&gt; number of failures # <failures> number of failures
# &lt;time&gt; unix timestamp of the ban time # <time> unix timestamp of the ban time
# Values: CMD # Values: CMD
# #
actionban = curl -s "https://www.cloudflare.com/api.html?a=ban&key=<ip>&u=<cfuser>&tkn=<cftoken>" actionban = curl -s "https://www.cloudflare.com/api.html?a=ban&key=<ip>&u=<cfuser>&tkn=<cftoken>"
# Option: actionunban # Option: actionunban
# Notes.: command executed when unbanning an IP. Take care that the # Notes.: command executed when unbanning an IP. Take care that the
# command is executed with Fail2Ban user rights. # command is executed with Fail2Ban user rights.
# Tags: &lt;ip&gt; IP address # Tags: <ip> IP address
# &lt;failures&gt; number of failures # <failures> number of failures
# &lt;time&gt; unix timestamp of the ban time # <time> unix timestamp of the ban time
# Values: CMD # Values: CMD
# #
actionunban = curl -s "https://www.cloudflare.com/api.html?a=nul&key=<ip>&u=<cfuser>&tkn=<cftoken>" actionunban = curl -s "https://www.cloudflare.com/api.html?a=nul&key=<ip>&u=<cfuser>&tkn=<cftoken>"