Index of /WCCP-support/FreeBSD

[ICO]NameLast modifiedSizeDescription

[DIR]Parent Directory  -  
[   ]4.3-gre.patch19-May-2007 11:35 1.9K 
[   ]4.5-gre.patch19-May-2007 11:35 1.7K 
[   ]4.7-gre.patch19-May-2007 11:35 1.6K 
[TXT]gre.c19-May-2007 11:35 1.9K 
[   ]gre.patch19-May-2007 11:35 1.7K 

Instructions for compiling WCCP into FreeBSD-4.x

  1. Copy gre.c to /usr/src/sys/netinet/gre.c

  2. Download and save one of the 4.x-gre.patch files. Apply the patch like this:

    # cd /usr/src
    # patch -s < /tmp/4.7-gre.patch

    If you get an error message from patch, let me know (wessels at squid-cache.org).

  3. Configure your kernel file for GRE:

    # cd /usr/src/sys/i386/conf
    # cp GENERIC WCCP
    # vi WCCP

    add this line:

    options         GRE

    then

    # config WCCP
    # cd ../../compile/WCCP
    # make depend all install
  4. Reboot your kernel and proceed with configuring the router. When you run tcpdump, you should see some packets of type gre.

NOTE, for FreeBSD 4.8 and later, you don't need any of the hacks in this directory. The kernel now comes standard with a GRE interface that can decapsulate WCCP packets. You need to add

pseudo-device      gre

to your kernel configuration. Then create a gre0 interface like this:

ifconfig gre0 create
ifconfig gre0 $my_ip $router_ip netmask 255.255.255.255 up
ifconfig gre0 tunnel $my_ip $router_ip
route delete $router_ip