2 Answers
- Newest
- Most votes
- Most comments
6
Yes by below:
- Use AWS IP Range Metadata AWS publishes all public IP ranges in ip-ranges.json. You can filter this file by: • Region: us-east-1, eu-central-1 • Service: EC2, S3, CLOUDFRONT, etc. Tools like jq (Linux/macOS) or Get-AWSPublicIpAddressRange (PowerShell) can help you extract just the relevant CIDRs.
- Pinpoint Your Actual Public IPs If your services are behind Elastic IPs or NAT Gateways: • Use the AWS Console or CLI to list the Elastic IPs or NAT Gateway IPs assigned to your services. • These are the actual public IPs your services use, far fewer than the full region range.
- Reverse Lookup Once you have the public IPs: • Use tools like QueryAWS.net to find which CIDR block each IP belongs to. • This lets you extract only the specific CIDRs needed for your routing table.
Relevant content
- AWS OFFICIALUpdated 4 years ago
