Creating bulk address & address groups on FortiGate Firewall

The below 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.

For Example:

Currently, you can’t define the subnet mask in binary notation, i.e.,,

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

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

I hope this program helps you to create bulk IP Addresses & Object Groups. Please consider subscibing us on Youtube.


Note: Read carefully before using this program:

1. You must need to define a new Group Name. The existing Group can create unexpected results.

2. Read the generated script carefully before implementing it on the device.

3. The subnet mask & IP Address must be in the range. As of now, we can’t provide any exceptions if the supplied information is wrong.

4. Don’t run the large scripts directly, it may consume a large amount of CPU and/or memory.

5. This program is designed with the best effort and does not provide any guarantee. We suggest you please test the scripts in your lab environment first!

Please share your valuable feedback and suggestions using Contacting Us.

Leave a Reply

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