Rodrick Brown wrote:
Hi i'm trying to build squid with wccpv2 support for some odd reason
I'm unable to enable this feature.
I'm using the latest stable version squid-2.5.STABLE14.tar.gz
The WCCP patch I'm using is the one located at http://devel.squid-
cache.org/cgi-bin/diff2/wccp2-2_5?s2_5
[root@localhost proxysense]# patch -p0 < wccp2-2_5.patch
patching file squid/acconfig.h
patching file squid/configure.in
patching file squid/doc/README.wccpv2
patching file squid/src/Makefile.am
patching file squid/src/cf.data.pre
patching file squid/src/cf_gen_defines
patching file squid/src/main.c
patching file squid/src/protos.h
patching file squid/src/structs.h
patching file squid/src/wccp2.c
I edit acconfig.h line 122 setting the following
#define USE_WCCPv2
At this point you need to run ./bootstrap.sh
In order to do so, you need autoconf 2.13 and automake 1.5. You can
find both at http://mirrors.kernel.org/gnu/
<http://mirrors.kernel.org/gnu/autoconf/autoconf-2.13.tar.gz> and can
install both in parallel with what you already have on your system.
Then continue on as normal.
<http://mirrors.kernel.org/gnu/autoconf/autoconf-2.13.tar.gz>
[root@localhost squid]# ./configure --prefix=/opt/squid --enable-
linux-netfilter --enable-wccpv2
[root@localhost squid]# make && make install
http_port 192.168.100.3 80
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny all
http_reply_access allow all
icp_access allow all
coredump_dir /opt/squid/var/cache
wccp2_router 192.168.100.1:2048
wccp2_version 4
wccp2_forwarding_method 1
wccp2_return_method 1
wccp2_service standard 0
Here is my squid conf just testing on port 80 for now
Here is my problem
./squid
2006/05/24 07:41:23| parseConfigFile: line 27 unrecognized:
'wccp2_router 192.168.100.1:2048'
2006/05/24 07:41:23| parseConfigFile: line 28 unrecognized:
'wccp2_version 4'
2006/05/24 07:41:23| parseConfigFile: line 29 unrecognized:
'wccp2_forwarding_method 1'
2006/05/24 07:41:23| parseConfigFile: line 30 unrecognized:
'wccp2_return_method 1'
2006/05/24 07:41:23| parseConfigFile: line 31 unrecognized:
'wccp2_service standard 0'
[root@localhost squid]# find . -name \*wccp*
./src/wccp.c
./src/wccp2.c
./src/.deps/wccp.Po
./src/wccp.o
./doc/README.wccpv2
Looks like wccp2.c is never getting compiled anyone know how I can
fix this ?
Linux localhost.localdomain 2.4.21-37.EL #1 Wed Sep 7 13:37:20 EDT
2005 i686 athlon i386 GNU/Linux
[root@localhost squid]# cat /etc/issue
Red Hat Enterprise Linux ES release 3 (Taroon Update 6)
Chris