Fortinet black logo

CLI Reference

firewall shaper per-ip-shaper

firewall shaper per-ip-shaper

Use this command to configure traffic shaping that is applied per IP address, instead of per policy or per shaper. As with the shared traffic shaper, you select per-IP traffic shapers in firewall policies.

config firewall shaper per-ip-shaper
    edit {name}
    # Configure per-IP traffic shaper.
        set name {string}   Traffic shaper name. size[35]
        set max-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 maximum bandwidth for this shaper (Kbps, Mbps or Gbps).
                kbps  Kilobits per second.
                mbps  Megabits per second.
                gbps  Gigabits per second.
        set max-concurrent-session {integer}   Maximum number of concurrent sessions allowed by this shaper (0 - 2097000). 0 means no limit. range[0-2097000]
        set diffserv-forward {enable | disable}   Enable/disable changing the Forward (original) DiffServ setting applied to traffic accepted by this shaper.
        set diffserv-reverse {enable | disable}   Enable/disable changing the Reverse (reply) DiffServ setting applied to traffic accepted by this shaper.
        set diffservcode-forward {string}   Forward (original) DiffServ setting to be applied to traffic accepted by this shaper.
        set diffservcode-rev {string}   Reverse (reply) 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 per-ip-shaper

Use this command to configure traffic shaping that is applied per IP address, instead of per policy or per shaper. As with the shared traffic shaper, you select per-IP traffic shapers in firewall policies.

config firewall shaper per-ip-shaper
    edit {name}
    # Configure per-IP traffic shaper.
        set name {string}   Traffic shaper name. size[35]
        set max-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 maximum bandwidth for this shaper (Kbps, Mbps or Gbps).
                kbps  Kilobits per second.
                mbps  Megabits per second.
                gbps  Gigabits per second.
        set max-concurrent-session {integer}   Maximum number of concurrent sessions allowed by this shaper (0 - 2097000). 0 means no limit. range[0-2097000]
        set diffserv-forward {enable | disable}   Enable/disable changing the Forward (original) DiffServ setting applied to traffic accepted by this shaper.
        set diffserv-reverse {enable | disable}   Enable/disable changing the Reverse (reply) DiffServ setting applied to traffic accepted by this shaper.
        set diffservcode-forward {string}   Forward (original) DiffServ setting to be applied to traffic accepted by this shaper.
        set diffservcode-rev {string}   Reverse (reply) 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.