Fortinet white logo
Fortinet white logo

CLI Reference

config firewall response-shaping-policy

config firewall response-shaping-policy

Configure HTTP response matching shaping policies.

config firewall response-shaping-policy
    Description: Configure HTTP response matching shaping policies.
    edit <id>
        set uuid {uuid}
        set name {string}
        set schedule {string}
        set comment {var-string}
        set status [enable|disable]
        set ip-version [4|6]
        set srcaddr <name1>, <name2>, ...
        set dstaddr <name1>, <name2>, ...
        set dstaddr6 <name1>, <name2>, ...
        set traffic-shaper {string}
        set traffic-shaper-reverse {string}
        set per-ip-shaper {string}
        set class-id {integer}
        set class-id-reverse {integer}
        set diffserv-forward [enable|disable]
        set diffservcode-forward {user}
        set diffserv-reverse [enable|disable]
        set diffservcode-rev {user}
        set matched-shaping-policies {integer}
    next
end

config firewall response-shaping-policy

Parameter

Description

Type

Size

Default

id

Response shaping policy ID.

integer

Minimum value: 0 Maximum value: 4294967295

0

uuid

Universally Unique Identifier (UUID; automatically assigned but can be manually reset).

uuid

Not Specified

00000000-0000-0000-0000-000000000000

name

Response shaping policy name.

string

Maximum length: 35

schedule

Schedule name.

string

Maximum length: 35

always

comment

Comments.

var-string

Maximum length: 255

status

Enable/disable response traffic shaping policy.

option

-

enable

Option

Description

enable

Enable traffic shaping policy.

disable

Disable traffic shaping policy.

ip-version

IP version.

option

-

4

Option

Description

4

Use IPv4 addressing for Configuration Method.

6

Use IPv6 addressing for Configuration Method.

srcaddr <name>

Source address.

Address name.

string

Maximum length: 79

dstaddr <name>

Destination address.

Address name.

string

Maximum length: 79

dstaddr6 <name>

IPv6 destination address.

Address name.

string

Maximum length: 79

traffic-shaper

Forward traffic shaper.

string

Maximum length: 35

traffic-shaper-reverse

Reverse traffic shaper.

string

Maximum length: 35

per-ip-shaper

Per IP shaper.

string

Maximum length: 35

class-id

Forward class id.

integer

Minimum value: 2 Maximum value: 31

0

class-id-reverse

Reverse class id.

integer

Minimum value: 2 Maximum value: 31

0

diffserv-forward

Enable/disable forward (original) traffic DiffServ.

option

-

disable

Option

Description

enable

Enable setting.

disable

Disable setting.

diffservcode-forward

Forward (original) traffic DiffServ code point value.

user

Not Specified

diffserv-reverse

Enable/disable reverse (reply) traffic DiffServ.

option

-

disable

Option

Description

enable

Enable setting.

disable

Disable setting.

diffservcode-rev

Reverse (reply) traffic DiffServ code point value.

user

Not Specified

matched-shaping-policies

Matched shaping policies.

integer

Minimum value: 0 Maximum value: 4294967295

config firewall response-shaping-policy

config firewall response-shaping-policy

Configure HTTP response matching shaping policies.

config firewall response-shaping-policy
    Description: Configure HTTP response matching shaping policies.
    edit <id>
        set uuid {uuid}
        set name {string}
        set schedule {string}
        set comment {var-string}
        set status [enable|disable]
        set ip-version [4|6]
        set srcaddr <name1>, <name2>, ...
        set dstaddr <name1>, <name2>, ...
        set dstaddr6 <name1>, <name2>, ...
        set traffic-shaper {string}
        set traffic-shaper-reverse {string}
        set per-ip-shaper {string}
        set class-id {integer}
        set class-id-reverse {integer}
        set diffserv-forward [enable|disable]
        set diffservcode-forward {user}
        set diffserv-reverse [enable|disable]
        set diffservcode-rev {user}
        set matched-shaping-policies {integer}
    next
end

config firewall response-shaping-policy

Parameter

Description

Type

Size

Default

id

Response shaping policy ID.

integer

Minimum value: 0 Maximum value: 4294967295

0

uuid

Universally Unique Identifier (UUID; automatically assigned but can be manually reset).

uuid

Not Specified

00000000-0000-0000-0000-000000000000

name

Response shaping policy name.

string

Maximum length: 35

schedule

Schedule name.

string

Maximum length: 35

always

comment

Comments.

var-string

Maximum length: 255

status

Enable/disable response traffic shaping policy.

option

-

enable

Option

Description

enable

Enable traffic shaping policy.

disable

Disable traffic shaping policy.

ip-version

IP version.

option

-

4

Option

Description

4

Use IPv4 addressing for Configuration Method.

6

Use IPv6 addressing for Configuration Method.

srcaddr <name>

Source address.

Address name.

string

Maximum length: 79

dstaddr <name>

Destination address.

Address name.

string

Maximum length: 79

dstaddr6 <name>

IPv6 destination address.

Address name.

string

Maximum length: 79

traffic-shaper

Forward traffic shaper.

string

Maximum length: 35

traffic-shaper-reverse

Reverse traffic shaper.

string

Maximum length: 35

per-ip-shaper

Per IP shaper.

string

Maximum length: 35

class-id

Forward class id.

integer

Minimum value: 2 Maximum value: 31

0

class-id-reverse

Reverse class id.

integer

Minimum value: 2 Maximum value: 31

0

diffserv-forward

Enable/disable forward (original) traffic DiffServ.

option

-

disable

Option

Description

enable

Enable setting.

disable

Disable setting.

diffservcode-forward

Forward (original) traffic DiffServ code point value.

user

Not Specified

diffserv-reverse

Enable/disable reverse (reply) traffic DiffServ.

option

-

disable

Option

Description

enable

Enable setting.

disable

Disable setting.

diffservcode-rev

Reverse (reply) traffic DiffServ code point value.

user

Not Specified

matched-shaping-policies

Matched shaping policies.

integer

Minimum value: 0 Maximum value: 4294967295