By using AWS re:Post, you agree to the Terms of Use

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?

Thanks in advance

1 Answer


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

Info Limits:

Thank You GK

answered 6 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions