Advertisement
aka144

cloudflare-blacklist.conf

May 5th, 2015
289
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. # Fail2Ban configuration file
  2. #
  3. # Author: Norman Yee
  4. #
  5. # $Revision$
  6. #
  7.  
  8. [Definition]
  9.  
  10. # Option: actionstart
  11. # Notes.: command executed once at the start of Fail2Ban.
  12. # Values: CMD
  13. #
  14. actionstart =
  15.  
  16. # Option: actionstop
  17. # Notes.: command executed once at the end of Fail2Ban
  18. # Values: CMD
  19. #
  20. actionstop =
  21.  
  22. # Option: actioncheck
  23. # Notes.: command executed once before each actionban command
  24. # Values: CMD
  25. #
  26. actioncheck =
  27.  
  28. # Option: actionban
  29. # Notes.: command executed when banning an IP. Take care that the
  30. # command is executed with Fail2Ban user rights.
  31. # Tags: <ip> IP address
  32. # <failures> number of failures
  33. # <time> unix timestamp of the ban time
  34. # Values: CMD
  35. #
  36. actionban = curl -s "https://www.cloudflare.com/api.html?a=ban&key=<ip>&u=CLOUDFLARE_LOGIN&tkn=CLOUDFLARE_API_TOKEN"
  37.  
  38. # Option: actionunban
  39. # Notes.: command executed when unbanning an IP. Take care that the
  40. # command is executed with Fail2Ban user rights.
  41. # Tags: &lt;ip&gt; IP address
  42. # &lt;failures&gt; number of failures
  43. # &lt;time&gt; unix timestamp of the ban time
  44. # Values: CMD
  45. #
  46. actionban = curl -s "https://www.cloudflare.com/api.html?a=nul&key=<ip>&u=CLOUDFLARE_LOGIN&tkn=CLOUDFLARE_API_TOKEN"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement