[squid-users] WCCP Setup - again

From: Sturgis, Grant <[email protected]>
Date: Thu, 28 Jul 2005 12:50:45 -0600

Greetings all,

After a long vacation, a sysadmin quitting, and another being hired, I am finally back to my WCCP issue.

I have gotten a lot of very helpful advice from several on this list, and I think I am pretty close to getting this thing running. Any suggestions or comments are most welcome.

On the squid server, I have:

RedHat FC3 2.6.11-1.27_FC3
squid-2.5.STABLE9-1.FC3.6 (with --enable-wccpv2)
/proc/sys/net/ipv4/ip_forward = 1

squid.conf:

httpd_accel_port 80
httpd_accel_host virtual
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
wccp_router 10.10.254.254

iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128
iptunnel add gre1 mode gre remote 10.10.254.254 local 10.10.10.211 dev eth0
ifconfig gre1 127.0.0.2 up

restart squid

Cisco:

ip wccp version 1
ip wccp web-cache redirect-list 199
access-list 199 permit tcp 10.10.0.0 0.0.255.255 any
access-list 199 deny tcp any any
interface Vlan90
        ip wccp web-cache redirect in

For debugging, I have done this on the squid box:

tcpdump -i eth0 'host 10.10.254.254'

and I get:

12:49:47.783883 IP 10.10.10.211.2048 > 10.10.254.254.2048: UDP, length 52
12:49:57.785996 IP 10.10.10.211.2048 > 10.10.254.254.2048: UDP, length 52

and then on Cisco, I have done this:

debug ip wccp packets

and get this:

Jul 28 18:37:27.749 UTC: WCCP-PKT: Sending I_See_You packet to 10.10.10.211 w/ rcvd_id 0000019D
Jul 28 18:37:38.693 UTC: WCCP-PKT: Sending I_See_You packet to 10.10.10.211 w/ rcvd_id 0000019E

sh ip wccp

shows:

Global WCCP information:
    Router information:
        Router Identifier: 10.10.254.254
        Protocol Version: 1.0
 
    Service Identifier: web-cache
        Number of Cache Engines: 0
        Number of routers: 1
        Total Packets Redirected: 0
        Redirect access-list: 199
        Total Packets Denied Redirect: 0
        Total Packets Unassigned: 0
        Group access-list: -none-
        Total Messages Denied to Group: 0
        Total Authentication failures: 0

sh ip wccp web-cache detail:

shows:

WCCP Cache-Engine information:
        Web Cache ID: 0.0.0.0
        Protocol Version: 0.4
        State: NOT Usable
        Redirection: GRE
        Packet Return: GRE
        Assignment: HASH
        Initial Hash Info: 00000000000000000000000000000000
                               00000000000000000000000000000000
        Assigned Hash Info: 00000000000000000000000000000000
                               00000000000000000000000000000000
        Hash Allotment: 0 (0.00%)
        Packets Redirected: 0
        Connect Time: 00:00:03

Thanks for reading down this far ;-)

and pardon this rubbish:

        

This electronic message transmission is a PRIVATE communication which contains
information which may be confidential or privileged. The information is intended
to be for the use of the individual or entity named above. If you are not the
intended recipient, please be aware that any disclosure, copying, distribution
or use of the contents of this information is prohibited. Please notify the
sender of the delivery error by replying to this message, or notify us by
telephone (877-633-2436, ext. 0), and then delete it from your system.
Received on Thu Jul 28 2005 - 12:51:17 MDT

This archive was generated by hypermail pre-2.1.9 : Mon Aug 01 2005 - 12:00:03 MDT