Fortinet black logo

CLI Reference

config wanopt cache-service

config wanopt cache-service

Note

This command is available for model(s): FortiGate 1000D, FortiGate 101E, FortiGate 101F, FortiGate 1101E, FortiGate 1200D, FortiGate 140D-POE, FortiGate 140D, FortiGate 1500DT, FortiGate 1500D, FortiGate 2000E, FortiGate 201E, FortiGate 2201E, FortiGate 2500E, FortiGate 3000D, FortiGate 300D, FortiGate 301E, FortiGate 3100D, FortiGate 3200D, FortiGate 3301E, FortiGate 3401E, FortiGate 3601E, FortiGate 3700D, FortiGate 3800D, FortiGate 3810D, FortiGate 3815D, FortiGate 401E, FortiGate 5001D, FortiGate 5001E1, FortiGate 500D, FortiGate 501E, FortiGate 51E, FortiGate 52E, FortiGate 600D, FortiGate 601E, FortiGate 61E, FortiGate 61F, FortiGate 800D, FortiGate 81E-POE, FortiGate 81E, FortiGate 81F-POE, FortiGate 81F, FortiGate 900D, FortiGate 91E, FortiGate 92D, FortiGate VM64, FortiWiFi 51E, FortiWiFi 61E, FortiWiFi 61F, FortiWiFi 81F 2R-POE, FortiWiFi 81F 2R.

It is not available for: FortiGate 100EF, FortiGate 100E, FortiGate 100F, FortiGate 1100E, FortiGate 140E-POE, FortiGate 140E, FortiGate 200E, FortiGate 2200E, FortiGate 300E, FortiGate 30E 3G4G GBL, FortiGate 30E 3G4G INTL, FortiGate 30E 3G4G NAM, FortiGate 30E, FortiGate 3300E, FortiGate 3400E, FortiGate 3600E, FortiGate 3960E, FortiGate 3980E, FortiGate 400D, FortiGate 400E Bypass, FortiGate 400E, FortiGate 40F 3G4G, FortiGate 40F, FortiGate 5001E, FortiGate 500E, FortiGate 50E, FortiGate 600E, FortiGate 60E DSLJ, FortiGate 60E-POE, FortiGate 60E, FortiGate 60F, FortiGate 80E-POE, FortiGate 80E, FortiGate 80F Bypass, FortiGate 80F-POE, FortiGate 80F, FortiGate 90E, FortiGateRugged 30D, FortiGateRugged 35D, FortiGateRugged 60F 3G4G, FortiGateRugged 60F, FortiGateRugged 90D, FortiWiFi 30E 3G4G INTL, FortiWiFi 30E 3G4G NAM, FortiWiFi 30E, FortiWiFi 40F 3G4G, FortiWiFi 40F, FortiWiFi 50E 2R, FortiWiFi 50E, FortiWiFi 60E DSLJ, FortiWiFi 60E, FortiWiFi 60F, FortiWiFi 80F 2R.

Designate cache-service for wan-optimization and webcache.

config wanopt cache-service
    Description: Designate cache-service for wan-optimization and webcache.
    set acceptable-connections [any|peers]
    set collaboration [enable|disable]
    set device-id {string}
    config dst-peer
        Description: Modify cache-service destination peer list.
        edit <device-id>
            set auth-type {integer}
            set encode-type {integer}
            set priority {integer}
            set ip {ipv4-address-any}
        next
    end
    set prefer-scenario [balance|prefer-speed|...]
    config src-peer
        Description: Modify cache-service source peer list.
        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

acceptable-connections

Set strategy when accepting cache collaboration connection.

option

-

Option

Description

any

We can accept any cache-collaboration connection.

peers

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

collaboration

Enable/disable cache-collaboration between cache-service clusters.

option

-

Option

Description

enable

Enable cache cache-collaboration.

disable

Disable cache cache-collaboration.

device-id

Set identifier for this cache device.

string

Maximum length: 35

prefer-scenario

Set the preferred cache behavior towards the balance between latency and hit-ratio.

option

-

Option

Description

balance

Balance between speed and cache hit ratio.

prefer-speed

Prefer response speed at the expense of increased cache bypasses.

prefer-cache

Prefer improving hit-ratio through increasing latency tolerance.

config dst-peer

Parameter

Description

Type

Size

device-id

Device ID of this peer.

string

Maximum length: 35

auth-type

Set authentication type for this peer.

integer

Minimum value: 0 Maximum value: 255

encode-type

Set encode type for this peer.

integer

Minimum value: 0 Maximum value: 255

priority

Set priority for this peer.

integer

Minimum value: 0 Maximum value: 255

ip

Set cluster IP address of this peer.

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

Set authentication type for this peer.

integer

Minimum value: 0 Maximum value: 255

encode-type

Set encode type for this peer.

integer

Minimum value: 0 Maximum value: 255

priority

Set priority for this peer.

integer

Minimum value: 0 Maximum value: 255

ip

Set cluster IP address of this peer.

ipv4-address-any

Not Specified

config wanopt cache-service

Note

This command is available for model(s): FortiGate 1000D, FortiGate 101E, FortiGate 101F, FortiGate 1101E, FortiGate 1200D, FortiGate 140D-POE, FortiGate 140D, FortiGate 1500DT, FortiGate 1500D, FortiGate 2000E, FortiGate 201E, FortiGate 2201E, FortiGate 2500E, FortiGate 3000D, FortiGate 300D, FortiGate 301E, FortiGate 3100D, FortiGate 3200D, FortiGate 3301E, FortiGate 3401E, FortiGate 3601E, FortiGate 3700D, FortiGate 3800D, FortiGate 3810D, FortiGate 3815D, FortiGate 401E, FortiGate 5001D, FortiGate 5001E1, FortiGate 500D, FortiGate 501E, FortiGate 51E, FortiGate 52E, FortiGate 600D, FortiGate 601E, FortiGate 61E, FortiGate 61F, FortiGate 800D, FortiGate 81E-POE, FortiGate 81E, FortiGate 81F-POE, FortiGate 81F, FortiGate 900D, FortiGate 91E, FortiGate 92D, FortiGate VM64, FortiWiFi 51E, FortiWiFi 61E, FortiWiFi 61F, FortiWiFi 81F 2R-POE, FortiWiFi 81F 2R.

It is not available for: FortiGate 100EF, FortiGate 100E, FortiGate 100F, FortiGate 1100E, FortiGate 140E-POE, FortiGate 140E, FortiGate 200E, FortiGate 2200E, FortiGate 300E, FortiGate 30E 3G4G GBL, FortiGate 30E 3G4G INTL, FortiGate 30E 3G4G NAM, FortiGate 30E, FortiGate 3300E, FortiGate 3400E, FortiGate 3600E, FortiGate 3960E, FortiGate 3980E, FortiGate 400D, FortiGate 400E Bypass, FortiGate 400E, FortiGate 40F 3G4G, FortiGate 40F, FortiGate 5001E, FortiGate 500E, FortiGate 50E, FortiGate 600E, FortiGate 60E DSLJ, FortiGate 60E-POE, FortiGate 60E, FortiGate 60F, FortiGate 80E-POE, FortiGate 80E, FortiGate 80F Bypass, FortiGate 80F-POE, FortiGate 80F, FortiGate 90E, FortiGateRugged 30D, FortiGateRugged 35D, FortiGateRugged 60F 3G4G, FortiGateRugged 60F, FortiGateRugged 90D, FortiWiFi 30E 3G4G INTL, FortiWiFi 30E 3G4G NAM, FortiWiFi 30E, FortiWiFi 40F 3G4G, FortiWiFi 40F, FortiWiFi 50E 2R, FortiWiFi 50E, FortiWiFi 60E DSLJ, FortiWiFi 60E, FortiWiFi 60F, FortiWiFi 80F 2R.

Designate cache-service for wan-optimization and webcache.

config wanopt cache-service
    Description: Designate cache-service for wan-optimization and webcache.
    set acceptable-connections [any|peers]
    set collaboration [enable|disable]
    set device-id {string}
    config dst-peer
        Description: Modify cache-service destination peer list.
        edit <device-id>
            set auth-type {integer}
            set encode-type {integer}
            set priority {integer}
            set ip {ipv4-address-any}
        next
    end
    set prefer-scenario [balance|prefer-speed|...]
    config src-peer
        Description: Modify cache-service source peer list.
        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

acceptable-connections

Set strategy when accepting cache collaboration connection.

option

-

Option

Description

any

We can accept any cache-collaboration connection.

peers

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

collaboration

Enable/disable cache-collaboration between cache-service clusters.

option

-

Option

Description

enable

Enable cache cache-collaboration.

disable

Disable cache cache-collaboration.

device-id

Set identifier for this cache device.

string

Maximum length: 35

prefer-scenario

Set the preferred cache behavior towards the balance between latency and hit-ratio.

option

-

Option

Description

balance

Balance between speed and cache hit ratio.

prefer-speed

Prefer response speed at the expense of increased cache bypasses.

prefer-cache

Prefer improving hit-ratio through increasing latency tolerance.

config dst-peer

Parameter

Description

Type

Size

device-id

Device ID of this peer.

string

Maximum length: 35

auth-type

Set authentication type for this peer.

integer

Minimum value: 0 Maximum value: 255

encode-type

Set encode type for this peer.

integer

Minimum value: 0 Maximum value: 255

priority

Set priority for this peer.

integer

Minimum value: 0 Maximum value: 255

ip

Set cluster IP address of this peer.

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

Set authentication type for this peer.

integer

Minimum value: 0 Maximum value: 255

encode-type

Set encode type for this peer.

integer

Minimum value: 0 Maximum value: 255

priority

Set priority for this peer.

integer

Minimum value: 0 Maximum value: 255

ip

Set cluster IP address of this peer.

ipv4-address-any

Not Specified