Squid_ The Definitive Guide - Duane Wessels [203]
Example
wccp_router 172.16.5.1
Related
wccp_version, wccp_incoming_address, wccp_outgoing_address
Name
wccp_version
Synopsis
This particular version number refers to second field of the WCCP "Here I Am" message. It isn't the same as WCCPv1 versus WCCPv2. Some users report that older installations of Cisco IOS only work when this directive is set to 3.
Syntax
wccp_version N
Default
wccp_version 4
Example
wccp_version 3
Related
wccp_router
Name
wccp_incoming_address
Synopsis
Squid listens for WCCP messages on all local interfaces by default. If you set this directive, Squid listens on only the specified address.
Syntax
wccp_incoming_address ip-address
Default
wccp_incoming_address 0.0.0.0
Example
wccp_incoming_address 10.1.2.3
Related
wccp_router, wccp_outgoing_address, udp_incoming_address
Name
wccp_outgoing_address
Synopsis
If, for some reason, you want Squid to send and receive WCCP messages on different interfaces, set this directive to the address of the outgoing interface. If this directive isn't set, as is the default, Squid uses the same socket for incoming and outgoing messages.
Syntax
wccp_outgoing_address ip-address
Default
No default
Example
wccp_outgoing_address 172.16.1.1
Related
wccp_router, wccp_incoming_address, udp_outgoing_address
Name
delay_pools
Synopsis
This directive specifies the number of delay pools that you will later define with the delay_class and delay_parameters directives. It tells Squid the size of certain arrays used in the delay pools implementation. It must appear in the configuration file before the other delay pools directives.
Note that in order to use delay pools, you must give the —enable-delay-pools option to ./configure.
Syntax
delay_pools N
Default
delay_pools 0
Example
delay_pools 4
Related
delay_class, delay_access, delay_parameters, delay_initial_bucket_level
Name
delay_class
Synopsis
This directive defines the class of each delay pool. The first argument is the delay pool index. Index values start at 1 and must be less than or equal to the delay_pools value. The second argument is the delay class, which has three possible values:
A class 1 pool uses a single, aggregate bucket for all traffic that applies to the pool.
A class 2 pool uses a single, aggregate bucket, as well as 256 individual buckets. The individual bucket is chosen by the last octet of the client's IPv4 address.
A class 3 bucket uses a single, aggregate bucket, 256 network buckets, and 65,536 individual buckets. The network bucket is chosen based on the third octet of the client's IPv4 address. The individual bucket is chosen by the third and fourth octets.
Note that the class 2 and class 3 pools have multiple types of buckets (aggregate, network, individual). A client receives a traffic allocation from all relevant buckets, not just one of them. In other words, if any of the relevant buckets are empty, the client doesn't receive any traffic allocation.
Syntax
delay_class pool-number
class
Default
No default
Example
delay_class 1 2
delay_class 2 3
Related
delay_pools, delay_access, delay_parameters, delay_initial_bucket_level
Name
delay_access
Synopsis
This directive maps a client request to a particular delay pool. A client's cache miss is delayed only if it is "allowed" by one of the delay_access rules. Squid checks the access rules for all pools in order. If a particular request is denied by all delay_access rules, it isn't delayed. You must define at least one rule to use delay pools.
Syntax
delay_access pool-number allow|deny [!]ACLname ...
Default
No default
Example
acl Dorms src 172.17.0.0/16
delay_access 1 allow Dorms
Related
delay_pools, delay_class, delay_parameters, delay_initial_bucket_level
Name
delay_parameters
Synopsis
The delay_parameters directive determines the fill rate and capacity for each delay pools bucket. Following the pool number, you must write one, two, or three pairs of numbers. The number of pairs