Add Cloudflare IP Range to the Security Group
Hi AWS family,
I would like my EC2 instance's ports 21, 22, 80, 443, 3306, 8443, 8447 and 8880 to be accessed only from the Cloudflare IP addresses, which can be found at below link. To do this, I need to add the following IP addresses to the security group on separate lines for each port. Due to many ports and IP addresses, I reached the maximum 60 security group rule limit. Is there an easier way I can do this?
https://www.cloudflare.com/ips/
Thanks in advance
Hello
You can create multiple security groups and attach SG to the Ec2 instance, If you would like to increase the quota you request AWS support https://aws.amazon.com/premiumsupport/knowledge-center/increase-security-group-rule-limit/
Info Limits: https://docs.aws.amazon.com/vpc/latest/userguide/amazon-vpc-limits.html#vpc-limits-security-groups
Thank You GK
Relevant questions
A Record (Cloudflare) pointing to EC2 instance not reachable
asked a month ago504 error when Cloudfront send https-only request to ALB with specific security group
asked 5 months agoVMware Cloud on AWS and AWS External IP range for firewall access
Accepted Answerasked 2 years agoAdd Cloudflare IP Range to the Security Group
asked 2 months agoMy ip address for ec2 instance and vmware esxi cannot be reached?
asked 2 months agoMy Network Load Balancer is not enforcing the target Security group
asked 3 years agoOutbound Ports 80 and 443 being blocked from instance
asked 4 months agoit cannot be accessed through port 80 or 443 of the public IP, but it can be accessed normally through the private IP.
asked 4 months agoServer ports 80 and/or 443 are not publicly accessible
asked 2 months agoUnable to connect on port 443
Accepted Answerasked 3 months ago