Fortinet Document Library

Version:


Table of Contents

CLI Reference

6.2.1
Copy Link

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]
          set host-domain-name-suffix <name1>, <name2>, ...
          set category [vcache|youtube]
          set request-cache-control [enable|disable]
          set response-cache-control [enable|disable]
          set response-expires [enable|disable]
          set text-response-vcache [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|...]
                          set pattern <string1>, <string2>, ...
                      next
                  end
                  config skip-entries
                      Description: List of entries to skip.
                      edit <id>
                          set target [path|parameter|...]
                          set pattern <string1>, <string2>, ...
                      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 Name Description Type Size
comment Comment about this CDN-rule. var-string Maximum length: 255
status Enable/disable WAN optimization content delivery network rules.
enable: Enable setting.
disable: Disable setting.
option -
host-domain-name-suffix <name> Suffix portion of the fully qualified domain name (eg. fortinet.com in "www.fortinet.com").
Suffix portion of the fully qualified domain name.
string Maximum length: 79
category Content delivery network rule category.
vcache: Vcache content delivery network.
youtube: Youtube content delivery network.
option -
request-cache-control Enable/disable HTTP request cache control.
enable: Enable setting.
disable: Disable setting.
option -
response-cache-control Enable/disable HTTP response cache control.
enable: Enable setting.
disable: Disable setting.
option -
response-expires Enable/disable HTTP response cache expires.
enable: Enable setting.
disable: Disable setting.
option -
text-response-vcache Enable/disable caching of text responses.
enable: Enable setting.
disable: Disable setting.
option -
updateserver Enable/disable update server.
enable: Enable setting.
disable: Disable setting.
option -

config rules

Parameter Name Description Type Size
match-mode Match criteria for collecting content ID.
all: Must match all of the match entries.
any: Must match any of the match entries.
option -
skip-rule-mode Skip mode when evaluating skip-rules.
all: Must match all skip entries.
any: Must match any skip entries.
option -

config match-entries

Parameter Name Description Type Size
target Option in HTTP header or URL parameter to match.
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.
option -
pattern <string> Pattern string for matching target (Referrer or URL pattern, eg. "a", "ac", "a", "ace", and "").
Pattern strings.
string Maximum length: 79

config skip-entries

Parameter Name Description Type Size
target Option in HTTP header or URL parameter to match.
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.
option -
pattern <string> Pattern string for matching target (Referrer or URL pattern, eg. "a", "ac", "a", "ace", and "").
Pattern strings.
string Maximum length: 79

config content-id

Parameter Name Description Type Size
target Option in HTTP header or URL parameter to match.
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.
option -
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.
forward: Forward direction.
backward: Backward direction.
option -
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.
forward: Forward direction.
backward: Backward direction.
option -
range-str Name of content ID within the start string and end string. string Maximum length: 35

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]
          set host-domain-name-suffix <name1>, <name2>, ...
          set category [vcache|youtube]
          set request-cache-control [enable|disable]
          set response-cache-control [enable|disable]
          set response-expires [enable|disable]
          set text-response-vcache [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|...]
                          set pattern <string1>, <string2>, ...
                      next
                  end
                  config skip-entries
                      Description: List of entries to skip.
                      edit <id>
                          set target [path|parameter|...]
                          set pattern <string1>, <string2>, ...
                      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 Name Description Type Size
comment Comment about this CDN-rule. var-string Maximum length: 255
status Enable/disable WAN optimization content delivery network rules.
enable: Enable setting.
disable: Disable setting.
option -
host-domain-name-suffix <name> Suffix portion of the fully qualified domain name (eg. fortinet.com in "www.fortinet.com").
Suffix portion of the fully qualified domain name.
string Maximum length: 79
category Content delivery network rule category.
vcache: Vcache content delivery network.
youtube: Youtube content delivery network.
option -
request-cache-control Enable/disable HTTP request cache control.
enable: Enable setting.
disable: Disable setting.
option -
response-cache-control Enable/disable HTTP response cache control.
enable: Enable setting.
disable: Disable setting.
option -
response-expires Enable/disable HTTP response cache expires.
enable: Enable setting.
disable: Disable setting.
option -
text-response-vcache Enable/disable caching of text responses.
enable: Enable setting.
disable: Disable setting.
option -
updateserver Enable/disable update server.
enable: Enable setting.
disable: Disable setting.
option -

config rules

Parameter Name Description Type Size
match-mode Match criteria for collecting content ID.
all: Must match all of the match entries.
any: Must match any of the match entries.
option -
skip-rule-mode Skip mode when evaluating skip-rules.
all: Must match all skip entries.
any: Must match any skip entries.
option -

config match-entries

Parameter Name Description Type Size
target Option in HTTP header or URL parameter to match.
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.
option -
pattern <string> Pattern string for matching target (Referrer or URL pattern, eg. "a", "ac", "a", "ace", and "").
Pattern strings.
string Maximum length: 79

config skip-entries

Parameter Name Description Type Size
target Option in HTTP header or URL parameter to match.
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.
option -
pattern <string> Pattern string for matching target (Referrer or URL pattern, eg. "a", "ac", "a", "ace", and "").
Pattern strings.
string Maximum length: 79

config content-id

Parameter Name Description Type Size
target Option in HTTP header or URL parameter to match.
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.
option -
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.
forward: Forward direction.
backward: Backward direction.
option -
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.
forward: Forward direction.
backward: Backward direction.
option -
range-str Name of content ID within the start string and end string. string Maximum length: 35