Skip to content

k0nsl/flarewall

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

About Flarewall

This script bridges the gap between CSF's IP temporary & permanent banning abilities and Cloudflare's IP blocking service. As CSF bans IP addresses, this script will send those IP addresses to Cloudflare for blocking. Similarly, as CSF removes temporary IP bans, this script will remove the offending IP addresses from Cloudflare's blocked list. Flarewall has been successfully tested on CentOS 6.5 x86_64, CloudLinux 6.7 x86_64 and Debian 8.

Installation

Install mod_cloudflare and CSF.

  • Download the script to your local machine.
  • Open the script in a text editor such as Notepad++.
  • Select all (CTRL+A) of the text and copy (CTRL+C) it to your clipboard.
  • On your remote server, create a new file ( root@server [/] vi flarewall.sh ).
  • Run the script (root@server [/] sh flarewall.sh).
  • Re-run the script if API or email values were entered incorrectly during setup.
  • Note: The uid:gid used in CSF must match the uid:gid for the *_REPORT scripts.
  • Restart csf (i.e: csf -r) and lfd (service lfd restart) for changes to take effect.

About

Automatically update banned IP list in Cloudflare from CSF

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages