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.
Anonymous
Not applicable
Article Id 202273
Description This article describes how to import a huge IPv4 addresses to the firewall.
Scope FortiGate.
Solution

To import multiple IPv4 addresses, it is possible to use the script, which is already explained in this article: Technical Tip: Importing address objects and creating groups using scripts.

However, there is also another option, where it is possible to keep the IPv4 address object in the notepad file and directly copy-paste to the CLI.

Example:

If there are 5 addresses with 1.1.1.1 , 2.2.2.2 , 3.3.3.3 , 4.4.4.4 , 5.5.5.5.


config firewall address
    edit 1
        set subnet 1.1.1.1/32
    next
    edit 2
        set subnet 2.2.2.2/32
    next
    edit 3
        set subnet 3.3.3.3/32
    next
    edit 4
        set subnet 4.4.4.4/32
    next
    edit 5
        set subnet 5.5.5.5/32
    end

 

And after creating, it is possible to copy and paste it to the CLI.

 

Related article:

Technical Tip: Creation and addition of bulk IP address objects

Contributors