Skip to content

Check if one or more IP address or CIDR block is in an AWS IP range.

Notifications You must be signed in to change notification settings

simondonohue/aws-ip-check

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

AWS IP Check

This script checks if one or more IP address or CIDR block is in an AWS IP range. It uses the AWS IP Ranges JSON file to determine the IP ranges.

Usage

python aws_ip_check.py IP [IP ...]

Arguments:

  • IP: IP address or CIDR block

Prerequisites

  • Python 3.6+

  • Install required packages:

    pip install -r requirements.txt
    

Example

python aws_ip_check.py 192.0.2.1 
[
    {
        "ip_prefix": "192.0.2.0/24",
        "region": "us-east-1",
        "service": "AMAZON"
    }
]

About

Check if one or more IP address or CIDR block is in an AWS IP range.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages