Fortinet white logo
Fortinet white logo

CLI Reference

config system wccp

config system wccp

Configure WCCP.

config system wccp
    Description: Configure WCCP.
    edit <service-id>
        set assignment-bucket-format [wccp-v2|cisco-implementation]
        set assignment-dstaddr-mask {ipv4-netmask-any}
        set assignment-method [HASH|MASK|...]
        set assignment-srcaddr-mask {ipv4-netmask-any}
        set assignment-weight {integer}
        set authentication [enable|disable]
        set cache-engine-method [GRE|L2]
        set cache-id {ipv4-address}
        set forward-method [GRE|L2|...]
        set group-address {ipv4-address-multicast}
        set password {password}
        set ports {user}
        set ports-defined [source|destination]
        set primary-hash {option1}, {option2}, ...
        set priority {integer}
        set protocol {integer}
        set return-method [GRE|L2|...]
        set router-id {ipv4-address}
        set router-list {user}
        set server-list {user}
        set server-type [forward|proxy]
        set service-type [auto|standard|...]
    next
end

config system wccp

Parameter

Description

Type

Size

assignment-bucket-format

Assignment bucket format for the WCCP cache engine.

option

-

Option

Description

wccp-v2

WCCP-v2 bucket format.

cisco-implementation

Cisco bucket format.

assignment-dstaddr-mask

Assignment destination address mask.

ipv4-netmask-any

Not Specified

assignment-method

Hash key assignment preference.

option

-

Option

Description

HASH

HASH assignment method.

MASK

MASK assignment method.

any

HASH or MASK.

assignment-srcaddr-mask

Assignment source address mask.

ipv4-netmask-any

Not Specified

assignment-weight

Assignment of hash weight/ratio for the WCCP cache engine.

integer

Minimum value: 0 Maximum value: 255

authentication

Enable/disable MD5 authentication.

option

-

Option

Description

enable

Enable MD5 authentication.

disable

Disable MD5 authentication.

cache-engine-method

Method used to forward traffic to the routers or to return to the cache engine.

option

-

Option

Description

GRE

GRE encapsulation.

L2

L2 rewrite.

cache-id

IP address known to all routers. If the addresses are the same, use the default 0.0.0.0.

ipv4-address

Not Specified

forward-method

Method used to forward traffic to the cache servers.

option

-

Option

Description

GRE

GRE encapsulation.

L2

L2 rewrite.

any

GRE or L2.

group-address

IP multicast address used by the cache routers. For the FortiGate to ignore multicast WCCP traffic, use the default 0.0.0.0.

ipv4-address-multicast

Not Specified

password

Password for MD5 authentication.

password

Not Specified

ports

Service ports.

user

Not Specified

ports-defined

Match method.

option

-

Option

Description

source

Source port match.

destination

Destination port match.

primary-hash

Hash method.

option

-

Option

Description

src-ip

Source IP hash.

dst-ip

Destination IP hash.

src-port

Source port hash.

dst-port

Destination port hash.

priority

Service priority.

integer

Minimum value: 0 Maximum value: 255

protocol

Service protocol.

integer

Minimum value: 0 Maximum value: 255

return-method

Method used to decline a redirected packet and return it to the FortiGate.

option

-

Option

Description

GRE

GRE encapsulation.

L2

L2 rewrite.

any

GRE or L2.

router-id

IP address known to all cache engines. If all cache engines connect to the same FortiGate interface, use the default 0.0.0.0.

ipv4-address

Not Specified

router-list

IP addresses of one or more WCCP routers.

user

Not Specified

server-list

IP addresses and netmasks for up to four cache servers.

user

Not Specified

server-type

Cache server type.

option

-

Option

Description

forward

Forward server.

proxy

Proxy server.

service-id

Service ID.

string

Maximum length: 3

service-type

WCCP service type used by the cache server for logical interception and redirection of traffic.

option

-

Option

Description

auto

auto

standard

Standard service.

dynamic

Dynamic service.

config system wccp

config system wccp

Configure WCCP.

config system wccp
    Description: Configure WCCP.
    edit <service-id>
        set assignment-bucket-format [wccp-v2|cisco-implementation]
        set assignment-dstaddr-mask {ipv4-netmask-any}
        set assignment-method [HASH|MASK|...]
        set assignment-srcaddr-mask {ipv4-netmask-any}
        set assignment-weight {integer}
        set authentication [enable|disable]
        set cache-engine-method [GRE|L2]
        set cache-id {ipv4-address}
        set forward-method [GRE|L2|...]
        set group-address {ipv4-address-multicast}
        set password {password}
        set ports {user}
        set ports-defined [source|destination]
        set primary-hash {option1}, {option2}, ...
        set priority {integer}
        set protocol {integer}
        set return-method [GRE|L2|...]
        set router-id {ipv4-address}
        set router-list {user}
        set server-list {user}
        set server-type [forward|proxy]
        set service-type [auto|standard|...]
    next
end

config system wccp

Parameter

Description

Type

Size

assignment-bucket-format

Assignment bucket format for the WCCP cache engine.

option

-

Option

Description

wccp-v2

WCCP-v2 bucket format.

cisco-implementation

Cisco bucket format.

assignment-dstaddr-mask

Assignment destination address mask.

ipv4-netmask-any

Not Specified

assignment-method

Hash key assignment preference.

option

-

Option

Description

HASH

HASH assignment method.

MASK

MASK assignment method.

any

HASH or MASK.

assignment-srcaddr-mask

Assignment source address mask.

ipv4-netmask-any

Not Specified

assignment-weight

Assignment of hash weight/ratio for the WCCP cache engine.

integer

Minimum value: 0 Maximum value: 255

authentication

Enable/disable MD5 authentication.

option

-

Option

Description

enable

Enable MD5 authentication.

disable

Disable MD5 authentication.

cache-engine-method

Method used to forward traffic to the routers or to return to the cache engine.

option

-

Option

Description

GRE

GRE encapsulation.

L2

L2 rewrite.

cache-id

IP address known to all routers. If the addresses are the same, use the default 0.0.0.0.

ipv4-address

Not Specified

forward-method

Method used to forward traffic to the cache servers.

option

-

Option

Description

GRE

GRE encapsulation.

L2

L2 rewrite.

any

GRE or L2.

group-address

IP multicast address used by the cache routers. For the FortiGate to ignore multicast WCCP traffic, use the default 0.0.0.0.

ipv4-address-multicast

Not Specified

password

Password for MD5 authentication.

password

Not Specified

ports

Service ports.

user

Not Specified

ports-defined

Match method.

option

-

Option

Description

source

Source port match.

destination

Destination port match.

primary-hash

Hash method.

option

-

Option

Description

src-ip

Source IP hash.

dst-ip

Destination IP hash.

src-port

Source port hash.

dst-port

Destination port hash.

priority

Service priority.

integer

Minimum value: 0 Maximum value: 255

protocol

Service protocol.

integer

Minimum value: 0 Maximum value: 255

return-method

Method used to decline a redirected packet and return it to the FortiGate.

option

-

Option

Description

GRE

GRE encapsulation.

L2

L2 rewrite.

any

GRE or L2.

router-id

IP address known to all cache engines. If all cache engines connect to the same FortiGate interface, use the default 0.0.0.0.

ipv4-address

Not Specified

router-list

IP addresses of one or more WCCP routers.

user

Not Specified

server-list

IP addresses and netmasks for up to four cache servers.

user

Not Specified

server-type

Cache server type.

option

-

Option

Description

forward

Forward server.

proxy

Proxy server.

service-id

Service ID.

string

Maximum length: 3

service-type

WCCP service type used by the cache server for logical interception and redirection of traffic.

option

-

Option

Description

auto

auto

standard

Standard service.

dynamic

Dynamic service.