Fortinet white logo
Fortinet white logo

CLI Reference

config wanopt cache-service

config wanopt cache-service

Designate cache-service for WAN optimization and WEB cache.

config wanopt cache-service
    Description: Designate cache-service for WAN optimization and WEB cache.
    set prefer-senario [balance|prefer-speed|...]
    set collaboration [enable|disable]
    set device-id {string}
    set acceptable-connections [any|peers]
    config dst-peer
        Description: cache-service dst-peer.
        edit <device-id>
            set auth-type {integer}
            set encode-type {integer}
            set priority {integer}
            set ip {ipv4-address-any}
        next
    end
    config src-peer
        Description: cache-service src-peer.
        edit <device-id>
            set auth-type {integer}
            set encode-type {integer}
            set priority {integer}
            set ip {ipv4-address-any}
        next
    end
end

config wanopt cache-service

Parameter

Description

Type

Size

prefer-senario

prefer senario

option

-

Option

Description

balance

Balance between speed and cache hits ratio.

prefer-speed

Prefer high response speed with more cache bypassing.

prefer-cache

Prefer high hit-ratio with lower response speed.

collaboration

enable/disable cache-collaboration

option

-

Option

Description

enable

Enable cache cache-collaboration.

disable

Disable cache cache-collaboration.

device-id

device id of this cache device

string

Maximum length: 35

acceptable-connections

how can this device accept collaboration connections

option

-

Option

Description

any

We can accept any cache-collaboration connecton.

peers

We can only accept connections that are already in src-peers.

config dst-peer

Parameter

Description

Type

Size

device-id

Device ID of this peer.

string

Maximum length: 35

auth-type

authentication type

integer

Minimum value: 0 Maximum value: 255

encode-type

encode type

integer

Minimum value: 0 Maximum value: 255

priority

priority

integer

Minimum value: 0 Maximum value: 255

ip

Cluster IP address.

ipv4-address-any

Not Specified

config src-peer

Parameter

Description

Type

Size

device-id

Device ID of this peer.

string

Maximum length: 35

auth-type

authentication type

integer

Minimum value: 0 Maximum value: 255

encode-type

encode type

integer

Minimum value: 0 Maximum value: 255

priority

priority

integer

Minimum value: 0 Maximum value: 255

ip

Cluster IP address.

ipv4-address-any

Not Specified

config wanopt cache-service

config wanopt cache-service

Designate cache-service for WAN optimization and WEB cache.

config wanopt cache-service
    Description: Designate cache-service for WAN optimization and WEB cache.
    set prefer-senario [balance|prefer-speed|...]
    set collaboration [enable|disable]
    set device-id {string}
    set acceptable-connections [any|peers]
    config dst-peer
        Description: cache-service dst-peer.
        edit <device-id>
            set auth-type {integer}
            set encode-type {integer}
            set priority {integer}
            set ip {ipv4-address-any}
        next
    end
    config src-peer
        Description: cache-service src-peer.
        edit <device-id>
            set auth-type {integer}
            set encode-type {integer}
            set priority {integer}
            set ip {ipv4-address-any}
        next
    end
end

config wanopt cache-service

Parameter

Description

Type

Size

prefer-senario

prefer senario

option

-

Option

Description

balance

Balance between speed and cache hits ratio.

prefer-speed

Prefer high response speed with more cache bypassing.

prefer-cache

Prefer high hit-ratio with lower response speed.

collaboration

enable/disable cache-collaboration

option

-

Option

Description

enable

Enable cache cache-collaboration.

disable

Disable cache cache-collaboration.

device-id

device id of this cache device

string

Maximum length: 35

acceptable-connections

how can this device accept collaboration connections

option

-

Option

Description

any

We can accept any cache-collaboration connecton.

peers

We can only accept connections that are already in src-peers.

config dst-peer

Parameter

Description

Type

Size

device-id

Device ID of this peer.

string

Maximum length: 35

auth-type

authentication type

integer

Minimum value: 0 Maximum value: 255

encode-type

encode type

integer

Minimum value: 0 Maximum value: 255

priority

priority

integer

Minimum value: 0 Maximum value: 255

ip

Cluster IP address.

ipv4-address-any

Not Specified

config src-peer

Parameter

Description

Type

Size

device-id

Device ID of this peer.

string

Maximum length: 35

auth-type

authentication type

integer

Minimum value: 0 Maximum value: 255

encode-type

encode type

integer

Minimum value: 0 Maximum value: 255

priority

priority

integer

Minimum value: 0 Maximum value: 255

ip

Cluster IP address.

ipv4-address-any

Not Specified