FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
carabhavi
Staff
Staff
Article Id 198796
Description
This article explains how to create a script file to import the address objects in FortiGate and create groups.

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 -> Config -> Advanced -> Scripts -> Execute Script from -> Browse then select the file.




Contributors