Skip to main content
ssanga
Staff & Editor
Staff & Editor
Jan 6, 2025 8:56 AM UTC

Technical Tip: Prefix List Defaults to 0.0.0.0 0.0.0.0 When Configured with Invalid Format in the Prefix Field on FortiGate GUI

Description

This article describes an issue where the prefix list defaults to 0.0.0.0 0.0.0.0 without displaying any warning or error when an invalid prefix format, such as <x.x.x.x/y.y.y.y>, is entered in the prefix field instead of the formats <x.x.x.x/y> or <x.x.x.x y.y.y.y>.

Scope

FortiGate v7.2.8, v7.4.3, v7.4.4, v7.6.0.

Solution

When a prefix list is configured using the format <x.x.x.x/y.y.y.y> under the Network -> Routing Objects menu on FortiGate GUI, the prefix list configuration defaults to 0.0.0.0 0.0.0.0 without displaying any warning or error message, unlike the CLI.

 

GUI:

 

Prefix-1.png

 

Prefix-2.png

 

CLI:

 

config router prefix-list

(Test-Prefix) # config rule

(rule) # edit 2

new entry '2' added

(2) # set prefix 172.16.1.0/255.255.255.0

Invalid length of ip

node_check_object fail! for prefix 172.16.1.0/255.255.255.0

value parse error before '172.16.1.0/255.255.255.0'

Command fail. Return code -8

 

Starting from FortiOS versions 7.2.9, 7.4.5, and 7.6.1, the prefix list format <x.x.x.x/y.y.y.y> is supported by the FortiGate.

 

Workaround:

For earlier versions, configure prefix lists using the formats:<x.x.x.x/y> or <x.x.x.x y.y.y.y>.

    Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024