Skip to content

Instantly share code, notes, and snippets.

@IrcDirk
Forked from Nilpo/allow
Created February 1, 2022 09:24
Show Gist options
  • Save IrcDirk/0be85ab29001371fe3db32e5d1acf1f1 to your computer and use it in GitHub Desktop.
Save IrcDirk/0be85ab29001371fe3db32e5d1acf1f1 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment