you need the following commands in /etc/rc.local

/sbin/modprobe ip_wccp
echo 1 > /proc/sys/net/ipv4/ip_forward
/sbin/iptables -t nat -A PREROUTING -i eth0 -p tcp
--dport 80 -j REDIRECT --to-port 3128

First line is load ip_wccp after every reboot
Second will enable ip forwarding
Third line will enable iptables

Thanks and Regards



--- Adeel Asher wrote:
> Dear Mahmood Ahmed
>
> Here is the Linux configuration:
>
> Patching Kernel with WCCP v1 Support
>
> The following steps are needed:
>
> 1.Download the ip_wccp.c from
>

http://www.squid-cache.org/WCCP-support/Linux/ip_wccp.c
> .Compile ip_wccp.c
> using the following command:
>
> gcc -D__KERNEL__ -I/usr/src/linux-2.4.18-3/include
> -Wall -Wstrict-prototypes
> \
> -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe
> -fno-strength-reduce \
> -m386 -DCPU=386 -DMODULE -DMODVERSIONS -include \
> /usr/src/linux-2.4.18-3/include/linux/modversions.h
> -c ip_wccp.c
>
> After this, the compiled ip_wccp.o will be created.
>
> 2.Copy ip_wccp.o to
> /lib/modules/2.4.18-3/kernel/net/ipv4/ip_wccp.o.
>
> Linux@Box#cp ip_wccp.o
> /lib/modules/2.4.18-3/kernel/net/ipv4/ip_wccp.o.
>
> Then edit /lib/modules/2.4.18-3/modules.dep
> Add the line:
> /lib/modules/2.4.18-3/kernel/net/ipv4/ip_wccp.o:
>
> 3. Test the module with:
> /sbin/modprobe ip_wccp
> /sbin/depmod -a -e
> This should report no errors.
>
>
>
>
>
>
>
> -----Original Message-----
> From: Mahmood Ahmed
> [mailto:braveheart@buraak.net.pk]
> Sent: Thursday, February 26, 2004 2:42 AM
> To: adeel@worldcall.net.pk
> Cc: squid-users@squid-cache.org
> Subject: RE: [squid-users] WCCP Configuration
>
> Hello Adeel
>
> can you please also explain the step by step (like
> you did below) wccp
> configuration*for OS (Redhat 9.0) and Squid too.
>
> Regards
>
> Mahmood Ahmed
> Buraak Telecommunications Pvt. Ltd.
>

---------------------------------------------------------
>
> This mail has been sent using Buraak Net's Mailing
> System
> (http://www.buraak.net.pk)
>
> ---------- Original Message -----------
> From: "Adeel Asher"
> To: "'squid'"
> Sent: Wed, 25 Feb 2004 10:34:45 +0500
> Subject: RE: [squid-users] WCCP Configuration
>
> > Here You Go
> >
> > Router #
> > Router (config)# *ip wccp version 1
> > Router (config)# *ip wccp web-cache redirect-list

> 125
> > Router (config)# *ip wccp web-cache redirect out
> > Router (config)# *ip wccp redirect exclude in
> > Router (config)# *ip wccp web-cache redirect out
> >
> > Access-List 125
> >
> > permit ip 192.168.92.0 0.0.0.255 any
> > permit ip 192.168.93.0 0.0.0.255 any
> > permit ip 192.168.94.0 0.0.0.255 any
> > permit ip 192.168.95.0 0.0.0.255 any
> > permit ip 192.168.96.0 0.0.0.255 any
> > permit ip 192.168.97.0 0.0.0.255 any
> > permit ip 192.168.98.0 0.0.0.255 any
> >
> > All permitted hosts in this access list will be

> redirected to squid for
> web
> > traffic.
> >
> > Router #Conf t
> > Router (config)#
> > Router (config)# * interface fastethernet 0
> > Router(config-if)# ip wccp web-cache redirect out
> >
> > Router # Conf t
> > Router(config)#
> > Router(config)# * *Interface serial 0
> > Router(config-if)# ip wccp redirect exclude in
> > Router(config-if)# ip wccp web-cache redirect out
> >
> > I am assuming that your router serial is connected

> to WAN and FastEthernet
>
> > to LAN. If you have more than one serials you will

> have to enable it on
> all.
> >
> > Regards,
> > Adeel Asher
> > WorldCALL Multimedia
> > Lahore
> > PK
> >
> > -----Original Message-----
> > >From: Danish Khan [mailto:danish.khan@go4b.net]

> >
> > >Sent: Wednesday, February 25, 2004 4:31 AM
> > >T0: 'squid'
> > >Subject: [squid-users] WCCP Configuration

> >
> > >Can any body please explain the router

> configuration for WCCP.
> >
> > >Danish Khan

> ------- End of Original Message -------
>
>


> ATTACHMENT part 2 application/pdf name=SQUID.pdf




__________________________________
Do you Yahoo!?
Get better spam protection with Yahoo! Mail.
http://antispam.yahoo.com/tools