How do you configure a Web Cache Communication Protocol (WCCP) on a Cisco catalyst 3560 or 3750 switch?
Environment: Cisco Web Security Appliance (WSA) and Cisco Catalyst 3560 or 3750
WCCP is only supported on the Catalyst 3560/3750 running IP Services or Advanced IP Services feature sets, on IOS 12.2(25) and later. The IP Base feature set does not support WCCP. WCCP is supported only on the SDM templates that support PBR: access, routing, and dual IPv4/v6 routing.
In these examples, use the "routing" template.
Setting the SDM Template on the Catalyst 3560/3750: |
Switch(config)#sdm prefer routing Switch(config)#do wr mem Switch(config)#reload |
Note: A reboot is required for the SDM template change to take effect.
Basic WCCP Configuration: |
Switch(config)#ip wccp web-cache Switch(config)#interface <client_vlan_int> Switch(config-if)#ip wccp web-cache redirect in ! ! and don't forget to save config ! Switch(config-if)#do wr mem |
Using a slightly more advanced configuration, a WCCP redirect-list can be used to exclude certain destination networks from WCCP redirection. In this example, exclude any traffic destined for RFC1918 addresses from redirection.
WCCP Configuration with Redirect-List: |
Switch(config)#access-list 110 deny ip any 10.0.0.0 0.255.255.255 Switch(config)#access-list 110 deny ip any 172.16.0.0 0.15.255.255 Switch(config)#access-list 110 deny ip any 192.168.0.0 0.0.255.255 Switch(config)#access-list 110 permit ip any any Switch(config)#ip wccp web-cache redirect-list 110 ! ! With redirect list, traffic to internal destinations will not be ! redirected, and will bypass the Cisco WSA ! Switch(config)#interface <client_vlan_int> Switch(config-if)#ip wccp web-cache redirect in ! ! and don't forget to save config ! Switch(config-if)#do wr mem |
For networks with more stringent security requirements, a group-list can be used to restrict the IP addresses which are allowed to join the WCCP service group, and a WCCP password can be enabled. In this example, use a redirect-list, a group-list (assuming we have WSAs at 192.168.50.2 and 192.168.50.3), and a WCCP password.
WCCP Configuration with Redirect-List, Group-List, and WCCP Password: |
! |
Unsupported WCCP Features |
|
Note: When using dynamic IDs, the configuration is identical, except enter the service ID number in the place of the web-cache keyword.
Note: For dynamic service IDs, Cisco recommends using IDs 90 - 97 to ensure compatibility with most devices.
More information can be found in the Catalyst Switch Software Configuration Guides:
3560: http://www.cisco.com/en/US/docs/switches/lan/catalyst3560/software/release/12.2_44_se/configuration/guide/swwccp.html
3750: http://www.cisco.com/en/US/docs/switches/lan/catalyst3750/software/release/12.2_44_se/configuration/guide/swwccp.html
Revision | Publish Date | Comments |
---|---|---|
1.0 |
18-Jul-2014 |
Initial Release |