Fortinet black logo

CLI Reference

wanopt content-delivery-network-rule

wanopt content-delivery-network-rule

Use this command to configure WAN optimization content delivery network rules, including video-cache matching rules.

History

The following table shows all newly added, changed, or removed entries as of FortiOS 6.0.

Command Description

config wanopt content-delievry-network-rule

New config command.

Edit web-caching options, including video-cache matching rules.

config wanopt content-delivery-network-rule
    edit {name}
    # Configure WAN optimization content delivery network rules.
        set name {string}   Name of table. size[35]
        set comment {string}   Comment about this CDN-rule. size[255]
        set status {enable | disable}   Enable/disable WAN optimization content delivery network rules.
        config host-domain-name-suffix
            edit {name}
            # Suffix portion of the fully qualified domain name (eg. fortinet.com in "www.fortinet.com").
                set name {string}   Suffix portion of the fully qualified domain name. size[64]
            next
        set category {vcache | youtube}   Content delivery network rule category.
                vcache   Vcache content delivery network.
                youtube  Youtube content delivery network.
        set request-cache-control {enable | disable}   Enable/disable HTTP request cache control.
        set response-cache-control {enable | disable}   Enable/disable HTTP response cache control.
        set response-expires {enable | disable}   Enable/disable HTTP response cache expires.
        set text-response-vcache {enable | disable}   Enable/disable caching of text responses.
        set updateserver {enable | disable}   Enable/disable update server.
        config rules
            edit {name}
            # WAN optimization content delivery network rule entries.
                set name {string}   WAN optimization content delivery network rule name. size[35]
                set match-mode {all | any}   Match criteria for collecting content ID.
                        all  Must match all of the match entries.
                        any  Must match any of the match entries.
                set skip-rule-mode {all | any}   Skip mode when evaluating skip-rules.
                        all  Must match all skip entries.
                        any  Must match any skip entries.
                config match-entries
                    edit {id}
                    # List of entries to match.
                        set id {integer}   Rule ID. range[0-4294967295]
                        set target {option}   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.
                        config pattern
                            edit {string}
                            # Pattern string for matching target (Referrer or URL pattern, eg. "a", "a*c", "*a*", "a*c*e", and "*").
                                set string {string}   Pattern strings. size[64]
                            next
                    next
                config skip-entries
                    edit {id}
                    # List of entries to skip.
                        set id {integer}   Rule ID. range[0-4294967295]
                        set target {option}   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.
                        config pattern
                            edit {string}
                            # Pattern string for matching target (Referrer or URL pattern, eg. "a", "a*c", "*a*", "a*c*e", and "*").
                                set string {string}   Pattern strings. size[64]
                            next
                    next
                config content-id
                    set target {option}   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.
                    set start-str {string}   String from which to start search. size[35]
                    set start-skip {integer}   Number of characters in URL to skip after start-str has been matched. range[0-4294967295]
                    set start-direction {forward | backward}   Search direction from start-str match.
                            forward   Forward direction.
                            backward  Backward direction.
                    set end-str {string}   String from which to end search. size[35]
                    set end-skip {integer}   Number of characters in URL to skip after end-str has been matched. range[0-4294967295]
                    set end-direction {forward | backward}   Search direction from end-str match.
                            forward   Forward direction.
                            backward  Backward direction.
                    set range-str {string}   Name of content ID within the start string and end string. size[35]
            next
    next
end

wanopt content-delivery-network-rule

Use this command to configure WAN optimization content delivery network rules, including video-cache matching rules.

History

The following table shows all newly added, changed, or removed entries as of FortiOS 6.0.

Command Description

config wanopt content-delievry-network-rule

New config command.

Edit web-caching options, including video-cache matching rules.

config wanopt content-delivery-network-rule
    edit {name}
    # Configure WAN optimization content delivery network rules.
        set name {string}   Name of table. size[35]
        set comment {string}   Comment about this CDN-rule. size[255]
        set status {enable | disable}   Enable/disable WAN optimization content delivery network rules.
        config host-domain-name-suffix
            edit {name}
            # Suffix portion of the fully qualified domain name (eg. fortinet.com in "www.fortinet.com").
                set name {string}   Suffix portion of the fully qualified domain name. size[64]
            next
        set category {vcache | youtube}   Content delivery network rule category.
                vcache   Vcache content delivery network.
                youtube  Youtube content delivery network.
        set request-cache-control {enable | disable}   Enable/disable HTTP request cache control.
        set response-cache-control {enable | disable}   Enable/disable HTTP response cache control.
        set response-expires {enable | disable}   Enable/disable HTTP response cache expires.
        set text-response-vcache {enable | disable}   Enable/disable caching of text responses.
        set updateserver {enable | disable}   Enable/disable update server.
        config rules
            edit {name}
            # WAN optimization content delivery network rule entries.
                set name {string}   WAN optimization content delivery network rule name. size[35]
                set match-mode {all | any}   Match criteria for collecting content ID.
                        all  Must match all of the match entries.
                        any  Must match any of the match entries.
                set skip-rule-mode {all | any}   Skip mode when evaluating skip-rules.
                        all  Must match all skip entries.
                        any  Must match any skip entries.
                config match-entries
                    edit {id}
                    # List of entries to match.
                        set id {integer}   Rule ID. range[0-4294967295]
                        set target {option}   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.
                        config pattern
                            edit {string}
                            # Pattern string for matching target (Referrer or URL pattern, eg. "a", "a*c", "*a*", "a*c*e", and "*").
                                set string {string}   Pattern strings. size[64]
                            next
                    next
                config skip-entries
                    edit {id}
                    # List of entries to skip.
                        set id {integer}   Rule ID. range[0-4294967295]
                        set target {option}   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.
                        config pattern
                            edit {string}
                            # Pattern string for matching target (Referrer or URL pattern, eg. "a", "a*c", "*a*", "a*c*e", and "*").
                                set string {string}   Pattern strings. size[64]
                            next
                    next
                config content-id
                    set target {option}   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.
                    set start-str {string}   String from which to start search. size[35]
                    set start-skip {integer}   Number of characters in URL to skip after start-str has been matched. range[0-4294967295]
                    set start-direction {forward | backward}   Search direction from start-str match.
                            forward   Forward direction.
                            backward  Backward direction.
                    set end-str {string}   String from which to end search. size[35]
                    set end-skip {integer}   Number of characters in URL to skip after end-str has been matched. range[0-4294967295]
                    set end-direction {forward | backward}   Search direction from end-str match.
                            forward   Forward direction.
                            backward  Backward direction.
                    set range-str {string}   Name of content ID within the start string and end string. size[35]
            next
    next
end