Fortinet white logo
Fortinet white logo

CLI Reference

config shaping-policy

config shaping-policy

Description: Configure firewall shaping policies.

config shaping-policy

edit <name>

set status [enable | disable]

set *dstintf <name1>, <name2>, …

set *traffic-shaper <name1>, <name2>, …

delete <name>

purge

show

end

Sample command:

config firewall shaping-policy
  edit 1_policy
    set status enable
    set dstintf port1
    set traffic-shaper 1
  next
end
Parameter Description Type Size Default
status Status of the traffic shaping policy. option - enable
Option Description
enable Enable the policy.
disable Disable the policy.
dstintf Outgoing (egress) interface. option - none
Option Description
lan LAN as the outgoing interface.
lo Loopback as the outgoing interface.
port4 Port 4 as the outgoing interface.
any Any port as the outgoing interface.
traffic-shaper Traffic shaper to apply to traffic forwarded by the firewall policy. option - none
Option Decription
1 Refer toconfig traffic-shaper.

config shaping-policy

config shaping-policy

Description: Configure firewall shaping policies.

config shaping-policy

edit <name>

set status [enable | disable]

set *dstintf <name1>, <name2>, …

set *traffic-shaper <name1>, <name2>, …

delete <name>

purge

show

end

Sample command:

config firewall shaping-policy
  edit 1_policy
    set status enable
    set dstintf port1
    set traffic-shaper 1
  next
end
Parameter Description Type Size Default
status Status of the traffic shaping policy. option - enable
Option Description
enable Enable the policy.
disable Disable the policy.
dstintf Outgoing (egress) interface. option - none
Option Description
lan LAN as the outgoing interface.
lo Loopback as the outgoing interface.
port4 Port 4 as the outgoing interface.
any Any port as the outgoing interface.
traffic-shaper Traffic shaper to apply to traffic forwarded by the firewall policy. option - none
Option Decription
1 Refer toconfig traffic-shaper.