Saturday, January 11, 2020

AWS IP Address Ranges



AWS used to publish there IP ranges via their website.   A useful reference point for determining origin of cloud based accounts.   This reference has now been withdrawn but thankfully they provide mechanisms for retrieving this data.

There are a number of ways to do this via scripting and APIs, and they also provide pre-built Powershell scripts.     Here are the steps to run a quick query via Powershell

Install-Module AWSPowerShell
Set-ExecutionPolicy RemoteSigned
Import-Module AWSPowerShell
Get-AWSPublicipIPAddressRange -region {name}


For example to determine the ranges used by eu-west-2 region


   IpPrefix             IpAddressFormat Region    Service           
--------             ---------------         ------    -------            
54.239.0.240/28        Ipv4               eu-west-2 AMAZON             
52.95.150.0/24          Ipv4               eu-west-2 AMAZON             
52.94.248.192/28      Ipv4               eu-west-2 AMAZON             
52.93.138.252/32      Ipv4               eu-west-2 AMAZON             
52.93.139.253/32      Ipv4               eu-west-2 AMAZON             
52.144.209.192/26    Ipv4               eu-west-2 AMAZON             
52.93.138.253/32      Ipv4               eu-west-2 AMAZON             
15.193.5.0/24            Ipv4               eu-west-2 AMAZON             
52.94.32.0/20            Ipv4               eu-west-2 AMAZON             
52.95.239.0/24          Ipv4               eu-west-2 AMAZON             
52.93.80.0/24            Ipv4               eu-west-2 AMAZON             
52.144.211.196/31    Ipv4               eu-west-2 AMAZON             
52.144.211.200/31    Ipv4               eu-west-2 AMAZON             
35.176.0.0/15            Ipv4               eu-west-2 AMAZON             
52.144.211.192/31    Ipv4               eu-west-2 AMAZON             
18.132.0.0/14            Ipv4              eu-west-2 AMAZON             
52.94.15.0/24            Ipv4              eu-west-2 AMAZON             
52.144.211.198/31    Ipv4              eu-west-2 AMAZON             
52.94.198.144/28      Ipv4              eu-west-2 AMAZON             
13.248.120.0/24        Ipv4              eu-west-2 AMAZON             
52.95.253.0/24          Ipv4             eu-west-2 AMAZON             
52.94.48.0/20            Ipv4             eu-west-2 AMAZON             
52.144.209.64/26      Ipv4             eu-west-2 AMAZON             
35.178.0.0/15            Ipv4             eu-west-2 AMAZON             
54.239.100.0/23        Ipv4             eu-west-2 AMAZON             
99.77.134.0/24          Ipv4             eu-west-2 AMAZON             
3.8.0.0/14                  Ipv4             eu-west-2 AMAZON             
52.93.139.252/32      Ipv4             eu-west-2 AMAZON             
150.222.67.0/24        Ipv4             eu-west-2 AMAZON             
52.144.211.64/26      Ipv4             eu-west-2 AMAZON             
52.95.148.0/23          Ipv4             eu-west-2 AMAZON             
52.92.88.0/22            Ipv4             eu-west-2 AMAZON             
52.94.112.0/22          Ipv4             eu-west-2 AMAZON             
150.222.207.0/24     Ipv4             eu-west-2 AMAZON             
52.144.213.64/26     Ipv4             eu-west-2 AMAZON             
52.93.56.0/24           Ipv4             eu-west-2 AMAZON             
52.144.211.202/31    Ipv4             eu-west-2 AMAZON             
18.175.0.0/16           Ipv4             eu-west-2 AMAZON             
13.248.101.0/24       Ipv4             eu-west-2 AMAZON             
150.222.134.0/24     Ipv4             eu-west-2 AMAZON             
52.144.211.194/31   Ipv4             eu-west-2 AMAZON             
99.82.169.0/24         Ipv4             eu-west-2 AMAZON             
52.56.0.0/16             Ipv4             eu-west-2 AMAZON             
52.144.211.128/26   Ipv4             eu-west-2 AMAZON             
18.130.0.0/16           Ipv4             eu-west-2 AMAZON             
52.95.150.0/24         Ipv4             eu-west-2 S3                 
52.95.148.0/23         Ipv4             eu-west-2 S3                 
52.92.88.0/22           Ipv4             eu-west-2 S3                 
52.94.15.0/24           Ipv4             eu-west-2 DYNAMODB           
52.94.248.192/28     Ipv4             eu-west-2 EC2                
15.193.5.0/24           Ipv4             eu-west-2 EC2                
52.95.239.0/24         Ipv4             eu-west-2 EC2                
35.176.0.0/15           Ipv4             eu-west-2 EC2                
18.132.0.0/14           Ipv4             eu-west-2 EC2                
52.95.253.0/24         Ipv4             eu-west-2 EC2                
35.178.0.0/15           Ipv4             eu-west-2 EC2                
99.77.134.0/24         Ipv4             eu-west-2 EC2                
3.8.0.0/14                 Ipv4             eu-west-2 EC2                
18.175.0.0/16           Ipv4             eu-west-2 EC2                
52.56.0.0/16             Ipv4             eu-west-2 EC2                
18.130.0.0/16           Ipv4             eu-west-2 EC2                
52.56.127.0/25         Ipv4             eu-west-2 CLOUDFRONT         
35.176.92.32/29      Ipv4              eu-west-2 CODEBUILD          
13.248.120.0/24      Ipv4              eu-west-2 GLOBALACC 
13.248.101.0/24      Ipv4              eu-west-2 GLOBALACC  
99.82.169.0/24        Ipv4              eu-west-2 GLOBALACC  
3.8.168.0/23            Ipv4              eu-west-2 AMAZON             
3.10.17.0/25            Ipv4              eu-west-2 API_GATEWAY        
3.9.94.0/24              Ipv4              eu-west-2 API_GATEWAY        
3.10.127.32/27        Ipv4              eu-west-2 CLOUD9             
3.10.201.64/27        Ipv4              eu-west-2 CLOUD9             

   

No comments: