Hi all

Am facing some problem with packet redirection.

My Setup is as following.

--->Squid 2.5 Stable2
---->Kernel 2.4.19 patched with ip_wccp
----->using wccp v1 on cisco router 3660

The cisco router is redirecting packets to the squid box, it is evindent
from the result of the following command.

Router#sh ip wccp web-cache
Global WCCP information:
    Router information:
        Router Identifier:                   203.200.*.*
        Protocol Version:                    1.0

    Service Identifier: web-cache
        Number of Cache Engines:                 1
        Number of routers:                              1
        Total Packets Redirected:                   149
        Redirect access-list:                            11
        Total Packets Denied Redirect:       100
       Total Packets Unassigned:                    0
        Group access-list:                               10
        Total Messages Denied to Group:          0
        Total Authentication failures:                   0



----->IP tables entry on the squid box is
iptables -t nat -A PREROUTING -p tcp -s 0/0 --dport 80 -j REDIRECT --to-port
3128
and the result of the iptables -t nat -L -nv

Chain PREROUTING (policy ACCEPT 9141 packets, 990K bytes)
 pkts bytes target     prot opt in     out     source
destination
    0     0 REDIRECT   tcp  --  *      *       0.0.0.0/0
0.0.0.0/0          tcp dpt:80 redir ports 3128

Chain POSTROUTING (policy ACCEPT 2 packets, 88 bytes)
 pkts bytes target     prot opt in     out     source
destination

Chain OUTPUT (policy ACCEPT 2 packets, 88 bytes)
 pkts bytes target     prot opt in     out     source
destination


This shows that no packets are being redirect to port 3128 if the router is
redirecting it to the cache.

I would be really greatfull if any one could help me out with this.


Regards
Sukhjit Singh






Reply via email to