Ano-Tech Computers
Enter keyword:

Adding WCCP support to Linux, transparent/interception proxy
Problem:
The squid FAQ document http://www.squid-cache.org/Doc/FAQ/FAQ-17.html describes how to set up transparent proxies, but does not go into detail on how to re-compile the modules ip_gre.o and ip_wccp.o in order to make the whole thing work.
 
Solution:
The important bit is that BOTH these modules must be compiled, because as of RH7.1 the standard ip_gre module needs to be patched and the ip_wccp module is missing altogether.

To save you some hassle, I have kept the patched files and some other assorted goodies for you. I compiled and ran these on a stock 2.4.2-2smp kernel from Redhat, to make them work on other distros/versions you may have to do some additional tweaking.
My archive can be found here: http://home.atc.no/~floyd/wccp/
(See the local README file for more info)

Another problem we have seen is that the router emits error messages like these:
"1w6d: WCCP-EVNT:???: Unknown msg_type 7 on xxxx from x.x.x.x"
"1w6d: WCCP-EVNT:???: Unknown msg_type 7 on xxxx from x.x.x.x"

- In "squid.conf", add the config line "wccp_version 3"
- In the router setup, add the line "ip wccp version 1"

If it doesn't work for you, then you may have to figure things out for yourself just like I had to :-/
 
Discuss this solution
Did this article solve your problem? Yes No Did not apply

We welcome anyone who is willing to contribute to this public knowledge base, contact siteadmin@atc.no if you have information you would like to share. The idea is not to replace the commercial support sites, but to publish those hard-to-find solutions you've found yourself looking for over and over again.

Show all articles