Fortinet white logo
Fortinet white logo

CLI Reference

router prefix-list

Configure IPv4 prefix lists.

  config router prefix-list
      Description: Configure IPv4 prefix lists.
      edit <name>
          set comments {string}
          config rule
              Description: IPv4 prefix list rule.
              edit <id>
                  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 Name Description Type Size
comments Comment. string Maximum length: 127

config rule

Parameter Name Description Type Size
action Permit or deny this IP address and netmask prefix.
permit: Allow or permit packets that match this rule.
deny: Deny packets that match this rule.
option -
prefix IPv4 prefix to define regular filter criteria, such as "any" or subnets. user Not Specified
ge Minimum prefix length to be matched (0 - 32). integer Minimum value: 0 Maximum value: 32
le Maximum prefix length to be matched (0 - 32). integer Minimum value: 0 Maximum value: 32
flags Flags. integer Minimum value: 0 Maximum value: 4294967295

router prefix-list

Configure IPv4 prefix lists.

  config router prefix-list
      Description: Configure IPv4 prefix lists.
      edit <name>
          set comments {string}
          config rule
              Description: IPv4 prefix list rule.
              edit <id>
                  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 Name Description Type Size
comments Comment. string Maximum length: 127

config rule

Parameter Name Description Type Size
action Permit or deny this IP address and netmask prefix.
permit: Allow or permit packets that match this rule.
deny: Deny packets that match this rule.
option -
prefix IPv4 prefix to define regular filter criteria, such as "any" or subnets. user Not Specified
ge Minimum prefix length to be matched (0 - 32). integer Minimum value: 0 Maximum value: 32
le Maximum prefix length to be matched (0 - 32). integer Minimum value: 0 Maximum value: 32
flags Flags. integer Minimum value: 0 Maximum value: 4294967295