Pejman Moghadam / Redhat

Redhat 8.0 - Compiling kernel with bridge-netfilter support

Public domain

1- download linux-2.4.25.tar.bz2 for
  # wget

2- download ebtables-brnf-5-vs-2.4.25 from
  # wget

  # 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 --->
    <M> 802.1d Ethernet Bridging
    <M> Bridge: ebtables (NEW)
    <M> ebt: filter table support
    <M> ebt: nat table support
    <M> ebt: broute table support
    <M> ebt: log support
    <M> ebt: IP filter support
    <M> ebt: ARP filter support
    <M> ebt: among filter support
    <M> ebt: limit filter support
    <M> ebt: 802.1Q VLAN filter support
    <M> ebt: 802.3 filter support
    <M> ebt: packet type filter support
    <M> ebt: STP filter support
    <M> ebt: mark filter support
    <M> ebt: arp reply target support
    <M> ebt: snat target support
    <M> ebt: dnat target support
    <M> ebt: redirect target support
    <M> 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

  # 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

Pejman Moghadam / Redhat [ TXT ]