A nodejs script to transform AWS & Google IP ranges in PFSense format.
This script use https://ip-ranges.amazonaws.com/ip-ranges.json to grab AWS ip ranges (as stated by the official AWS documention)
This script use https://support.google.com/a/answer/60764?hl=fr to grab Google ip ranges.
See https://doc.pfsense.org/index.php/Aliases#URL_Table_Aliases for PFSense Help.
Usage
node generate.js
Build
npm install
Run in docker
in order to skip nodejs install on your machine
docker build . -t ip-range-to-aws
docker run -p 9615:9615 --rm --name ip-range-to-aws ip-range-to-aws
then open
http://localhost:9615