[SQU] wccp & freebsd 4.1.1

From: matt baker <matt@dont-contact.us>
Date: Fri, 06 Oct 2000 00:12:54 +0930

Hello all,

I've been trying to get the following setup to work in a test lab to do wccp:

Cisco 2514 running ios56i-l.120-12 (has 2 ethernet interfaces)
FreeBSD 4.1.1
Squid 2.3 stable 4

I've followed the faq, and also gone through the mailing list archives, but
still can't seem to get it to work.

I've configured the cisco with the following config:

ip wccp enable
interface Ethernet0 <-- outside interface
  ip web-cache redirect

there is no ip wccp version command so i'm not sure if it's doing wccp 1 or 2,
however it appears to talk the squid okay to setup communication.
I've tried using the ethernet 1 which is on the same lan as the bsd box, which
also doesn't work... which should I be using?

c2514#show ip wccp
Global WCCP information:
        Number of web-caches: 1
        Total Packets Redirected: 91
        Redirect access-list: -none-
        Total Packets Denied Redirect: 0
        Total Packets Unassigned: 0
        Group access-list: -none-
        Total Packets Denied to Group: 0
 
c2514#show ip wccp web-caches
WCCP Web-Cache information:
        IP Address: 192.168.1.49
        Protocol Version: 0.4
        State: Usable
        Initial Hash Info: 00000000000000000000000000000000
                               00000000000000000000000000000000
        Assigned Hash Info: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
                               FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
        Hash Allotment: 256 (100.00%)
        Packets Redirected: 43
        Connect Time: 00:43:41

I've configured installed the gre.c & gre patch listed in the FAQ and recompiled
the kernel. I'm using ipfw to do the redirect... which shows:

bsd1# ipfw -a list
00100 22 3310 allow ip from any to any via lo0
00200 0 0 deny ip from any to 127.0.0.0/8
00300 789 89536 allow tcp from 192.168.1.49 to any
00400 0 0 fwd 127.0.0.1 tcp from any to any 80
65000 2409 132007 allow ip from any to any
65535 4 333 deny ip from any to any

the squid is configured as:

http_port 80
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
wccp_router 192.168.1.54
wccp_version 4

I've tried setting this to version 3 also.

It looks like the cisco gets the packet, and is redirecting it to the FreeBSD
box, but nothing is ending up in the squid logs.
doing a dump with tcpdump on the bsd box I see the following which I'm not sure about:

192.168.1.54 > 192.168.1.49: gre-proto-0x883E (gre encap)
192.168.1.54 > 192.168.1.49: gre-proto-0x883E (gre encap)
192.168.1.54 > 192.168.1.49: gre-proto-0x883E (gre encap)
truncated-ip - 24 bytes missing!192.168.1.54 > 192.168.1.49: gre-proto-0x883E
(gre encap)
truncated-ip - 24 bytes missing!192.168.1.54 > 192.168.1.49: gre-proto-0x883E
(gre encap)
truncated-ip - 24 bytes missing!192.168.1.54 > 192.168.1.49: gre-proto-0x883E
(gre encap)
truncated-ip - 24 bytes missing!192.168.1.54 > 192.168.1.49: gre-proto-0x883E
(gre encap)
truncated-ip - 24 bytes missing!192.168.1.54 > 192.168.1.49: gre-proto-0x883E
(gre encap)
192.168.1.49.dls-monitor > 192.168.1.54.dls-monitor: udp 52

Is the truncated-ip bit a problem, or a red-herring?

Any help or suggestions most appreciated.

Regards,

Matt Baker

--
To unsubscribe, see http://www.squid-cache.org/mailing-lists.html
Received on Thu Oct 05 2000 - 08:45:40 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:55:41 MST