Skip to content

Instantly share code, notes, and snippets.

View keanu-001's full-sized avatar
🧙‍♀️

Keanu Dirkse keanu-001

🧙‍♀️
  • Rentoza
  • Cape Town
View GitHub Profile
@keanu-001
keanu-001 / add_cloudflare_ips.sh
Last active August 30, 2022 12:56 — forked from dduvnjak/add_cloudflare_ips.sh
Add CloudFlare IPv4 and IPv6 addresses to an EC2 Security Group using awscli
#!/bin/bash
wget https://www.cloudflare.com/ips-v4
wget https://www.cloudflare.com/ips-v6
# set the security group ID
SG_ID="sg-000000000"
# iterate over the IP ranges in the downloaded file
# and allow access to ports 80 and 443