https://github.com/scottdware/cloudip
Program to fetch public IP ranges of AWS, Azure and Google
https://github.com/scottdware/cloudip
Last synced: 5 months ago
JSON representation
Program to fetch public IP ranges of AWS, Azure and Google
- Host: GitHub
- URL: https://github.com/scottdware/cloudip
- Owner: scottdware
- License: apache-2.0
- Created: 2022-02-01T16:46:33.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-02-26T16:20:06.000Z (over 2 years ago)
- Last Synced: 2024-06-20T14:26:25.318Z (almost 2 years ago)
- Language: Go
- Size: 80.1 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## cloudip
This program will retrieve a list of all public IP address ranges (v4 or v6) for the three major cloud vendors:
Amazon AWS (aws), Microsoft Azure (azure) and Google (google)
Flags:
For the --vendor (-v) flag, you must specify one of these options: aws | azure | google
For the --iptype (-i) flag, you must specify either: 4 or 6
By default, the ranges are printed to the console/screen. If you would like to save them in a file, the
output format is CSV, and you can use the "--file" (-f) flag to specify a file name.
```
Usage:
cloudip [flags]
Flags:
-f, --file string CSV filename to save the output to
-h, --help help for cloudip
-i, --iptype int IP Type to export - 4|6 (default 4)
-v, --vendor string Cloud vendor to export IP's from - aws|azure|google
```
### Installation
The easiest way to run this program is to download the binary for your OS of choice from the [Releases](https://github.com/scottdware/cloudip/releases/latest) section.
You can optionally choose to clone this repo and run the script as follows (must have Golang installed):
`go run main.go --vendor aws --iptype 4 --file AWS_IP_Ranges.csv`