- 论坛徽章:
- 0
|
看了论坛上的前辈写的加ipp2p模块的贴子,在自己的主板支持双CPU的服务器上安装(使用了一个CPU,在安装完RH9后,在启动菜单里会二个选项.2.4.20-8smp和2.4.20- 不成功.提示是不支持多内核处理.然后又重新研究,安装,终于成功.现在把自己的安装心得写出来.
我用的是iptables1.3.4和patch-o-matic-ng-20051122
cd /usr/src
wget http://ftp.netfilter.org/pub/pat ... ng-20051122.tar.bz2
wget http://ftp.netfilter.org/pub/iptables/iptables-1.3.4.tar.bz2
tar xvfj iptables-1.3.4.tar.bz2
tar xvfj patch-o-matic-ng-20051122.tar.bz2
cd linux-2.4
make mrproper
make menuconfig
什么也不干退出
uname -r
2.4.20-8smp
vi Makefile
改EXTRAVERSION=-8smp
wq!
cd ../patch-o-matic-ng-20051122
KERNEL_DIR=/usr/src/linux-2.4 IPTABLES_DIR=/usr/src/iptables-1.3.4 ./runme ipp2p
然后会提示是否安装,按y
cd ..
cd linux-2.4
make menuconfig
在netfilter options中先上你刚安装的ipp2p模块
退出
make dep
make modules SUBDIRS=net/ipv4/netfilter
cp -f net/ipv4/netfilter/*.o /lib/modules/2.4.20-8smp/kernel/net/ipv4/netfilter
cd /lib/modules/2.4.20-8smp/kernel/net/ipv4/netfilter
depmod -a
这时会提示一些模块不可用.删除,直到没有提示.
cd /usr/src/iptables-1.3.4
export KERNEL_DIR=/usr/src/linux-2.4
export IPTABLES_DIR=/usr/src/iptables-1.3.4
make BINDIR=/sbin LIBDIR=/lib MANDIR=/usr/share/man install
完成后,用iptables -V 看版本是否正确
reboot
启动后用测试
iptables -A FORWARD -m ipp2p --ipp2p --bit -j DROP
iptables -L
看是否成功 |
|