April 25, 2024, 2:50 p.m. | Alexander Adamski

System Weakness - Medium systemweakness.com

Limit Requests to EC2 Instances to Cloudflare IP Ranges

To enhance the security of EC2 instances developers may wish to limit the access to their servers to Cloudflare IP ranges only.

In this guide, we will set up an AWS Lambda function, that automatically updates a security group to whitelist every Cloudflare IP on Port 80 and 443.

First, create a new security group on EC2. Add a name and delete the default rule:

Create the group and take note …

aws aws lambda cloudflare security vps

Information Security Engineers

@ D. E. Shaw Research | New York City

Technology Security Analyst

@ Halton Region | Oakville, Ontario, Canada

Senior Cyber Security Analyst

@ Valley Water | San Jose, CA

COMM Penetration Tester (PenTest-2), Chantilly, VA OS&CI Job #368

@ Allen Integrated Solutions | Chantilly, Virginia, United States

Consultant Sécurité SI H/F Gouvernance - Risques - Conformité

@ Hifield | Sèvres, France

Infrastructure Consultant

@ Telefonica Tech | Belfast, United Kingdom