Skip to content

Instantly share code, notes, and snippets.

@madssj
Created October 5, 2015 11:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save madssj/826e939718811c535863 to your computer and use it in GitHub Desktop.
Save madssj/826e939718811c535863 to your computer and use it in GitHub Desktop.
Returns the ip ranges of a given AWS service.
curl -s https://ip-ranges.amazonaws.com/ip-ranges.json|grep -B 2 CLOUDFRONT|grep -oE "\b(?:[0-9]{1,3}\.){3}[0-9]{1,3}/[0-9]{1,2}\b"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment