ipp2p的安装配置
来源:互联网 发布:java 分布式rpc框架 编辑:程序博客网 时间:2024/06/06 17:48
ipp2p的安装配置
2005-9-10
原文:http://blog.it580.com/?p=126
站点:http://rnvs.informatik.uni-leipzig.de/ipp2p/index_en.html
说明:为了封堵内网的大量P2P软件的使用对带宽的影响.使用iptables的扩展模块ipp2p来进行控制.
下载:
ipp2p-0.7.1.tar.gz
iptables-1.2.9.tar.bz2(需要使用到iptables.h,为了方便就下载了,请注意下载和你使用的iptables同样的版本,可用iptables -V察看系统安装的iptables的软件版本.)
安装:
cd /usr/local/src/
tar -zxvf ipp2p-0.7.1.tar.gz
bunzip2 iptables-1.2.9.tar.bz2
tar xvf iptables-1.2.9.tar
修改ipp2p目录中的Markfile. 将IUSER = -I/usr/src/iptables修改为IUSER = -I/usr/local/src/iptables-1.2.9/include.
make
cp libipt_ipp2p.so /lib/iptables/
cp ipt_ipp2p.o /lib/modules/
使用iptables -m ipp2p –help命令,测试模块是否能正常装载.显示正常的帮助文件.
insmod ipt_ipp2p.o
安装完成.
加入一条命令封锁P2P的软件使用.
iptables -A INPUT -m ipp2p –edk –kazaa –bit -j DROP
世界终于清静了……
===========================================
RH AS3 内核为: 2.4.21-15.EL。iptables版本为:1.2.9
1. 下载最新的patch-o-matic-ng补丁和最新的iptables源代码。放到/usr/src 下
http://ftp.netfilter.org/pub/patch-o-matic-ng/snapshot/ patch-o-matic-ng
http://www.netfilter.org/files/iptables-1.3.1.tar.bz2 iptables
2. 如果你的系统里没有安装内核源码请自行安装。解压缩patch-o-matic-ng和iptables包
tar –jxvf patch-o-matic-ng-20050302.tar.bz2
tar –jxvf iptables-1.31..tar.bz2
3. 给内核打补丁
cd /usr/src/patch-o-matic-ng-20050302
#KERNEL_DIR=/usr/src/linux-2.4 IPTABLES_DIR=/usr/src/iptables-1.3.1 ./runme extra
按照提示打相应的补丁就可以了。我只选择了ipp2p,connlimit,time模块
4. 编译内核
cd /usr/src/linux-2.4
make prproper
make config
在这里的前半部分一直安回车就可以了。遇到network option的部分时候选择需要的模块即可。
然后在一路回车至结束。
make dep
make clean
make bzImage
make modules
make modules_install
make install
reboot
启动新内核
5. 编译iptables
cd /usr/src/iptables-1.3.1
make KERNEL_DIR=/usr/src/linux-2.4
make BINDIR=/sbin LIBDIR=/lib MANDIR=/usr/share/man install
如果没什么错误的话iptables就升级到1.3.1的版本了
6. 测试
Iptables –m ip2p2 –help
iptables -A FORWARD -m ipp2p --edk --kazaa --bit -j DROP
在我的机器上测试后发现,可以限制BT下载速率最高为30-40K。(总带宽为6M)
2005-9-10
原文:http://blog.it580.com/?p=126
站点:http://rnvs.informatik.uni-leipzig.de/ipp2p/index_en.html
说明:为了封堵内网的大量P2P软件的使用对带宽的影响.使用iptables的扩展模块ipp2p来进行控制.
下载:
ipp2p-0.7.1.tar.gz
iptables-1.2.9.tar.bz2(需要使用到iptables.h,为了方便就下载了,请注意下载和你使用的iptables同样的版本,可用iptables -V察看系统安装的iptables的软件版本.)
安装:
cd /usr/local/src/
tar -zxvf ipp2p-0.7.1.tar.gz
bunzip2 iptables-1.2.9.tar.bz2
tar xvf iptables-1.2.9.tar
修改ipp2p目录中的Markfile. 将IUSER = -I/usr/src/iptables修改为IUSER = -I/usr/local/src/iptables-1.2.9/include.
make
cp libipt_ipp2p.so /lib/iptables/
cp ipt_ipp2p.o /lib/modules/
使用iptables -m ipp2p –help命令,测试模块是否能正常装载.显示正常的帮助文件.
insmod ipt_ipp2p.o
安装完成.
加入一条命令封锁P2P的软件使用.
iptables -A INPUT -m ipp2p –edk –kazaa –bit -j DROP
世界终于清静了……
===========================================
RH AS3 内核为: 2.4.21-15.EL。iptables版本为:1.2.9
1. 下载最新的patch-o-matic-ng补丁和最新的iptables源代码。放到/usr/src 下
http://ftp.netfilter.org/pub/patch-o-matic-ng/snapshot/ patch-o-matic-ng
http://www.netfilter.org/files/iptables-1.3.1.tar.bz2 iptables
2. 如果你的系统里没有安装内核源码请自行安装。解压缩patch-o-matic-ng和iptables包
tar –jxvf patch-o-matic-ng-20050302.tar.bz2
tar –jxvf iptables-1.31..tar.bz2
3. 给内核打补丁
cd /usr/src/patch-o-matic-ng-20050302
#KERNEL_DIR=/usr/src/linux-2.4 IPTABLES_DIR=/usr/src/iptables-1.3.1 ./runme extra
按照提示打相应的补丁就可以了。我只选择了ipp2p,connlimit,time模块
4. 编译内核
cd /usr/src/linux-2.4
make prproper
make config
在这里的前半部分一直安回车就可以了。遇到network option的部分时候选择需要的模块即可。
然后在一路回车至结束。
make dep
make clean
make bzImage
make modules
make modules_install
make install
reboot
启动新内核
5. 编译iptables
cd /usr/src/iptables-1.3.1
make KERNEL_DIR=/usr/src/linux-2.4
make BINDIR=/sbin LIBDIR=/lib MANDIR=/usr/share/man install
如果没什么错误的话iptables就升级到1.3.1的版本了
6. 测试
Iptables –m ip2p2 –help
iptables -A FORWARD -m ipp2p --edk --kazaa --bit -j DROP
在我的机器上测试后发现,可以限制BT下载速率最高为30-40K。(总带宽为6M)
- ipp2p的安装配置
- AS3下安装ipp2p模块成功
- 交叉环境下linux内核中ipp2p模块由静态加载改为动态加载的问题
- ipp2p限制BT
- IPP2P模块修改版
- apache的安装配置 & Tomcat 安装配置
- linux的安装配置
- php_java_bridge的安装配置
- emacs的安装、配置
- proFTPD的安装配置
- SVN的安装配置
- Lighttpd 的安装配置
- Tomcat的安装配置
- Lighttpd 的安装配置
- eclipsework的安装配置
- MySQL的安装配置
- Glassfish的安装配置
- sqlce的安装配置
- 我喜爱的学习网站
- javascript 去掉前后空格
- Java企业系统架构选择考量
- c语言文件操作
- "/"的含义
- ipp2p的安装配置
- 聯網監管客戶端維護 2008/11/17
- SQL重复记录查询
- 协作的力量、东家的价值
- browser layout engine
- lamp是什么
- 图形基础-GDI映像模式( 下)
- cvs不能提交 Permission denied
- Oracle通过设置statistics选项来提高import导入dmp性能