Re: FW: [wccpd-devel] wccpd and squid talk but still no redirecting
Status: Alpha
Brought to you by:
ejbs
|
From: Matthew R. <mr...@bi...> - 2003-09-25 12:24:27
|
Information requested (plus some other stuff I thought of... Thanks for the help! Cheers, Matt. [root@clunker root]# lsmod Module Size Used by Not tainted nfs 76184 2 (autoclean) lockd 56016 1 (autoclean) [nfs] sunrpc 81052 1 (autoclean) [nfs lockd] ipt_MARK 1368 1 (autoclean) ppp_async 9312 1 (autoclean) ppp_generic 19516 3 (autoclean) [ppp_async] slhc 6612 0 (autoclean) [ppp_generic] wd 5904 1 ne 7616 1 isa-pnp 39044 0 [ne] 8390 7700 0 [wd ne] crc32 3728 0 [8390] af_packet 11048 0 (autoclean) ipt_state 1048 3 (autoclean) ipt_LOG 4184 3 (autoclean) ipt_TCPMSS 3032 1 (autoclean) ipt_MASQUERADE 2104 1 (autoclean) iptable_nat 20888 1 (autoclean) [ipt_MASQUERADE] ip_conntrack 26376 2 (autoclean) [ipt_state ipt_MASQUERADE iptable_nat] iptable_mangle 2712 1 (autoclean) iptable_filter 2348 1 (autoclean) ip_tables 15296 10 [ipt_MARK ipt_state ipt_LOG ipt_TCPMSS ipt_MASQUERADE iptable_nat iptable_mangle iptable_filter] rtc 8124 0 (autoclean) [root@clunker root]# service wccpd start Starting wccpd: [ OK ] [root@clunker root]# tail /var/log/messages Sep 25 21:52:38 clunker wccpd: wccpd startup succeeded Sep 25 21:52:38 clunker wccpd: WCCP Server daemon started (pid=8306) Sep 25 21:52:52 clunker wccpd: HERE_I_AM: WebCache at 10.0.0.1 became usable Sep 25 21:52:52 clunker wccpd: WCCP enabled Sep 25 21:52:54 clunker kernel: IPVS: Connection hash table configured (size=4096, memory=32Kbytes) Sep 25 21:52:54 clunker kernel: IPVS: ipvs loaded. Sep 25 21:52:55 clunker kernel: IPVS: [wlc] scheduler registered. Sep 25 21:52:55 clunker wccpd: WebCache at 10.0.0.1 enabled [root@clunker root]# lsmod Module Size Used by Not tainted ip_vs_wlc 1572 1 (autoclean) ip_vs 67856 2 (autoclean) [ip_vs_wlc] nfs 76184 2 (autoclean) lockd 56016 1 (autoclean) [nfs] sunrpc 81052 1 (autoclean) [nfs lockd] ipt_MARK 1368 1 (autoclean) ppp_async 9312 1 (autoclean) ppp_generic 19516 3 (autoclean) [ppp_async] slhc 6612 0 (autoclean) [ppp_generic] wd 5904 1 ne 7616 1 isa-pnp 39044 0 [ne] 8390 7700 0 [wd ne] crc32 3728 0 [8390] af_packet 11048 0 (autoclean) ipt_state 1048 3 (autoclean) ipt_LOG 4184 3 (autoclean) ipt_TCPMSS 3032 1 (autoclean) ipt_MASQUERADE 2104 1 (autoclean) iptable_nat 20888 1 (autoclean) [ipt_MASQUERADE] ip_conntrack 26376 2 (autoclean) [ipt_state ipt_MASQUERADE iptable_nat] iptable_mangle 2712 1 (autoclean) iptable_filter 2348 1 (autoclean) ip_tables 15296 10 [ipt_MARK ipt_state ipt_LOG ipt_TCPMSS ipt_MASQUERADE iptable_nat iptable_mangle iptable_filter] rtc 8124 0 (autoclean) [root@clunker root]# iptables -vn -L -t mangle Chain PREROUTING (policy ACCEPT 2481K packets, 956M bytes) pkts bytes target prot opt in out source destination 125K 13M MARK tcp -- eth0 * !10.0.0.1 0.0.0.0/0 tcp dpt:80 MARK set 0x80 [root@clunker root]# ip rule ls RTNETLINK answers: Invalid argument Dump terminated [root@clunker root]# ip route ls 172.31.24.24 dev ppp0 proto kernel scope link src 144.137.21.152 10.0.0.0/24 dev eth0 scope link 192.168.1.0/24 dev eth1 scope link 169.254.0.0/16 dev eth1 scope link <---- I have no idea what this is!!! Ooops! 127.0.0.0/8 dev lo scope link default dev ppp0 scope link [root@clunker root]# netstat -rn Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 172.31.24.24 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0 10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1 <--- don't know where this came from! 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo 0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp0 > > -----Original Message----- > From: wcc...@li... > [mailto:wcc...@li...] On Behalf Of Eduardo J. > Blanco > Sent: Tuesday, 23 September 2003 2:57 AM > To: Matthew Rex > Cc: wcc...@li... > Subject: Re: [wccpd-devel] wccpd and squid talk but still no redirecting > > On Sun, 2003-09-21 at 07:58, Matthew Rex wrote: > >>Hi, > > Hi! > >>I've got a (user) problem with wccpd/ipvs/squid. >> >>I have patched and rebuilt a 2.4.22 kernel with ipvs, installed wccpd >>from RPM on a linux router and started everything up. I have wccpd and >>squid exchanging I See You messages and wccpd reports one cache found >>and usable on startup. >> >>ipvsadm reports: >>IP Virtual Server version 1.0.10 (size=4096) >>Prot LocalAddress:Port Scheduler Flags >> -> RemoteAddress:Port Forward Weight ActiveConn InActConn >>FWM 128 wlc >> -> hobbes.localdomain:0 Route 1 0 0 >> >>I've got iptables matching and marking packets with 0x80 on the linux >>router but instead of redirecting to the cache, web traffic passes >>through the box as normal. The cache does not see any traffic. >> >>Not sure where to look next... do I have to do anything with ipvs? Or >>does wccpd take care of all that? >> >>I have the client and squid box on the same subnet, a valid setup as I >>understand it. > > If squid is on the same subnet as the client, remember to be careful > about your firewalling rules to avoid loops. [ie. your squid machine > will also use port 80] > >>Can anyone help? > > Maybe your packets are not being routed to localhost (ipvs needs that). > wccpd's scripts should take care of that.. but... > > Could you send me: > - Relevant extracts of syslogd's messages > - ip rule ls > - ip route ls > - iptables -vn -L -t mangle (relevant parts) > > Regards, > > -- > Eduardo J. Blanco <ej...@us... > <mailto:ej...@us...>> > > |