[squid-users] RedHat Linux 7.2 + kernel 2.4.9-31 + WCCP

From: <[email protected]>
Date: Mon, 15 Apr 2002 19:21:22 +0800

Hi all,

I'm configuring Squid 2.4-STABLE6 to do transparent proxying via WCCP but I
couldn't determine whether the packets are hijacked by the RedHat box. I've
configured RedHat using iptables:

        echo 1 > /proc/sys/net/ipv4/ip_forward

        iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j \
                REDIRECT --to-port 8080

Iptables -t nat -L produces:

        Chain PREROUTING (policy ACCEPT)
target prot opt source destination
REDIRECT tcp -- anywhere anywhere tcp dpt:http
redir ports 8080

Chain POSTROUTING (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

On the Cisco router, I can see the server with packets being redirected:

WCCP Cache-Engine information:
        IP Address: 202.91.165.252
        Protocol Version: 0.4
        State: Usable
        Initial Hash Info: 00000000000000000000000000000000
                               00000000000000000000000000000000
        Assigned Hash Info: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
                               FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
        Hash Allotment: 256 (100.00%)
        Packets Redirected: 40
        Connect Time: 00:08:23

---
 francis a. vidal [bitstop network services] | http://www.dagupan.com
 streaming media + web hosting               | http://www.keystone.ph
 v(02)330-2871,(02)330-2872; f(02)330-2873   | http://www.kuro.ph 
Received on Mon Apr 15 2002 - 05:19:49 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:07:34 MST