Fortinet white logo
Fortinet white logo

CLI Reference

firewall shaping-profile

Configure shaping profiles.

  config firewall shaping-profile
      Description: Configure shaping profiles.
      edit <profile-name>
          set comment {var-string}
          set type [policing|queuing]
          set default-class-id {integer}
          config shaping-entries
              Description: Define shaping entries of this shaping profile.
              edit <id>
                  set class-id {integer}
                  set priority [top|critical|...]
                  set guaranteed-bandwidth-percentage {integer}
                  set maximum-bandwidth-percentage {integer}
                  set limit {integer}
                  set burst-in-msec {integer}
                  set cburst-in-msec {integer}
                  set red-probability {integer}
                  set min {integer}
                  set max {integer}
              next
          end
      next
  end

config firewall shaping-profile

Parameter Name Description Type Size
comment Comment. var-string Maximum length: 1023
type Select shaping profile type: policing / queuing.
policing: Enable policing mode.
queuing: Enable queuing mode.
option -
default-class-id Default class ID to handle unclassified packets (including all local traffic). integer Minimum value: 0 Maximum value: 4294967295

config shaping-entries

Parameter Name Description Type Size
class-id Class ID. integer Minimum value: 0 Maximum value: 4294967295
priority Priority.
top: Top priority.
critical: Critical priority.
high: High priority.
medium: Medium priority.
low: Low priority.
option -
guaranteed-bandwidth-percentage Guaranteed bandwith in percentage. integer Minimum value: 0 Maximum value: 100
maximum-bandwidth-percentage Maximum bandwith in percentage. integer Minimum value: 1 Maximum value: 100
limit Hard limit on the real queue size in packets. integer Minimum value: 5 Maximum value: 10000
burst-in-msec Number of bytes that can be burst at maximum-bandwidth speed. Formula: burst = maximum-bandwidth*burst-in-msec. integer Minimum value: 0 Maximum value: 2000
cburst-in-msec Number of bytes that can be burst as fast as the interface can transmit. Formula: cburst = maximum-bandwidth*cburst-in-msec. integer Minimum value: 0 Maximum value: 2000
red-probability Maximum probability (in percentage) for RED marking. integer Minimum value: 0 Maximum value: 20
min Average queue size in packets at which RED drop becomes a possibility. integer Minimum value: 3 Maximum value: 3000
max Average queue size in packets at which RED drop probability is maximal. integer Minimum value: 3 Maximum value: 3000

firewall shaping-profile

Configure shaping profiles.

  config firewall shaping-profile
      Description: Configure shaping profiles.
      edit <profile-name>
          set comment {var-string}
          set type [policing|queuing]
          set default-class-id {integer}
          config shaping-entries
              Description: Define shaping entries of this shaping profile.
              edit <id>
                  set class-id {integer}
                  set priority [top|critical|...]
                  set guaranteed-bandwidth-percentage {integer}
                  set maximum-bandwidth-percentage {integer}
                  set limit {integer}
                  set burst-in-msec {integer}
                  set cburst-in-msec {integer}
                  set red-probability {integer}
                  set min {integer}
                  set max {integer}
              next
          end
      next
  end

config firewall shaping-profile

Parameter Name Description Type Size
comment Comment. var-string Maximum length: 1023
type Select shaping profile type: policing / queuing.
policing: Enable policing mode.
queuing: Enable queuing mode.
option -
default-class-id Default class ID to handle unclassified packets (including all local traffic). integer Minimum value: 0 Maximum value: 4294967295

config shaping-entries

Parameter Name Description Type Size
class-id Class ID. integer Minimum value: 0 Maximum value: 4294967295
priority Priority.
top: Top priority.
critical: Critical priority.
high: High priority.
medium: Medium priority.
low: Low priority.
option -
guaranteed-bandwidth-percentage Guaranteed bandwith in percentage. integer Minimum value: 0 Maximum value: 100
maximum-bandwidth-percentage Maximum bandwith in percentage. integer Minimum value: 1 Maximum value: 100
limit Hard limit on the real queue size in packets. integer Minimum value: 5 Maximum value: 10000
burst-in-msec Number of bytes that can be burst at maximum-bandwidth speed. Formula: burst = maximum-bandwidth*burst-in-msec. integer Minimum value: 0 Maximum value: 2000
cburst-in-msec Number of bytes that can be burst as fast as the interface can transmit. Formula: cburst = maximum-bandwidth*cburst-in-msec. integer Minimum value: 0 Maximum value: 2000
red-probability Maximum probability (in percentage) for RED marking. integer Minimum value: 0 Maximum value: 20
min Average queue size in packets at which RED drop becomes a possibility. integer Minimum value: 3 Maximum value: 3000
max Average queue size in packets at which RED drop probability is maximal. integer Minimum value: 3 Maximum value: 3000