Fortinet black logo

CLI Reference

firewall shaper traffic-shaper

firewall shaper traffic-shaper

Use this command to configure shared traffic shaping that is applied to and shared by all traffic accepted by a firewall policy. As with the per-IP traffic shaper, you select shared traffic shapers in firewall policies.

config firewall shaper traffic-shaper
    edit {name}
    # Configure shared traffic shaper.
        set name {string}   Traffic shaper name. size[35]
        set guaranteed-bandwidth {integer}   Amount of bandwidth guaranteed for this shaper (0 - 16776000). Units depend on the bandwidth-unit setting. range[0-16776000]
        set maximum-bandwidth {integer}   Upper bandwidth limit enforced by this shaper (0 - 16776000). 0 means no limit. Units depend on the bandwidth-unit setting. range[0-16776000]
        set bandwidth-unit {kbps | mbps | gbps}   Unit of measurement for guaranteed and maximum bandwidth for this shaper (Kbps, Mbps or Gbps).
                kbps  Kilobits per second.
                mbps  Megabits per second.
                gbps  Gigabits per second.
        set priority {low | medium | high}   Higher priority traffic is more likely to be forwarded without delays and without compromising the guaranteed bandwidth.
                low     Low priority.
                medium  Medium priority.
                high    High priority.
        set per-policy {disable | enable}   Enable/disable applying a separate shaper for each policy. For example, if enabled the guaranteed bandwidth is applied separately for each policy.
        set diffserv {enable | disable}   Enable/disable changing the DiffServ setting applied to traffic accepted by this shaper.
        set diffservcode {string}   DiffServ setting to be applied to traffic accepted by this shaper.
    next
end

Additional information

The following section is for those options that require additional explanation.

firewall shaper traffic-shaper

Use this command to configure shared traffic shaping that is applied to and shared by all traffic accepted by a firewall policy. As with the per-IP traffic shaper, you select shared traffic shapers in firewall policies.

config firewall shaper traffic-shaper
    edit {name}
    # Configure shared traffic shaper.
        set name {string}   Traffic shaper name. size[35]
        set guaranteed-bandwidth {integer}   Amount of bandwidth guaranteed for this shaper (0 - 16776000). Units depend on the bandwidth-unit setting. range[0-16776000]
        set maximum-bandwidth {integer}   Upper bandwidth limit enforced by this shaper (0 - 16776000). 0 means no limit. Units depend on the bandwidth-unit setting. range[0-16776000]
        set bandwidth-unit {kbps | mbps | gbps}   Unit of measurement for guaranteed and maximum bandwidth for this shaper (Kbps, Mbps or Gbps).
                kbps  Kilobits per second.
                mbps  Megabits per second.
                gbps  Gigabits per second.
        set priority {low | medium | high}   Higher priority traffic is more likely to be forwarded without delays and without compromising the guaranteed bandwidth.
                low     Low priority.
                medium  Medium priority.
                high    High priority.
        set per-policy {disable | enable}   Enable/disable applying a separate shaper for each policy. For example, if enabled the guaranteed bandwidth is applied separately for each policy.
        set diffserv {enable | disable}   Enable/disable changing the DiffServ setting applied to traffic accepted by this shaper.
        set diffservcode {string}   DiffServ setting to be applied to traffic accepted by this shaper.
    next
end

Additional information

The following section is for those options that require additional explanation.