Fortinet white logo
Fortinet white logo

CLI Reference

config wanopt content-delivery-network-rule

config wanopt content-delivery-network-rule

Note

This command is available for model(s): FortiGate 1000D, FortiGate 1001F, FortiGate 101E, FortiGate 101F, FortiGate 1101E, FortiGate 121G, FortiGate 1500DT, FortiGate 1500D, FortiGate 1801F, FortiGate 2000E, FortiGate 201E, FortiGate 201F, FortiGate 2201E, FortiGate 2500E, FortiGate 2600F, FortiGate 2601F, FortiGate 3000D, FortiGate 3001F, FortiGate 301E, FortiGate 3100D, FortiGate 3200D, FortiGate 3201F, FortiGate 3301E, FortiGate 3401E, FortiGate 3501F, FortiGate 3601E, FortiGate 3700D, FortiGate 3701F, FortiGate 401E, FortiGate 401F, FortiGate 4201F, FortiGate 4401F, FortiGate 5001E1, FortiGate 501E, FortiGate 601E, FortiGate 601F, FortiGate 61E, FortiGate 61F, FortiGate 71F, FortiGate 800D, FortiGate 81E-POE, FortiGate 81E, FortiGate 81F-POE, FortiGate 81F, FortiGate 900D, FortiGate 901G, FortiGate 91E, FortiGate VM64, FortiGateRugged 70F 3G4G, FortiGateRugged 70F, FortiWiFi 61E, FortiWiFi 61F, FortiWiFi 80F 2R 3G4G DSL, FortiWiFi 81F 2R 3G4G DSL, FortiWiFi 81F 2R 3G4G-POE, FortiWiFi 81F 2R-POE, FortiWiFi 81F 2R.

It is not available for: FortiGate 1000F, FortiGate 100EF, FortiGate 100E, FortiGate 100F, FortiGate 1100E, FortiGate 120G, FortiGate 140E-POE, FortiGate 140E, FortiGate 1800F, FortiGate 200E, FortiGate 200F, FortiGate 2200E, FortiGate 3000F, FortiGate 300E, FortiGate 3200F, FortiGate 3300E, FortiGate 3400E, FortiGate 3500F, FortiGate 3600E, FortiGate 3700F, FortiGate 3960E, FortiGate 3980E, FortiGate 400E Bypass, FortiGate 400E, FortiGate 400F, FortiGate 40F 3G4G, FortiGate 40F, FortiGate 4200F, FortiGate 4400F, FortiGate 5001E, FortiGate 500E, FortiGate 600E, FortiGate 600F, FortiGate 60E DSLJ, FortiGate 60E DSL, FortiGate 60E-POE, FortiGate 60E, FortiGate 60F, FortiGate 70F, FortiGate 80E-POE, FortiGate 80E, FortiGate 80F Bypass, FortiGate 80F DSL, FortiGate 80F-POE, FortiGate 80F, FortiGate 900G, FortiGateRugged 60F 3G4G, FortiGateRugged 60F, FortiWiFi 40F 3G4G, FortiWiFi 40F, FortiWiFi 60E DSLJ, FortiWiFi 60E DSL, FortiWiFi 60E, FortiWiFi 60F, FortiWiFi 80F 2R.

Configure WAN optimization content delivery network rules.

config wanopt content-delivery-network-rule
    Description: Configure WAN optimization content delivery network rules.
    edit <name>
        set category [vcache|youtube]
        set comment {var-string}
        set host-domain-name-suffix <name1>, <name2>, ...
        set request-cache-control [enable|disable]
        set response-cache-control [enable|disable]
        set response-expires [enable|disable]
        config rules
            Description: WAN optimization content delivery network rule entries.
            edit <name>
                config content-id
                    Description: Content ID settings.
                    set end-direction [forward|backward]
                    set end-skip {integer}
                    set end-str {string}
                    set range-str {string}
                    set start-direction [forward|backward]
                    set start-skip {integer}
                    set start-str {string}
                    set target [path|parameter|...]
                end
                config match-entries
                    Description: List of entries to match.
                    edit <id>
                        set pattern <string1>, <string2>, ...
                        set target [path|parameter|...]
                    next
                end
                set match-mode [all|any]
                config skip-entries
                    Description: List of entries to skip.
                    edit <id>
                        set pattern <string1>, <string2>, ...
                        set target [path|parameter|...]
                    next
                end
                set skip-rule-mode [all|any]
            next
        end
        set status [enable|disable]
        set updateserver [enable|disable]
    next
end

config wanopt content-delivery-network-rule

Parameter

Description

Type

Size

Default

category

Content delivery network rule category.

option

-

vcache

Option

Description

vcache

Vcache content delivery network.

youtube

Youtube content delivery network.

comment

Comment about this CDN-rule.

var-string

Maximum length: 255

host-domain-name-suffix <name>

Suffix portion of the fully qualified domain name. For example, fortinet.com in "www.fortinet.com".

Suffix portion of the fully qualified domain name.

string

Maximum length: 79

name

Name of table.

string

Maximum length: 35

request-cache-control

Enable/disable HTTP request cache control.

option

-

disable

Option

Description

enable

Enable setting.

disable

Disable setting.

response-cache-control

Enable/disable HTTP response cache control.

option

-

disable

Option

Description

enable

Enable setting.

disable

Disable setting.

response-expires

Enable/disable HTTP response cache expires.

option

-

disable

Option

Description

enable

Enable setting.

disable

Disable setting.

status

Enable/disable WAN optimization content delivery network rules.

option

-

enable

Option

Description

enable

Enable setting.

disable

Disable setting.

updateserver

Enable/disable update server.

option

-

disable

Option

Description

enable

Enable setting.

disable

Disable setting.

config rules

Parameter

Description

Type

Size

Default

match-mode

Match criteria for collecting content ID.

option

-

all

Option

Description

all

Must match all of the match entries.

any

Must match any of the match entries.

name

WAN optimization content delivery network rule name.

string

Maximum length: 35

skip-rule-mode

Skip mode when evaluating skip-rules.

option

-

all

Option

Description

all

Must match all skip entries.

any

Must match any skip entries.

config content-id

Parameter

Description

Type

Size

Default

end-direction

Search direction from end-str match.

option

-

forward

Option

Description

forward

Forward direction.

backward

Backward direction.

end-skip

Number of characters in URL to skip after end-str has been matched.

integer

Minimum value: 0 Maximum value: 4294967295

0

end-str

String from which to end search.

string

Maximum length: 35

range-str

Name of content ID within the start string and end string.

string

Maximum length: 35

start-direction

Search direction from start-str match.

option

-

forward

Option

Description

forward

Forward direction.

backward

Backward direction.

start-skip

Number of characters in URL to skip after start-str has been matched.

integer

Minimum value: 0 Maximum value: 4294967295

0

start-str

String from which to start search.

string

Maximum length: 35

target

Option in HTTP header or URL parameter to match.

option

-

path

Option

Description

path

Match with the URL path.

parameter

Match with the URL parameters.

referrer

Match with the Referrer option in HTTP header.

youtube-map

Match Youtube content-id collection.

youtube-id

Match Youtube content-id.

youku-id

Match Youku content-id.

hls-manifest

Match with HLS manifest.

dash-manifest

Match with DASH manifest.

hls-fragment

Match HLS stream fragment.

dash-fragment

Match DASH stream fragment.

config match-entries

Parameter

Description

Type

Size

Default

id

Rule ID.

integer

Minimum value: 0 Maximum value: 4294967295

0

pattern <string>

Pattern string for matching target (Referrer or URL pattern). For example, a, a*c, *a*, a*c*e, and *.

Pattern strings.

string

Maximum length: 79

target

Option in HTTP header or URL parameter to match.

option

-

path

Option

Description

path

Match with the URL path.

parameter

Match with the URL parameters.

referrer

Match with the Referrer option in HTTP header.

youtube-map

Match Youtube content-id collection.

youtube-id

Match Youtube content-id.

youku-id

Match Youku content-id.

config skip-entries

Parameter

Description

Type

Size

Default

id

Rule ID.

integer

Minimum value: 0 Maximum value: 4294967295

0

pattern <string>

Pattern string for matching target (Referrer or URL pattern). For example, a, a*c, *a*, a*c*e, and *.

Pattern strings.

string

Maximum length: 79

target

Option in HTTP header or URL parameter to match.

option

-

path

Option

Description

path

Match with the URL path.

parameter

Match with the URL parameters.

referrer

Match with the Referrer option in HTTP header.

youtube-map

Match Youtube content-id collection.

youtube-id

Match Youtube content-id.

youku-id

Match Youku content-id.

config wanopt content-delivery-network-rule

config wanopt content-delivery-network-rule

Note

This command is available for model(s): FortiGate 1000D, FortiGate 1001F, FortiGate 101E, FortiGate 101F, FortiGate 1101E, FortiGate 121G, FortiGate 1500DT, FortiGate 1500D, FortiGate 1801F, FortiGate 2000E, FortiGate 201E, FortiGate 201F, FortiGate 2201E, FortiGate 2500E, FortiGate 2600F, FortiGate 2601F, FortiGate 3000D, FortiGate 3001F, FortiGate 301E, FortiGate 3100D, FortiGate 3200D, FortiGate 3201F, FortiGate 3301E, FortiGate 3401E, FortiGate 3501F, FortiGate 3601E, FortiGate 3700D, FortiGate 3701F, FortiGate 401E, FortiGate 401F, FortiGate 4201F, FortiGate 4401F, FortiGate 5001E1, FortiGate 501E, FortiGate 601E, FortiGate 601F, FortiGate 61E, FortiGate 61F, FortiGate 71F, FortiGate 800D, FortiGate 81E-POE, FortiGate 81E, FortiGate 81F-POE, FortiGate 81F, FortiGate 900D, FortiGate 901G, FortiGate 91E, FortiGate VM64, FortiGateRugged 70F 3G4G, FortiGateRugged 70F, FortiWiFi 61E, FortiWiFi 61F, FortiWiFi 80F 2R 3G4G DSL, FortiWiFi 81F 2R 3G4G DSL, FortiWiFi 81F 2R 3G4G-POE, FortiWiFi 81F 2R-POE, FortiWiFi 81F 2R.

It is not available for: FortiGate 1000F, FortiGate 100EF, FortiGate 100E, FortiGate 100F, FortiGate 1100E, FortiGate 120G, FortiGate 140E-POE, FortiGate 140E, FortiGate 1800F, FortiGate 200E, FortiGate 200F, FortiGate 2200E, FortiGate 3000F, FortiGate 300E, FortiGate 3200F, FortiGate 3300E, FortiGate 3400E, FortiGate 3500F, FortiGate 3600E, FortiGate 3700F, FortiGate 3960E, FortiGate 3980E, FortiGate 400E Bypass, FortiGate 400E, FortiGate 400F, FortiGate 40F 3G4G, FortiGate 40F, FortiGate 4200F, FortiGate 4400F, FortiGate 5001E, FortiGate 500E, FortiGate 600E, FortiGate 600F, FortiGate 60E DSLJ, FortiGate 60E DSL, FortiGate 60E-POE, FortiGate 60E, FortiGate 60F, FortiGate 70F, FortiGate 80E-POE, FortiGate 80E, FortiGate 80F Bypass, FortiGate 80F DSL, FortiGate 80F-POE, FortiGate 80F, FortiGate 900G, FortiGateRugged 60F 3G4G, FortiGateRugged 60F, FortiWiFi 40F 3G4G, FortiWiFi 40F, FortiWiFi 60E DSLJ, FortiWiFi 60E DSL, FortiWiFi 60E, FortiWiFi 60F, FortiWiFi 80F 2R.

Configure WAN optimization content delivery network rules.

config wanopt content-delivery-network-rule
    Description: Configure WAN optimization content delivery network rules.
    edit <name>
        set category [vcache|youtube]
        set comment {var-string}
        set host-domain-name-suffix <name1>, <name2>, ...
        set request-cache-control [enable|disable]
        set response-cache-control [enable|disable]
        set response-expires [enable|disable]
        config rules
            Description: WAN optimization content delivery network rule entries.
            edit <name>
                config content-id
                    Description: Content ID settings.
                    set end-direction [forward|backward]
                    set end-skip {integer}
                    set end-str {string}
                    set range-str {string}
                    set start-direction [forward|backward]
                    set start-skip {integer}
                    set start-str {string}
                    set target [path|parameter|...]
                end
                config match-entries
                    Description: List of entries to match.
                    edit <id>
                        set pattern <string1>, <string2>, ...
                        set target [path|parameter|...]
                    next
                end
                set match-mode [all|any]
                config skip-entries
                    Description: List of entries to skip.
                    edit <id>
                        set pattern <string1>, <string2>, ...
                        set target [path|parameter|...]
                    next
                end
                set skip-rule-mode [all|any]
            next
        end
        set status [enable|disable]
        set updateserver [enable|disable]
    next
end

config wanopt content-delivery-network-rule

Parameter

Description

Type

Size

Default

category

Content delivery network rule category.

option

-

vcache

Option

Description

vcache

Vcache content delivery network.

youtube

Youtube content delivery network.

comment

Comment about this CDN-rule.

var-string

Maximum length: 255

host-domain-name-suffix <name>

Suffix portion of the fully qualified domain name. For example, fortinet.com in "www.fortinet.com".

Suffix portion of the fully qualified domain name.

string

Maximum length: 79

name

Name of table.

string

Maximum length: 35

request-cache-control

Enable/disable HTTP request cache control.

option

-

disable

Option

Description

enable

Enable setting.

disable

Disable setting.

response-cache-control

Enable/disable HTTP response cache control.

option

-

disable

Option

Description

enable

Enable setting.

disable

Disable setting.

response-expires

Enable/disable HTTP response cache expires.

option

-

disable

Option

Description

enable

Enable setting.

disable

Disable setting.

status

Enable/disable WAN optimization content delivery network rules.

option

-

enable

Option

Description

enable

Enable setting.

disable

Disable setting.

updateserver

Enable/disable update server.

option

-

disable

Option

Description

enable

Enable setting.

disable

Disable setting.

config rules

Parameter

Description

Type

Size

Default

match-mode

Match criteria for collecting content ID.

option

-

all

Option

Description

all

Must match all of the match entries.

any

Must match any of the match entries.

name

WAN optimization content delivery network rule name.

string

Maximum length: 35

skip-rule-mode

Skip mode when evaluating skip-rules.

option

-

all

Option

Description

all

Must match all skip entries.

any

Must match any skip entries.

config content-id

Parameter

Description

Type

Size

Default

end-direction

Search direction from end-str match.

option

-

forward

Option

Description

forward

Forward direction.

backward

Backward direction.

end-skip

Number of characters in URL to skip after end-str has been matched.

integer

Minimum value: 0 Maximum value: 4294967295

0

end-str

String from which to end search.

string

Maximum length: 35

range-str

Name of content ID within the start string and end string.

string

Maximum length: 35

start-direction

Search direction from start-str match.

option

-

forward

Option

Description

forward

Forward direction.

backward

Backward direction.

start-skip

Number of characters in URL to skip after start-str has been matched.

integer

Minimum value: 0 Maximum value: 4294967295

0

start-str

String from which to start search.

string

Maximum length: 35

target

Option in HTTP header or URL parameter to match.

option

-

path

Option

Description

path

Match with the URL path.

parameter

Match with the URL parameters.

referrer

Match with the Referrer option in HTTP header.

youtube-map

Match Youtube content-id collection.

youtube-id

Match Youtube content-id.

youku-id

Match Youku content-id.

hls-manifest

Match with HLS manifest.

dash-manifest

Match with DASH manifest.

hls-fragment

Match HLS stream fragment.

dash-fragment

Match DASH stream fragment.

config match-entries

Parameter

Description

Type

Size

Default

id

Rule ID.

integer

Minimum value: 0 Maximum value: 4294967295

0

pattern <string>

Pattern string for matching target (Referrer or URL pattern). For example, a, a*c, *a*, a*c*e, and *.

Pattern strings.

string

Maximum length: 79

target

Option in HTTP header or URL parameter to match.

option

-

path

Option

Description

path

Match with the URL path.

parameter

Match with the URL parameters.

referrer

Match with the Referrer option in HTTP header.

youtube-map

Match Youtube content-id collection.

youtube-id

Match Youtube content-id.

youku-id

Match Youku content-id.

config skip-entries

Parameter

Description

Type

Size

Default

id

Rule ID.

integer

Minimum value: 0 Maximum value: 4294967295

0

pattern <string>

Pattern string for matching target (Referrer or URL pattern). For example, a, a*c, *a*, a*c*e, and *.

Pattern strings.

string

Maximum length: 79

target

Option in HTTP header or URL parameter to match.

option

-

path

Option

Description

path

Match with the URL path.

parameter

Match with the URL parameters.

referrer

Match with the Referrer option in HTTP header.

youtube-map

Match Youtube content-id collection.

youtube-id

Match Youtube content-id.

youku-id

Match Youku content-id.