Created
February 19, 2016 17:08
-
-
Save jayswan/5bd056291aa549fe0e11 to your computer and use it in GitHub Desktop.
Convert AWS IP Prefixes to SiLK IP Set
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
curl -s https://ip-ranges.amazonaws.com/ip-ranges.json | \ | |
jq --raw-output '.prefixes | map(.ip_prefix) | .[]' > prefixes.txt | |
rwsetbuild prefixes.txt aws.ipset |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment