Created
November 19, 2021 21:35
-
-
Save Rmlyy/195130ab2ee9cc261a0591a23b8d8514 to your computer and use it in GitHub Desktop.
Allow connections on port 80 from Cloudflare
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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