Sign inSign up

metcalfc/check_aws

By metcalfc

•Updated almost 11 years ago

Check a list of IPs for AWS addresses

Image
0

405

metcalfc/check_aws repository overview

⁠Check for an AWS IP

Have an ip address? Want to know if it belongs to one of the AWS ranges? This is the utility for you!

⁠Installation

There is no install. There is a Docker image you can use!

⁠Usage

$ echo 1.1.1.1 | docker run -i --rm metcalfc/check_aws
Found 1 unique addresses
Found 0 AWS addresses

What if you want to know what IPs are AWS or what IPs aren't? There are a couple command line arguments for you.

Usage: check_aws.rb [options]
    -a, --aws                        Print IPs in AWS ranges
    -n, --non-aws                    Print IPs not in AWS ranges
    -h

One address per line and passed in on stdin.

$ echo "1.1.1.1\n2.2.2.2\n" | docker run -i --rm metcalfc/check_aws -n
Found 2 unique addresses
NOT found in an AWS range: 1.1.1.1
NOT found in an AWS range: 2.2.2.2
Found 0 AWS addresses

Lots of information is available if AWS addresses are found.

$ echo 50.19.0.1 | docker run -i --rm metcalfc/check_aws -a
Found 1 unique addresses
50.19.0.1 found in AWS range 50.19.0.0/16, region us-east-1, service AMAZON
Found 1 AWS addresses
Found the following regions:
  us-east-1
Found the following ranges:
  50.19.0.0/16
alias check-aws='docker run -i --rm metcalfc/check_aws'

Tag summary

Content type

Image

Digest

sha256:67f542cf6…

Size

311.6 MB

Last updated

almost 11 years ago

docker pull metcalfc/check_aws