Fortinet black logo

CLI Reference

config wanopt content-delivery-network-rule

config wanopt content-delivery-network-rule

Configure WAN optimization content delivery network rules.

config wanopt content-delivery-network-rule
    Description: Configure WAN optimization content delivery network rules.
    edit <name>
        set comment {var-string}
        set status [enable|disable]
        config host-domain-name-suffix
            Description: Suffix portion of the fully qualified domain name (eg. fortinet.com in "www.fortinet.com").
            edit <name>
            next
        end
        set category [vcache|youtube]
        set request-cache-control [enable|disable]
        set response-cache-control [enable|disable]
        set response-expires [enable|disable]
        set updateserver [enable|disable]
        config rules
            Description: WAN optimization content delivery network rule entries.
            edit <name>
                set match-mode [all|any]
                set skip-rule-mode [all|any]
                config match-entries
                    Description: List of entries to match.
                    edit <id>
                        set target [path|parameter|...]
                        config pattern
                            Description: Referrer or URL pattern (eg. "a", "a*c", "*a*", "a*c*e", and "*").
                            edit <name>
                            next
                        end
                    next
                end
                config skip-entries
                    Description: List of entries to skip.
                    edit <id>
                        set target [path|parameter|...]
                        config pattern
                            Description: Referrer or URL pattern (eg. "a", "a*c", "*a*", "a*c*e", and "*").
                            edit <name>
                            next
                        end
                    next
                end
                config content-id
                    Description: Content ID settings.
                    set target [path|parameter|...]
                    set start-str {string}
                    set start-skip {integer}
                    set start-direction [forward|backward]
                    set end-str {string}
                    set end-skip {integer}
                    set end-direction [forward|backward]
                    set range-str {string}
                end
            next
        end
    next
end

config wanopt content-delivery-network-rule

Parameter

Description

Type

Size

name

Name of table.

string

Maximum length: 35

comment

Comment.

var-string

Maximum length: 255

status

Enable/disable WAN optimization content delivery network rules.

option

-

Option

Description

enable

Enable setting.

disable

Disable setting.

category

Content delivery network rule category.

option

-

Option

Description

vcache

Vcache content delivery network.

youtube

Youtube content delivery network.

request-cache-control

Enable/disable http request cache control.

option

-

Option

Description

enable

Enable setting.

disable

Disable setting.

response-cache-control

Enable/disable http response cache control.

option

-

Option

Description

enable

Enable setting.

disable

Disable setting.

response-expires

Enable/disable http response cache expires.

option

-

Option

Description

enable

Enable setting.

disable

Disable setting.

updateserver

Enable/disable update server.

option

-

Option

Description

enable

Enable setting.

disable

Disable setting.

config host-domain-name-suffix

Parameter

Description

Type

Size

name

Suffix portion of the fully qualified domain name.

string

Maximum length: 64

config rules

Parameter

Description

Type

Size

name

WAN optimization content delivery network rule name.

string

Maximum length: 35

match-mode

Criteria in which FortiProxy device must match in order to collect content ID.

option

-

Option

Description

all

Must match all of the match entries.

any

Must match any of the match entries.

skip-rule-mode

Criteria in which FortiProxy device will use to skip rule(s).

option

-

Option

Description

all

Must match all skip entries.

any

Must match any skip entries.

config match-entries

Parameter

Description

Type

Size

id

ID.

integer

Minimum value: 0 Maximum value: 4294967295

target

Option in HTTP header or URL parameter to match.

option

-

Option

Description

path

URL path.

parameter

URL parameters.

referrer

Referrer option in HTTP header.

youtube-map

Youtube content-id collect.

youtube-id

Youtube content-id.

youku-id

Youku content-id.

config pattern

Parameter

Description

Type

Size

name

Pattern.

string

Maximum length: 64

config skip-entries

Parameter

Description

Type

Size

id

ID.

integer

Minimum value: 0 Maximum value: 4294967295

target

Option in HTTP header or URL parameter to match.

option

-

Option

Description

path

URL path.

parameter

URL parameters.

referrer

Referrer option in HTTP header.

youtube-map

Youtube content-id collect.

youtube-id

Youtube content-id.

youku-id

Youku content-id.

config pattern

Parameter

Description

Type

Size

name

Pattern.

string

Maximum length: 64

config content-id

Parameter

Description

Type

Size

target

Option in HTTP header or URL parameter to match.

option

-

Option

Description

path

URL path.

parameter

URL parameters.

referrer

Referrer option in HTTP header.

youtube-map

Youtube content-id collect.

youtube-id

Youtube content-id.

youku-id

Youku content-id.

hls-manifest

HLS manifest.

dash-manifest

DASH manifest.

hls-fragment

Stream fragment.

dash-fragment

Stream fragment.

start-str

String from which to start search.

string

Maximum length: 35

start-skip

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

integer

Minimum value: 0 Maximum value: 4294967295

start-direction

Search direction from start-str match.

option

-

Option

Description

forward

Forward.

backward

Backward.

end-str

String from which to end search.

string

Maximum length: 35

end-skip

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

integer

Minimum value: 0 Maximum value: 4294967295

end-direction

Search direction from end-str match.

option

-

Option

Description

forward

Forward.

backward

Backward.

range-str

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

string

Maximum length: 35

config wanopt content-delivery-network-rule

Configure WAN optimization content delivery network rules.

config wanopt content-delivery-network-rule
    Description: Configure WAN optimization content delivery network rules.
    edit <name>
        set comment {var-string}
        set status [enable|disable]
        config host-domain-name-suffix
            Description: Suffix portion of the fully qualified domain name (eg. fortinet.com in "www.fortinet.com").
            edit <name>
            next
        end
        set category [vcache|youtube]
        set request-cache-control [enable|disable]
        set response-cache-control [enable|disable]
        set response-expires [enable|disable]
        set updateserver [enable|disable]
        config rules
            Description: WAN optimization content delivery network rule entries.
            edit <name>
                set match-mode [all|any]
                set skip-rule-mode [all|any]
                config match-entries
                    Description: List of entries to match.
                    edit <id>
                        set target [path|parameter|...]
                        config pattern
                            Description: Referrer or URL pattern (eg. "a", "a*c", "*a*", "a*c*e", and "*").
                            edit <name>
                            next
                        end
                    next
                end
                config skip-entries
                    Description: List of entries to skip.
                    edit <id>
                        set target [path|parameter|...]
                        config pattern
                            Description: Referrer or URL pattern (eg. "a", "a*c", "*a*", "a*c*e", and "*").
                            edit <name>
                            next
                        end
                    next
                end
                config content-id
                    Description: Content ID settings.
                    set target [path|parameter|...]
                    set start-str {string}
                    set start-skip {integer}
                    set start-direction [forward|backward]
                    set end-str {string}
                    set end-skip {integer}
                    set end-direction [forward|backward]
                    set range-str {string}
                end
            next
        end
    next
end

config wanopt content-delivery-network-rule

Parameter

Description

Type

Size

name

Name of table.

string

Maximum length: 35

comment

Comment.

var-string

Maximum length: 255

status

Enable/disable WAN optimization content delivery network rules.

option

-

Option

Description

enable

Enable setting.

disable

Disable setting.

category

Content delivery network rule category.

option

-

Option

Description

vcache

Vcache content delivery network.

youtube

Youtube content delivery network.

request-cache-control

Enable/disable http request cache control.

option

-

Option

Description

enable

Enable setting.

disable

Disable setting.

response-cache-control

Enable/disable http response cache control.

option

-

Option

Description

enable

Enable setting.

disable

Disable setting.

response-expires

Enable/disable http response cache expires.

option

-

Option

Description

enable

Enable setting.

disable

Disable setting.

updateserver

Enable/disable update server.

option

-

Option

Description

enable

Enable setting.

disable

Disable setting.

config host-domain-name-suffix

Parameter

Description

Type

Size

name

Suffix portion of the fully qualified domain name.

string

Maximum length: 64

config rules

Parameter

Description

Type

Size

name

WAN optimization content delivery network rule name.

string

Maximum length: 35

match-mode

Criteria in which FortiProxy device must match in order to collect content ID.

option

-

Option

Description

all

Must match all of the match entries.

any

Must match any of the match entries.

skip-rule-mode

Criteria in which FortiProxy device will use to skip rule(s).

option

-

Option

Description

all

Must match all skip entries.

any

Must match any skip entries.

config match-entries

Parameter

Description

Type

Size

id

ID.

integer

Minimum value: 0 Maximum value: 4294967295

target

Option in HTTP header or URL parameter to match.

option

-

Option

Description

path

URL path.

parameter

URL parameters.

referrer

Referrer option in HTTP header.

youtube-map

Youtube content-id collect.

youtube-id

Youtube content-id.

youku-id

Youku content-id.

config pattern

Parameter

Description

Type

Size

name

Pattern.

string

Maximum length: 64

config skip-entries

Parameter

Description

Type

Size

id

ID.

integer

Minimum value: 0 Maximum value: 4294967295

target

Option in HTTP header or URL parameter to match.

option

-

Option

Description

path

URL path.

parameter

URL parameters.

referrer

Referrer option in HTTP header.

youtube-map

Youtube content-id collect.

youtube-id

Youtube content-id.

youku-id

Youku content-id.

config pattern

Parameter

Description

Type

Size

name

Pattern.

string

Maximum length: 64

config content-id

Parameter

Description

Type

Size

target

Option in HTTP header or URL parameter to match.

option

-

Option

Description

path

URL path.

parameter

URL parameters.

referrer

Referrer option in HTTP header.

youtube-map

Youtube content-id collect.

youtube-id

Youtube content-id.

youku-id

Youku content-id.

hls-manifest

HLS manifest.

dash-manifest

DASH manifest.

hls-fragment

Stream fragment.

dash-fragment

Stream fragment.

start-str

String from which to start search.

string

Maximum length: 35

start-skip

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

integer

Minimum value: 0 Maximum value: 4294967295

start-direction

Search direction from start-str match.

option

-

Option

Description

forward

Forward.

backward

Backward.

end-str

String from which to end search.

string

Maximum length: 35

end-skip

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

integer

Minimum value: 0 Maximum value: 4294967295

end-direction

Search direction from end-str match.

option

-

Option

Description

forward

Forward.

backward

Backward.

range-str

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

string

Maximum length: 35