Skip to content

Instantly share code, notes, and snippets.

@Rmlyy
Created November 19, 2021 21:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Rmlyy/195130ab2ee9cc261a0591a23b8d8514 to your computer and use it in GitHub Desktop.
Save Rmlyy/195130ab2ee9cc261a0591a23b8d8514 to your computer and use it in GitHub Desktop.
Allow connections on port 80 from Cloudflare
#!/bin/sh
for ip in $(curl -s https://www.cloudflare.com/ips-v4)
do
sudo ufw allow from $ip to any port 80 proto tcp
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment