Skip to content

Instantly share code, notes, and snippets.

@Mteigers
Created May 21, 2013 23:54
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save Mteigers/5624248 to your computer and use it in GitHub Desktop.
Save Mteigers/5624248 to your computer and use it in GitHub Desktop.
CSF Allow AND Ignore Cloudflare IPv4 IP's.
for i in `curl https://www.cloudflare.com/ips-v4`; do csf -a $i; done
for i in `curl https://www.cloudflare.com/ips-v4`; do echo $i >> /etc/csf/csf.ignore; done
@Mteigers
Copy link
Author

Don't forget to run csf -r after running that command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment