Hi,

I configured squid with wccp. I can see traffic in squid access.log and
on wccp interface on squid.But traffic is not coming in proper format in
squid access.log so browsing is not working.


squid access.log

1318275851.743      0 245.244.12.23 NONE/400 3078 GET
/index/u0607g.xml.klz - NONE/- text/html
1318275851.758      0 245.244.12.23 NONE/400 3070 GET /index/u0607g.xml
- NONE/- text/html
1318275851.884      0 245.244.12.23 NONE/400 3078 GET
/index/u0607g.xml.dif - NONE/- text/html
1318275851.897      0 245.244.12.23 NONE/400 3078 GET
/index/u0607g.xml.klz - NONE/- text/html
1318275851.909      0 245.244.12.23 NONE/400 3070 GET /index/u0607g.xml
- NONE/- text/html
1318275852.019      0 245.244.12.23 NONE/400 3078 GET
/index/u0607g.xml.dif - NONE/- text/html
1318275852.032      0 245.244.12.23 NONE/400 3078 GET
/index/u0607g.xml.klz - NONE/- text/html
1318275852.044      0 245.244.12.23 NONE/400 3070 GET /index/u0607g.xml
- NONE/- text/html
1318275874.694      0 245.244.12.23 NONE/400 3098 POST
/ajax/chat/buddy_list.php?__a=1 - NONE/- text/html
1318275900.971      0 245.244.12.23 NONE/400 3180 POST
/gateway/gateway.dll?Version=1&Action=open&Server=NS&IP=none - NONE/-
text/html
1318275903.884      0 245.244.12.23 NONE/400 3098 POST
/ajax/presence/update.php?__a=1 - NONE/- text/html
1318275908.830      0 245.244.12.23 NONE/400 3342 GET
/svc/Social/GetFeed?filter=%7B%22FilterProperties%22%3A31%2C%22FeedType%22%3A1%2C%22TopN%22%3A20%2C%22AuthorFilter%22%3A239%2C%22Last%22%3A%22P365D%22%7D
- NONE/- text/html



wccp0 interface on squid:

wccp0     Link encap:UNSPEC  HWaddr
95-FF-10-13-00-00-82-79-00-00-00-00-00-00-00-00
          inet addr:245.244.12.2  P-t-P:245.244.12.2  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP  MTU:1476  Metric:1
          RX packets:12460 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:781602 (763.2 KiB)  TX bytes:0 (0.0 b)


squid.conf:

http_port 3128 intercept
wccp2_router 245.244.12.1
wccp2_forwarding_method gre
wccp2_return_method gre
wccp2_assignment_method hash
wccp2_service standard 0



[root@CACHE_ENGINE ~]# cat /proc/sys/net/ipv4/conf/all/rp_filter
0
[root@CACHE_ENGINE ~]# cat /proc/sys/net/ipv4/conf/default/rp_filter
0
[root@CACHE_ENGINE ~]# cat /proc/sys/net/ipv4/conf/em1/rp_filter
0
[root@CACHE_ENGINE ~]# cat /proc/sys/net/ipv4/conf/lo/rp_filter
0


[root@CACHE_ENGINE ~]# cat /etc/rc.local
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
#modprobe ip_gre
ip tunnel add wccp0 mode gre remote 245.244.12.1 local 245.244.12.2 dev em1

ifconfig wccp0 245.244.12.2 netmask 255.255.255.255 up


[root@CACHE_ENGINE ~]# iptables -L -nvx -t nat
Chain PREROUTING (policy ACCEPT 2026 packets, 448189 bytes)
    pkts      bytes target     prot opt in     out
source               destination
     417    36936 REDIRECT   tcp  --  wccp0  *
0.0.0.0/0            0.0.0.0/0           tcp dpt:80 redir ports 3128

Chain INPUT (policy ACCEPT 582 packets, 52266 bytes)
    pkts      bytes target     prot opt in     out
source               destination

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

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



Where could be the mistake?

please guide me to solve it.

OS : FEDORA 15 64 BIT
SQUID : 3.1.14
KERNEL : 2.6.40.4-5.fc15.x86_64


Regards,
Benjamin

Reply via email to