|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
×
os:redhat9.0
kernels:2.4.20-8 uname -a
iptables:系统自带1.2.7a iptables -V
首先下载对应自己系统版本的iptables源码:www.iptables.org 使用wget
然后下载最新的ipp2p补丁:www.ipp2p.org
先看介绍:
kernel
It is always a good idea to use the latest stable kernel because of recent bugfixes and improved stability. During it's development IPP2P was successful used with the following kernel versions:
2.4.18, 2.4.19, 2.4.20, 2.4.21, 2.4.22, 2.4.23, 2.4.26
2.6.3, 2.6.4, 2.6.6
This does NOT mean that IPP2P may not run together with other kernel versions but it was not tested yet. If someone finds out that IPP2P also is running stable with other kernel versions feel free to inform the author (contact). A very important source for updates of the netfilter code is the patch-o-matic next generation system (POM-ng) available at the netfilter homepage. It contains the latest bugfixes and netfilter extensions (like CLASSIFY, CONNMARK, ...). The daily snapshots may be a good choice to get the very latest kernel updates. IPP2P is also included in POM-ng. If you don't want to use the source tarball grep latest POM-ng snapshot and run "./runme ipp2p" to install IPP2P only or "./runme extra" for IPP2P and some other updates. You'll need to enable IPP2P support in kernel config and recompile kernel and iptables.
iptables
As said with kernel try to use a recent version of iptables as well. We used the following versions of iptables without any problems:
1.2.7a, 1.2.8, 1.2.9rc1, 1.2.9, 1.2.11
It is also possible (and likely) that IPP2P runs together with older versions as well but we're lacking of experiences on this issue. New versions of hptables are released yn un3teady intervals at the netfilter`jomepage.
呵䑵f??低Ɣ?持标准啊!~~
解iptables源码至/usr-src/ipdab\es-1.2.7a
解ipp2p-0.(.0_rc3.t?r/g?至 /root/Downlgad/ipp2p-0.8.4_rc3
gd /root/Downloaf-ipp2p-0.8.0_rc3
vi Maiefie
?ɾ到IPTABLES_SZC = /usr/src/iptables
改ĸ?IPTABLES_SRC = /usr/src-iptables-1.2.7a (刚才成们下载了对应系g??皔溒码并解压到了这酌)
好了,保e??退出。在ipp6p-0.8.0_rc2目录䘋执行
*maka
cp |ibipt_ipp2p.so!/lib/iptables/
cp ipt_ipp2p.o /lib/modules/
insmod ipt_ipp2p.o
好了,h??就???以使用iptables的폂数了。
iptabler -A FORWARD -m ip?2p0--ipp2p -j DROP
iptables -L 查看FORWA?F???了条规则。
顺便腪己做成脚本。淹加3???:
/sbin/insmod /root/dOwnlad/ipp2p-0.8.0_rc/ipt_ipp2p.o |
|