看内核的版本        uname -a

看iptables版本      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 iptables are released in unsteady intervals at the netfilter homepage.

呵呵最低支持标准啊!~~

解iptables源码至/usr/src/iptables-1.2.7a

解ipp2p-0.8.0_rc3.tar.gz至 /root/download/ipp2p-0.8.0_rc3

cd  /root/download/ipp2p-0.8.0_rc3

vi Makefie

找到IPTABLES_SRC = /usr/src/iptables

改为IPTABLES_SRC = /usr/src/iptables-1.2.7a  (刚才我们下载了对应系统的源码并解压到了这里)

好了,保存退出。在ipp2p-0.8.0_rc3目录下执行

make

cp libipt_ipp2p.so /lib/iptables/

cp ipt_ipp2p.o /lib/modules/

insmod ipt_ipp2p.o

好了,这就可以使用iptables的参数了。

iptables -A FORWARD -m ipp2p --ipp2p -j DROP

iptables -L 查看FORWARD多了条规则。

顺便自己做成脚本。添加3项:

/sbin/insmod /root/download/ipp2p-0.8.0_rc3/ipt_ipp2p.o            #加载模块

/sbin/iptables -A FORWARD -m ipp2p --ipp2p -j DROP

/sbin/iptables -A INPUT -m ipp2p --ipp2p -j DROP

实测不加过滤下载神六飞船升空录像700kB-1.0mB,加载后68-80KB稳定下载速度。

呵呵ipp2p.org不断升级,应该能改善p2p的猖獗流量。

------------------------------------------------------------------------------------------

下面是原文的howto:

The following table shows a lineup of all module options currently available for IPP2P. Make sure not to use --ipp2p together with any other option already included in --ipp2p !

option  P2P network  protocol  quality

--edk  eDonkey, eMule, Kademlia  TCP and UDP  very good

--kazaa  KaZaA, FastTrack  TCP and UDP  good

--gnu  Gnutella  TCP and UDP  good

--dc  Direct Connect  TCP only  good

--bit  BitTorrent, extended BT  TCP and UDP  good

--apple  AppleJuice  TCP only  (need feedback)

--winmx  WinMX  TCP only  (need feedback)

--soul  SoulSeek  TCP only  good (need feedback)

--ares  Ares, AresLite  TCP only  moderate (DROP only)

table 1: overview of IPP2P options

Note that some options are not much tested yet. Please don't hesitate contacting me with any feedback about them. If you find one is producing mismatches use --debug (included in 0.7 and later) to locate the wrong filter. See section "debug" below for more details.

10月14日  hb

linux p2p 传输工具,用ipp2p在Linux上封杀bt等p2p传输(已试验成功)相关推荐

  1. linux 邮件开源工具_5个适用于Linux的开源个人理财工具

    linux 邮件开源工具 编者注:本文最初于2016年1月发布,并已进行了更新,以添加两个很棒的附加工具. 当被问及个人目标时,在大多数人的榜单上,更好地掌握个人财务状况是很重要的. 这是否意味着制定 ...

  2. linux gpu 测试工具,推荐 7 大 Linux GPU 监控和诊断命令行工具

    原标题:推荐 7 大 Linux GPU 监控和诊断命令行工具 作者:Linux迷 链接:https://www.linuxmi.com/7-linux-gpu-jiankong.html 视频卡是一 ...

  3. linux git管理工具,分享|三款 Linux 下的 Git 图形客户端

    了解这三个 Git 图形客户端工具如何增强你的开发流程. 在 Linux 下工作的人们对 Git 非常熟悉.一个理所当然的原因是,Git 是我们这个星球上最广为人知也是使用最广泛的版本控制工具.不过大 ...

  4. linux测试x11,Linux GUI自动化测试工具x11 GUITest in Linux x86

    Linux GUI自动化测试工具x11 GUITest:QT GUI自动化测试工具x11 GUITest. 一.X11GUITest安装 在linux下安装perl X11::GUITest的操作步骤 ...

  5. ftp文件传输工具,5款你会喜欢的ftp文件传输工具

    对于ftp文件传输工具,你了解多少?其实一般人也接触不到这种软件.ftp文件传输工具主要是针对从事网站管理的工作人员比较有利的一款工具.可以帮助他们快速的解决工作中的问题.方便.简单.快捷又明了的解决 ...

  6. Linux备份检查工具,6种优化Linux系统备份的应用与技巧

    原标题:6种优化Linux系统备份的应用与技巧 当转为使用Linux时,你可能会注意到你所使用的版本会带有一个默认的备份工具.然而,可能该工具并没有被设置好去备份你系统中所有重要的部分.而且,使用该默 ...

  7. linux中mtools工具_Linux mtools命令 - Linux 教程 - 自强学堂

    Linux mtools命令用于显示mtools支持的指令. mtools为MS-DOS文件系统的工具程序,可模拟许多MS-DOS的指令.这些指令都是mtools的符号连接,因此会有一些共同的特性. ...

  8. linux程序测试工具gprof,gprof-如何在Linux上分析多线程C ++应用程序?

    gprof-如何在Linux上分析多线程C ++应用程序? 我曾经使用gprof进行所有Linux分析. 但是,对于我的多线程应用程序,它的输出似乎不一致. 现在,我将其挖掘出来: [HTTP://S ...

  9. debian linux系统下载工具,在Debian 10 Linux系统中下载安装R和RStudio的方法

    本文教你在Debian 10(Buster) Linux服务器/台式机操作系统中轻松安装R和RStudio. 简介 R是一种通常用于统计计算和数据图形表示的编程语言.另一方面,Rstudio是R的集成 ...

最新文章

  1. 推动健全云生态 阿里云锐不可当
  2. zigbee学习之路(二)点亮LED
  3. Struts2自定义Result处理JSON
  4. vuecli启动的服务器位置,VUE启动流程vue-cli
  5. 数据管理(八)--CD程序
  6. spring boot 读取 application.properties 初始化bean
  7. java视频压缩 lz4_关于LZMA和LZ4压缩的疑惑解析
  8. c语言第三章作业题答案,c语言第三章简单练习题及答案.doc
  9. JTable 的使用
  10. 在IDEA集成Github
  11. 从SEO的角度,如何打造非专业领域内容?
  12. Intellij IDEA--导入导出配置
  13. python3传智播客_3.Ubuntu安装以及配置(传智播客.黑马程序员python学科)
  14. 牛学长iTunes备份密码移除工具
  15. word去除标题前的小黑点
  16. MyBatis 类型转换器
  17. 冈萨雷斯:数字图像处理(一):第一章绪论
  18. 【转帖】Photoshop为长腿MM制作拼接效果的照片
  19. 蓝桥杯-基础练习-特殊回文数
  20. winds主机部署zabbix_agent

热门文章

  1. 电工电子技术------戴维南定理
  2. Android Hook技术
  3. TCP/IP协议栈之LwIP(二)---网络接口管理
  4. 旗舰版ndows7bios设置,windows7旗舰版怎样设置embios/em怎样设置emU盘
  5. termux 安装centos
  6. 学计算机的有多少人,究竟有多少人在学习计算机科学技术
  7. linux如何查看tar的文件,linux下不解包查看tar包文件内容
  8. slmgr-命令详解
  9. rearm 命令_windows7系统修复命令利用rearm命令延长Windows 7试用期限
  10. 开发工具的学习以及认识