mirror of https://github.com/fail2ban/fail2ban
Updated comments
parent
5471e99ebe
commit
cba570cabd
|
@ -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: <ip> IP address
|
# Tags: <ip> IP address
|
||||||
# <failures> number of failures
|
# <failures> number of failures
|
||||||
# <time> 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: <ip> IP address
|
# Tags: <ip> IP address
|
||||||
# <failures> number of failures
|
# <failures> number of failures
|
||||||
# <time> 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>"
|
||||||
|
|
Loading…
Reference in New Issue