[squid-users] WCCP Implementation and Squid Init Script

From: gaël therond <gael.therond_at_gmail.com>
Date: Wed, 23 Mar 2011 11:24:54 +0100 (CET)

Hi fellow,

Once again I'm testing WCCP features and, once again, I'm facing issues.

Today, I'm testing WCCP with Cisco's switch, which accordingly to this website: http://www.cisco.com/en/US/docs/switches/lan/catalyst3750/software/release/12.2_37_se/configuration/guide/swwccp.html
need some special settings.

My squid plateform is the following one:

-OS: Debian 6.0 Squeeze
-SQUID Version: SQUID 3.2.0.5
-Cisco's switch model: Cisco 3750

Here is a network representation:

http://novavision.studio.free.fr/devel/network.png

I've test to set directly the clients over squid, and with this configuration everythings is fine, squid receive and process correctly each requests
All requests on port 80 are correctly redirect to the 3128 port and squid provide the internet content correctly, I see the clients on the access log with this method.

I've check on my Cisco's switch if somethings were wrong, but unfortunatly the cisco's resume say:

3750#sh ip wccp web-cache detail
WCCP Client information:
WCCP Client ID: 10.30.2.3
Protocol Version: 2.0
State: Usable
Redirection: L2
Packet Return: L2
Packets Redirected: 0
Connect Time: 01:16:39
Assignment: MASK

Mask SrcAddr DstAddr SrcPort DstPort
---- ------- ------- ------- -------
0000: 0x00000000 0x00001741 0x0000 0x0000

Value SrcAddr DstAddr SrcPort DstPort CE-IP
----- ------- ------- ------- ------- -----
0000: 0x00000000 0x00000000 0x0000 0x0000 0x0A1E0203 (10.30.2.3)
0001: 0x00000000 0x00000001 0x0000 0x0000 0x0A1E0203 (10.30.2.3)
0002: 0x00000000 0x00000040 0x0000 0x0000 0x0A1E0203 (10.30.2.3)
0003: 0x00000000 0x00000041 0x0000 0x0000 0x0A1E0203 (10.30.2.3)
0004: 0x00000000 0x00000100 0x0000 0x0000 0x0A1E0203 (10.30.2.3)
0005: 0x00000000 0x00000101 0x0000 0x0000 0x0A1E0203 (10.30.2.3)
0006: 0x00000000 0x00000140 0x0000 0x0000 0x0A1E0203 (10.30.2.3)
0007: 0x00000000 0x00000141 0x0000 0x0000 0x0A1E0203 (10.30.2.3)

Then, for me everything is good, but cisco's switch still refuse to redirect any packets has you can see it.

I've made several tcpdump on my 80 3128 and 2048 ports to look for any errors without any success.
TCPDump on 2048 port correctly show the Here_I_Am and I_See_You packets
TCPDump on 80 and 3128 ports show nothing.

My wccpv2 SQUID's config is the following:

#################################
#
# WCCPv2's settings
#
#################################
wccp2_router 10.30.2.2
wccp2_assignment_method mask
wccp2_forwarding_method l2
wccp2_rebuild_wait on
wccp2_return_method l2

I've choose to let squid use wccp2_service 0 default service.

My iptable has been set like this:

iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128

Well, I'm stuck for now, about me everything is good on Squid side (because with direct request on 80 port, each one have been requested and resolved correctly).

Now, I hope that someone have a brilliant idea ;)
Received on Wed Mar 23 2011 - 10:25:05 MDT

This archive was generated by hypermail 2.2.0 : Wed Mar 23 2011 - 12:00:02 MDT