Fortinet white logo
Fortinet white logo

CLI Reference

config router prefix-list

config router prefix-list

Configure IPv4 prefix lists.

config router prefix-list
    Description: Configure IPv4 prefix lists.
    edit <name>
        set comments {string}
        set name {string}
        config rule
            Description: IPv4 prefix list rule.
            edit <id>
                set id {integer}
                set action [permit|deny]
                set prefix {user}
                set ge {integer}
                set le {integer}
                set flags {integer}
            next
        end
    next
end

config router prefix-list

Parameter

Description

Type

Size

Default

comments

Comment.

string

Not Specified

name

Name.

string

Not Specified

config rule

Parameter

Description

Type

Size

Default

id

Rule ID.

integer

Minimum value: 0 Maximum value: 4294967295

0

action

Permit or deny this IP address and netmask prefix.

option

-

permit

Option

Description

permit

Allow or permit packets that match this rule.

deny

Deny packets that match this rule.

prefix

IPv4 prefix to define regular filter criteria, such as "any" or subnets.

user

Not Specified

0.0.0.0 0.0.0.0

ge

Minimum prefix length to be matched.

integer

Minimum value: 0 Maximum value: 32

le

Maximum prefix length to be matched.

integer

Minimum value: 0 Maximum value: 32

flags

Flags.

integer

Minimum value: 0 Maximum value: 4294967295

0

config router prefix-list

config router prefix-list

Configure IPv4 prefix lists.

config router prefix-list
    Description: Configure IPv4 prefix lists.
    edit <name>
        set comments {string}
        set name {string}
        config rule
            Description: IPv4 prefix list rule.
            edit <id>
                set id {integer}
                set action [permit|deny]
                set prefix {user}
                set ge {integer}
                set le {integer}
                set flags {integer}
            next
        end
    next
end

config router prefix-list

Parameter

Description

Type

Size

Default

comments

Comment.

string

Not Specified

name

Name.

string

Not Specified

config rule

Parameter

Description

Type

Size

Default

id

Rule ID.

integer

Minimum value: 0 Maximum value: 4294967295

0

action

Permit or deny this IP address and netmask prefix.

option

-

permit

Option

Description

permit

Allow or permit packets that match this rule.

deny

Deny packets that match this rule.

prefix

IPv4 prefix to define regular filter criteria, such as "any" or subnets.

user

Not Specified

0.0.0.0 0.0.0.0

ge

Minimum prefix length to be matched.

integer

Minimum value: 0 Maximum value: 32

le

Maximum prefix length to be matched.

integer

Minimum value: 0 Maximum value: 32

flags

Flags.

integer

Minimum value: 0 Maximum value: 4294967295

0