Skip to content

Instantly share code, notes, and snippets.

View rycasestorable's full-sized avatar
💭
I may be slow to respond.

Ryan Case rycasestorable

💭
I may be slow to respond.
View GitHub Profile
@dduvnjak
dduvnjak / add_cloudflare_ips.sh
Last active June 26, 2024 07:47
Add CloudFlare IP addresses to an EC2 Security Group using awscli
# first we download the list of IP ranges from CloudFlare
wget https://www.cloudflare.com/ips-v4
# set the security group ID
SG_ID="sg-00000000000000"
# iterate over the IP ranges in the downloaded file
# and allow access to ports 80 and 443
while read p
do