Due to that the upstream or official kernel doesn't include it, we have to patch the
kernel ourself
OS : Ubuntu7.10
Package : netfilter-layer7-v2.14.tar.gz, l7-protocols-
linux-source-
We need to patch the source of iptables to enable L7-filter
(2)Download the protocol definitions from above site http://sourceforge.net/projects/l7-filter
(3)Download the protocol definitions from above site http://netfilter.org/
[/usr/src]$tar jxvf linux-source-
[/usr/src]$tar zxvf netfilter-layer7-v2.14.tar.gz
[/usr/src]$mv netfilter-layer7-v2.14 netfilter-layer7
[/usr/src]$cd netfilter-layer7
[/usr/src/netfilter-layer7]$cp kernel-
[/usr/src/netfilter-layer7]$cd ../linux-source-
[/usr/src/linux-source-
[/usr/src/linux-source-
Change EXTRAVERSION = 9 to -L7filter
Setting Kernel config
[/usr/src/linux-source-
[/usr/src/linux-source-
Note, you should enable, save config to default
Code maturity level options --> [*] Prompt for development and/or incomplete code/drivers
Networking --> Networking options -->
[*] Network packet filtering (replaces ipchains) -->
IP: Netfilter Configuration -->
[*] Connection tracking flow accounting
[/usr/src/linux-source-
[/usr/src/linux-source-
[/usr/src/linux-source-
[/boot]$ mkinitramfs –d /etc/initramfs-tools/ -o /dev/sda1
[/boot]$ vi /boot/grub/menu.lst to enabe new kernel
[/boot]$reboot
Start to patch and compile for iptables
[/usr/src]$tar jxvf iptables-
[/usr/src]$cd iptables-
[/usr/src/iptables-
[/usr/src/iptables-
[/usr/src/iptables-
[/usr/src/iptables-
[/usr/src/iptables-
[/usr/src]$tar zxvf l7-protocols-
[/usr/src]$cp –R l7-protocols-
[/usr/src]$reboot
沒有留言:
張貼留言