Redhat 8.0 - Compiling kernel with bridge-netfilter support =========================================================== Public domain ******************************************************************************** 1- download linux-2.4.25.tar.bz2 for http://www.kernel.org/ # wget http://www.kernel.org/pub/linux/kernel/v2.4/linux-2.4.25.tar.bz2 2- download ebtables-brnf-5-vs-2.4.25 from http://ebtables.sourceforge.net/ # wget http://mesh.dl.sourceforge.net/sourceforge/ebtables/ebtables-brnf-5_vs_2.4.25.diff.gz 3- # cp linux-2.4.25.tar.bz2 /usr/src/ # cp ebtables-brnf-5_vs_2.4.25.diff.gz /usr/src/ # cd /usr/src/ # tar -jxvf linux-2.4.25.tar.bz2 # cp /usr/src/ebtables-brnf-5_vs_2.4.25.diff.gz /usr/src/linux-2.4.25 # cp /boot/config-2.4.18-14 /usr/src/linux-2.4.25/.config # cd /usr/src/linux-2.4.25 # zcat ebtables-brnf-5_vs_2.4.25.diff.gz | patch -p1 4- # make menuconfig Processor type and features ---> (386) Processor family Networking options ---> 802.1d Ethernet Bridging Bridge: ebtables (NEW) ebt: filter table support ebt: nat table support ebt: broute table support ebt: log support ebt: IP filter support ebt: ARP filter support ebt: among filter support ebt: limit filter support ebt: 802.1Q VLAN filter support ebt: 802.3 filter support ebt: packet type filter support ebt: STP filter support ebt: mark filter support ebt: arp reply target support ebt: snat target support ebt: dnat target support ebt: redirect target support ebt: mark target support File systems ---> <*> Ext3 journalling file system support 5- vi /usr/src/linux-2.4.25/rebuild make dep make bzImage make modules make modules_install make install 6- # chmod 755 /usr/src/linux-2.4.25/rebuild 7- # cd /usr/src/linux-2.4.25 # ./rebuild > /dev/null 2>&1 & 8- when "# pgrep make" is empty, you can boot your new kernel. ******************************************************************************** _BY: Pejman Moghadam_ _TAG: bridge-netfilter, brnf_ _DATE: 2007-11-27 15:28:27_