免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: ShadowStar
打印 上一主题 下一主题

[网络管理] IPP2P模块修改版,最新0.99.16 [复制链接]

论坛徽章:
0
1 [报告]
发表于 2008-01-31 19:27 |显示全部楼层
我的debian etch安装0.99.5的时候出错了,请老大看是啥问题;
#make KERNEL_SRC=/usr/src/linux-2.6.18.4 IPTABLES_SRC=/usr/src/lib/iptables-1.3.6
make -C /usr/src/linux-2.6.18.4 M=/root/ipp2p-0.99.14 modules
make[1]: Entering directory `/usr/src/linux-2.6.18.4'

  ERROR: Kernel configuration is invalid.
         include/linux/autoconf.h or include/config/auto.conf are missing.
         Run 'make oldconfig && make prepare' on kernel src to fix it.


  WARNING: Symbol version dump /usr/src/linux-2.6.18.4/Module.symvers
           is missing; modules will have no dependencies and modversions.

  Building modules, stage 2.
/usr/src/linux-2.6.18.4/scripts/Makefile.modpost:38: include/config/auto.conf: No such file or directory
make[2]: *** No rule to make target `include/config/auto.conf'.  Stop.
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.18.4'
make: *** [ipt_ipp2p.ko] Error 2
系统内核版本2.6.18.4  iptables 版本1.3.6
gcc 版本4.1.11

[ 本帖最后由 xjjjk 于 2008-2-1 13:33 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2008-02-01 19:20 |显示全部楼层
原帖由 ShadowStar 于 2008-2-1 17:16 发表


你的内核源代码没有配置。

内核模块会检查内核是否配置为支持NF

老大能不能明示到底如何配置内核源代码,我是从www.kernel.org上下载的内核源码,我也修改了ipp2p的Makefile中源码的路径了;

论坛徽章:
0
3 [报告]
发表于 2008-02-03 19:07 |显示全部楼层
原帖由 ShadowStar 于 2008-2-2 10:55 发表


在内核源代码目录中进行make menuconfig && make prepare && make modules_prepare

谢谢老大指点,ms成功了,但是我用dmesg |grep ipp看,看到以下提示,不知道是哪里的问题;
ipt_ipp2p: no version for "struct_module" found: kernel tainted.


用iptables -vnL可以看到ipp2p已经加载,这几天休息,还看不出来是否生效;
Chain FORWARD (1 references)
pkts bytes target     prot opt in     out     source               destination                                               
    0     0 DROP       all  --  *      *       0.0.0.0/0            0.0.0.0/0                                                         ipp2p v0.99.14 --kazaa --gnu --edk --dc --bit --pp --xunlei --apple --so                                              ul --winmx --ares

论坛徽章:
0
4 [报告]
发表于 2008-02-13 19:31 |显示全部楼层
原帖由 ShadowStar 于 2008-2-5 22:08 发表


请说明一下你的内核版本和iptables版本。


提示信息:
ipt_ipp2p: no version for "struct_module" found: kernel tainted.
IPP2P v0.99.14 loading

我这里有三台机器都是一样的提示信息,感觉没有起作用;
以下分别是三台服务器的相关信息;


******************************************************************************************
服务器1
cs:/usr/src# iptables -vnL|mor
Chain INPUT (policy DROP 1653K packets, 92M bytes)
pkts bytes target     prot opt in     out     source               destination
    0     0 ACCEPT     udp  --  eth1   *       0.0.0.0/0            0.0.0.0/0           udp dpt:8767
    0     0 ACCEPT     all  --  *      *       220.171.44.107       0.0.0.0/0
188K   19M icmp_packets  icmp --  eth1   *       0.0.0.0/0            0.0.0.0/0
799K   77M ACCEPT     all  --  !eth1  *       0.0.0.0/0            0.0.0.0/0
843K  724M ACCEPT     all  --  eth1   *       0.0.0.0/0            0.0.0.0/0           state RELATED,ESTABLISHED

Chain FORWARD (policy DROP 92 packets, 5979 bytes)
pkts bytes target     prot opt in     out     source               destination
332M  243G allowip    all  --  *      *       0.0.0.0/0            0.0.0.0/0

Chain OUTPUT (policy ACCEPT 1808K packets, 800M bytes)
pkts bytes target     prot opt in     out     source               destination

Chain allowip (1 references)
pkts bytes target     prot opt in     out     source               destination
  10M 3291M DROP       all  --  *      *       0.0.0.0/0            0.0.0.0/0           ipp2p v0.99.5 --kazaa --gnu --edk --dc
--bit --pp --xunlei --apple --soul --winmx --ares
198M  187G ACCEPT     all  --  *      *       10.1.9.0/24          0.0.0.0/0
5316 1408K ACCEPT     all  --  *      *       10.1.15.37           202.108.152.0/24
4082 2147K ACCEPT     all  --  *      *       202.108.152.0/24     10.1.15.37
    0     0 ACCEPT     all  --  *      *       10.1.15.32           202.108.152.0/24
    0     0 ACCEPT     all  --  *      *       202.108.152.0/24     10.1.15.32
    0     0 ACCEPT     all  --  *      *       10.1.15.40           202.108.152.0/24
    0     0 ACCEPT     all  --  *      *       202.108.152.0/24     10.1.15.40
123M   51G ACCEPT     all  --  *      *       0.0.0.0/0            10.1.9.0/24
    0     0 ACCEPT     all  --  *      *       10.12.60.179         0.0.0.0/0
    0     0 ACCEPT     all  --  *      *       0.0.0.0/0            10.12.60.179
130K   15M ACCEPT     all  --  *      *       10.1.2.6             0.0.0.0/0
131K  125M ACCEPT     all  --  *      *       0.0.0.0/0            10.1.2.6
127K   18M ACCEPT     all  --  *      *       10.1.5.6             0.0.0.0/0
148K  156M ACCEPT     all  --  *      *       0.0.0.0/0            10.1.5.6
    0     0 ACCEPT     all  --  *      *       10.12.60.30          218.202.154.46
    0     0 ACCEPT     all  --  *      *       218.202.154.46       10.12.60.30
    0     0 ACCEPT     all  --  *      *       10.16.5.6            218.202.154.46
    0     0 ACCEPT     all  --  *      *       218.202.154.46       10.16.5.6

Chain icmp_packets (1 references)
pkts bytes target     prot opt in     out     source               destination
    3   252 ACCEPT     icmp --  *      *       0.0.0.0/0            0.0.0.0/0           icmp type 0
  554 35482 ACCEPT     icmp --  *      *       0.0.0.0/0            0.0.0.0/0           icmp type 8 limit: avg 1/sec burst 5




内核版本和iptables版本
cs:~# uname -a

Linux cs 2.6.8-2-686 #1 Tue Aug 16 13:22:48 UTC 2005 i686 GNU/Linux
cs:~# iptables -V
iptables v1.2.11






******************************************************************************************
服务器2
proxy:~#       uname -a
Linux hgproxy 2.6.22-3-686 #1 SMP Mon Nov 12 08:32:57 UTC 2007 i686 GNU/Linux
proxy:~# iptables -V
iptables v1.3.8

proxy:iptables -vnL
Chain INPUT (policy DROP 51089 packets, 6456K bytes)
pkts bytes target     prot opt in     out     source               destination
1224 81552 icmp_packets  icmp --  eth0   *       0.0.0.0/0            0.0.0.0/0
8018K 1185M ACCEPT     all  --  !eth0  *       0.0.0.0/0            0.0.0.0/0
    0     0 ACCEPT     tcp  --  eth0   *       0.0.0.0/0            0.0.0.0/0
    0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0
    0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0
    0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0
    0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0
    0     0 ACCEPT     tcp  --  eth0   *       10.0.0.0/14          0.0.0.0/0   3/sec burst 5
    0     0 ACCEPT     tcp  --  eth0   *       218.202.221.9        0.0.0.0/0   3/sec burst 5
    0     0 ACCEPT     tcp  --  eth0   *       60.13.191.22         0.0.0.0/0   3/sec burst 5
    0     0 ACCEPT     tcp  --  eth0   *       220.171.44.107       0.0.0.0/0   3/sec burst 5
    0     0 ACCEPT     tcp  --  eth0   *       220.171.44.109       0.0.0.0/0   3/sec burst 5
8347K 8660M ACCEPT     all  --  eth0   *       0.0.0.0/0            0.0.0.0/0
    0     0 ACCEPT     all  --  eth1   *       0.0.0.0/0            0.0.0.0/0

Chain FORWARD (policy DROP 5 packets, 864 bytes)
pkts bytes target     prot opt in     out     source               destination
6442K 3628M allowip    all  --  *      *       0.0.0.0/0            0.0.0.0/0

Chain OUTPUT (policy ACCEPT 19M packets, 11G bytes)
pkts bytes target     prot opt in     out     source               destination

Chain allowip (1 references)
pkts bytes target     prot opt in     out     source               destination
12267 1633K DROP       all  --  *      *       0.0.0.0/0            0.0.0.0/0   c --bit --pp --xunlei --apple --soul --winmx --ares
1048K  513M ACCEPT     all  --  *      *       10.22.1.0/29         0.0.0.0/0
133K  130M ACCEPT     all  --  *      *       0.0.0.0/0            10.22.1.0/29
1670K 1189M ACCEPT     all  --  *      *       10.22.9.0/29         0.0.0.0/0
1406K  985M ACCEPT     all  --  *      *       0.0.0.0/0            10.22.9.0/29
  236 24497 ACCEPT     all  --  *      *       10.22.2.66           219.142.60.2
  231 82818 ACCEPT     all  --  *      *       219.142.60.203       10.22.2.66
    0     0 ACCEPT     all  --  *      *       0.0.0.0/0            121.68.62.38
    0     0 ACCEPT     all  --  *      *       121.68.62.38         0.0.0.0/0
    0     0 ACCEPT     all  --  *      *       0.0.0.0/0            124.173.186.
    0     0 ACCEPT     all  --  *      *       124.173.186.3        0.0.0.0/0
90351 7176K ACCEPT     all  --  *      *       61.128.114.133       10.20.2.1
90647 6139K ACCEPT     all  --  *      *       10.20.2.1            61.128.114.1
    0     0 DROP       tcp  --  *      *       0.0.0.0/0            0.0.0.0/0
    0     0 DROP       tcp  --  *      *       0.0.0.0/0            0.0.0.0/0
    3   144 DROP       tcp  --  *      *       0.0.0.0/0            0.0.0.0/0
  225 10800 DROP       tcp  --  *      *       0.0.0.0/0            0.0.0.0/0
  219 17082 DROP       udp  --  *      *       0.0.0.0/0            0.0.0.0/0
    0     0 DROP       udp  --  *      *       0.0.0.0/0            0.0.0.0/0
    0     0 DROP       udp  --  *      *       0.0.0.0/0            0.0.0.0/0
    0     0 DROP       udp  --  *      *       0.0.0.0/0            0.0.0.0/0
    0     0 ACCEPT     all  --  *      *       10.20.0.0/14         10.0.0.0/13
123K 7568K ACCEPT     all  --  *      *       10.0.0.0/13          10.20.0.0/14
    0     0 ACCEPT     tcp  --  *      *       10.20.2.0/24         0.0.0.0/0
    0     0 ACCEPT     tcp  --  *      *       10.20.2.0/24         0.0.0.0/0
112K  153M ACCEPT     tcp  --  *      *       10.22.1.0/24         0.0.0.0/0
    0     0 ACCEPT     tcp  --  *      *       10.22.1.0/24         0.0.0.0/0
91155 3932K ACCEPT     tcp  --  *      *       10.22.1.0/24         0.0.0.0/0
  195  215K ACCEPT     tcp  --  *      *       10.22.2.0/24         0.0.0.0/0
4635  195K ACCEPT     tcp  --  *      *       10.22.2.0/24         0.0.0.0/0
  195 70262 ACCEPT     tcp  --  *      *       10.22.6.0/24         0.0.0.0/0
4536  186K ACCEPT     tcp  --  *      *       10.22.6.0/24         0.0.0.0/0
    0     0 ACCEPT     tcp  --  *      *       10.22.9.0/24         0.0.0.0/0
    0     0 ACCEPT     tcp  --  *      *       10.22.9.0/24         0.0.0.0/0
    0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            10.20.2.0/24
    0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            10.20.2.0/24
115K 4873K ACCEPT     tcp  --  *      *       0.0.0.0/0            10.22.1.0/24
    0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            10.22.1.0/24
143K  134M ACCEPT     tcp  --  *      *       0.0.0.0/0            10.22.1.0/24
  156  7393 ACCEPT     tcp  --  *      *       0.0.0.0/0            10.22.2.0/24
7122 8337K ACCEPT     tcp  --  *      *       0.0.0.0/0            10.22.2.0/24
635K  129M ACCEPT     all  --  *      *       10.21.1.0/24         0.0.0.0/0
605K  336M ACCEPT     all  --  *      *       0.0.0.0/0            10.21.1.0/24
  128  9685 ACCEPT     all  --  *      *       10.22.6.0/24         0.0.0.0/0
8649   11M ACCEPT     all  --  *      *       0.0.0.0/0            10.22.6.0/24
    0     0 ACCEPT     all  --  *      *       10.20.2.6            0.0.0.0/0
    0     0 ACCEPT     all  --  *      *       0.0.0.0/0            10.20.2.6
141K 8284K DROP       all  --  *      *       10.20.0.0/14         0.0.0.0/0

Chain icmp_packets (1 references)
pkts bytes target     prot opt in     out     source               destination
    0     0 ACCEPT     icmp --  *      *       0.0.0.0/0            0.0.0.0/0
  536 37325 ACCEPT     icmp --  *      *       0.0.0.0/0            0.0.0.0/0
proxy:~#


******************************************************************************************
服务器3

firewall-dx:~#            iptables -V
iptables v1.3.8
firewall-dx:~# uname -a
Linux firewall-dx 2.6.18-6-686 #1 SMP Wed Jan 23 03:23:22 UTC 2008 i686 GNU/Linux


firewall-dx:~# iptables -vnL
Chain INPUT (policy DROP 0 packets, 0 bytes)
pkts bytes target     prot opt in     out     source               destination
    0     0 ACCEPT     udp  --  eth1   *       0.0.0.0/0            0.0.0.0/0           udp dpt:8767
    0     0 ACCEPT     all  --  *      *       220.171.44.107       0.0.0.0/0
    0     0 icmp_packets  icmp --  eth1   *       0.0.0.0/0            0.0.0.0/0
97748   10M ACCEPT     all  --  !eth1  *       0.0.0.0/0            0.0.0.0/0
    0     0 ACCEPT     all  --  eth1   *       0.0.0.0/0            0.0.0.0/0           state RELATED,ESTABLISHED

Chain FORWARD (policy DROP 0 packets, 0 bytes)
pkts bytes target     prot opt in     out     source               destination
    0     0 allowip    all  --  *      *       0.0.0.0/0            0.0.0.0/0

Chain OUTPUT (policy ACCEPT 3136 packets, 759K bytes)
pkts bytes target     prot opt in     out     source               destination

Chain allowip (1 references)
pkts bytes target     prot opt in     out     source               destination
    0     0 DROP       all  --  *      *       0.0.0.0/0            0.0.0.0/0           ipp2p v0.8.1_rc1 --ipp2p
    0     0 ACCEPT     all  --  *      *       10.1.9.0/24          0.0.0.0/0
    0     0 ACCEPT     all  --  *      *       10.1.15.37           202.108.152.0/24
    0     0 ACCEPT     all  --  *      *       202.108.152.0/24     10.1.15.37
    0     0 ACCEPT     all  --  *      *       10.1.15.32           202.108.152.0/24
    0     0 ACCEPT     all  --  *      *       202.108.152.0/24     10.1.15.32
    0     0 ACCEPT     all  --  *      *       10.1.15.40           202.108.152.0/24
    0     0 ACCEPT     all  --  *      *       202.108.152.0/24     10.1.15.40
    0     0 ACCEPT     all  --  *      *       0.0.0.0/0            10.1.9.0/24
    0     0 ACCEPT     all  --  *      *       10.12.60.179         0.0.0.0/0
    0     0 ACCEPT     all  --  *      *       0.0.0.0/0            10.12.60.179
    0     0 ACCEPT     all  --  *      *       10.1.2.6             0.0.0.0/0
    0     0 ACCEPT     all  --  *      *       0.0.0.0/0            10.1.2.6
    0     0 ACCEPT     all  --  *      *       10.1.5.6             0.0.0.0/0
    0     0 ACCEPT     all  --  *      *       0.0.0.0/0            10.1.5.6
    0     0 ACCEPT     all  --  *      *       10.12.60.30          218.202.154.46
    0     0 ACCEPT     all  --  *      *       218.202.154.46       10.12.60.30
    0     0 ACCEPT     all  --  *      *       10.16.5.6            218.202.154.46
    0     0 ACCEPT     all  --  *      *       218.202.154.46       10.16.5.6

Chain icmp_packets (1 references)
pkts bytes target     prot opt in     out     source               destination
    0     0 ACCEPT     icmp --  *      *       0.0.0.0/0            0.0.0.0/0           icmp type 0
    0     0 ACCEPT     icmp --  *      *       0.0.0.0/0            0.0.0.0/0           icmp type 8 limit: avg 1/sec burst 5

[ 本帖最后由 xjjjk 于 2008-2-14 11:09 编辑 ]

论坛徽章:
0
5 [报告]
发表于 2008-02-19 16:34 |显示全部楼层
原帖由 ShadowStar 于 2008-2-19 10:32 发表


你的服务器1使用的是0.99.5的,已经截获了3290M多的数据流量。
服务器2没看出来什么版本的,但是也有数据捕获。
服务器3时0.81的,没有捕获。

谢谢老大,服务器三是我新安装的测试机,没有在工作环境中测试,不过我发现通过iptables的limit功能也能比较好的限制p2p流量,不好的就是会把很多正常的流量也block了;

论坛徽章:
0
6 [报告]
发表于 2008-08-22 19:37 |显示全部楼层
环境:debian etch 内核2.6.18-4-686 iptable 1.3.6
编译成功后也把相关文件复制到了相关目录,用insmod 提示
insmod ipt_ipp2p.ko
insmod: error inserting 'ipt_ipp2p.ko': -1 Unknown symbol in module

以下是dmesg显示
ipt_ipp2p: Unknown symbol xt_register_match
ipt_ipp2p: Unknown symbol xt_unregister_match
IPP2P v0.99.15 loading
IPP2P v0.99.15 unloaded
IPP2P v0.99.15 loading
请各位用debian 的大侠给点提示。


iptables错误提示;
  
iptables -A FORWARD -m ipp2p --xunlei -j DROP
iptables v1.3.6: Couldn't load match `ipp2p'

Try `iptables -h' or 'iptables --help' for more information.

论坛徽章:
0
7 [报告]
发表于 2008-12-13 20:26 |显示全部楼层
lz好久没来了,忙些啥,请教下,如果linux使用了ipp2p,但是服务器上有squid代理服务器,是不是要对INPUT作限制;
iptables -I INPUT -m ipp2p --ipp2p --xunlei -j DROP

论坛徽章:
0
8 [报告]
发表于 2008-12-13 20:29 |显示全部楼层
期待早日发布基于linux平台的panbit;
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP