WCCP on ASA
The flow of work for redirection has these steps:
- The host uses the default gateway of the ASA in order to open the HTTP connection.
- The ASA redirects the packet (encapsulated in GRE) to the CE.
- The CE verifies or updates the cache for the requested site.
- The CE replies directly to the host.
- All outbound packets from the host are redirected from the ASA to the CE.
- All inbound packets from the server to the host are directed from the CE to the host.
WCCP Redirection
WCCP V2 defines mechanisms that allow one or more routers enabled for transparent redirection to discover, verify, and advertise connectivity to one or more web caches. These are the steps in WCCP redirection:
- The user enters a URL into a browser.
- The URL is forwarded to Domain Name System (DNS) for address resolution.
- The URL is resolved to the IP address of the web server.
- The client initiates a connection to the server with a SYN request.
- On the active router, the WCCP web cache service intercepts the HTTP request (TCP port 80) and redirects the request to caches based on the configured load distribution:
- If there is a cache hit, the CE responds to the original GET with the requested content and uses the source IP address of the origin server in the response pack.
- If the requested content is not already stored on the CE, there is a cache miss:
- The CE establishes a connection to the origin server, uses its own IP address as the source, and sends the HTTP GET.
- The server responds to CE with content.
- The CE writes a copy of the cacheable content to the disk.
Configurations
1.Configure an access-list containing all members of WCCP servers.
access-list wccp-servers permit ip host 192.168.6.10 any
2. Create an access-list of the traffic that needs to be re-directed to WCCP
access-list wccp-traffic permit ip 192.168.6.0 255.255.255.0 any
4. Enable
5. Enabling WCCP to
Verify with the WCCP provider regarding service IDs that they support.interface inside service 60 redirect inwccpShow commands and debugs:
show wccp web-cacheshow wccp interfacedebug wccp eventdebug wccp packets