Creating bulk address & address groups on FortiGate Firewall

This script is written in PHP that is used to create automatic bulk IP Addresses on the Fortinet FortiGate firewall. You just need to provide the IP Addresses, and/or IP Addresses with CIDR (Classless Inter-Domain Routing) Prefix, and enjoy the power of this script.

Examples:,,, etc.

Currently, you can’t define the subnet mask in dot-decimal notation, i.e.,,, etc.

You must need to define the Group Name and IP Addresses separately with space or anything.

We will automatically create separate address groups with 300 IP addresses in each group.

Also Check: Create bulk FQDNs on the FortiGate firewall

Please share your valuable feedback and suggestions using Contacting Us.

Support our work:

If you appreciate what we do and would like to contribute to our efforts, we kindly ask you to consider buying us a coffee. Your small donation can go a long way in helping us cover the costs of hosting, maintenance, and further development.

Please consider buying us a coffee ( or 2 ) as a token of appreciation.

Support Us

We are always thankful for your never-ending support.


  1. Thanks for creating this script, its such a time saver! Appreciate your work, have bought you and your team couple of coffee to support

    Also wanted to check if this script can be modified to create group based on FQDN? I have about 100 FQDN based objects that i need to create in fortigate, can this script be modified for that?

    Please let me know


    1. Hello Mani,

      Thank you for buying Coffee for us, and sorry for the delayed response. We will prepare and upload the script to create FQDN/WILDCARD on the Fortinet FortiGate firewall.

      Thank you 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *