Skip to content

Instantly share code, notes, and snippets.

@jayswan

jayswan/aws2ipset.sh

Created Feb 19, 2016
Embed
What would you like to do?
Convert AWS IP Prefixes to SiLK IP Set
#!/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
You can’t perform that action at this time.