The unified diff between revisions [eb361a3b..] and [718cfb3b..] is displayed below. It can also be downloaded as a raw diff.

#
#
# patch "doc/README.wccpv2"
#  from [aa8258e5e8e752d3dcc888d8b5e8a1f5de3c1e6a]
#    to [bcbe3de83c796a914fe9a9664ea814f92e0eae0e]
#
============================================================
--- doc/README.wccpv2	aa8258e5e8e752d3dcc888d8b5e8a1f5de3c1e6a
+++ doc/README.wccpv2	bcbe3de83c796a914fe9a9664ea814f92e0eae0e
@@ -5,12 +5,54 @@ wccpv2 is that the cisco IOS uses CEF to
 also allows multiple wccp services to be defined.  The other advantage of
 wccpv2 is that the cisco IOS uses CEF to switch the packets.

-How to configure:
+Example simple web cache
+------------------------

-TODO: add example WCCPv2 documentation
+Internet <-> fa0/0 2621 fa0/1 <-> cache, internal network

+squid.conf:

+wccp2_router 192.168.2.1:2048
+wccp2_version 4
+wccp2_forwarding_method 1
+wccp2_return_method 1
+wccp2_service standard 0
+
+Router config:
+
+ip wccp web-cache
+!
+interface FastEthernet0/0
+ description uplink
+ ip address 192.168.1.200 255.255.255.0
+ ip wccp web-cache redirect out
+ duplex auto
+ speed auto
+!
+interface FastEthernet0/1
+ description local network
+ ip address 192.168.2.1 255.255.255.0
+ duplex auto
+ speed auto
+!
+
+Note the cache is on the internal network (Fa0/1), the interception occurs
+on the uplink interface(0/0).
+
+Linux (Kernel 2.6.10, i386) side of things:
+
+#!/bin/sh
+echo "1" > /proc/sys/net/ipv4/ip_forward
+echo "0" > /proc/sys/net/ipv4/conf/all/rp_filter
+iptunnel add gre1 mode gre remote 192.168.2.1 local 192.168.2.2 dev eth0
+ifconfig gre1 up 127.0.0.2
+iptables -t nat -F
+# iptables -t nat -A PREROUTING -i eth0 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 3128
+iptables -t nat -A PREROUTING -i gre1 -p tcp -m tcp --dport 80 -j DNAT --to-destination 192.168.2.2:3128
+
+
 TODO
+----

 * The wccp2 router configuration need to have a better configuration interface
   (it currently uses ip:port when only the ip address is needed).