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:

FX201E5919000057 (shaping-policy) # show

config firewall shaping-policy

edit 1_policy

set status enable

set dstintf wan

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.
lte1 LTE 1 as the outgoing interface.
wan WAN 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:

FX201E5919000057 (shaping-policy) # show

config firewall shaping-policy

edit 1_policy

set status enable

set dstintf wan

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.
lte1 LTE 1 as the outgoing interface.
wan WAN 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.