| Name | Last modified | Size | Description | |
|---|---|---|---|---|
| Parent Directory | - | |||
| 4.3-gre.patch | 19-May-2007 11:35 | 1.9K | ||
| 4.5-gre.patch | 19-May-2007 11:35 | 1.7K | ||
| 4.7-gre.patch | 19-May-2007 11:35 | 1.6K | ||
| gre.c | 19-May-2007 11:35 | 1.9K | ||
| gre.patch | 19-May-2007 11:35 | 1.7K | ||
Copy gre.c to /usr/src/sys/netinet/gre.c
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).
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
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