Description
This article explains how to create a script file to import the address objects in FortiGate and create groups.
Scope
FortiGate.
Solution
By using bulk command option, the address objects can be imported to a group, the same can be done under System -> Config -> Advanced -> Scripts -> Execute Script from
Imported file should have a correct syntax when uploading.
When a script file is imported, the configuration should match the correct syntax, for example by importing a firewall address objects as below:
config firewall address
edit 1.1.1.1
set subnet 1.1.1.1/32
next
edit 1.1.1.2
set subnet 1.1.1.2/32
next
end
config firewall addrgrp
edit test-grp
set member 1.1.1.1 1.1.1.2
next
end
Save the file with the extension .txt and import it under System -> Advanced -> Configuration Scripts -> Upload and run a new script -> Browse then select the file.
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.