免费注册 查看新帖 |

Chinaunix

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

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

论坛徽章:
0
291 [报告]
发表于 2008-01-30 10:50 |只看该作者
原帖由 太空漫步 于 2008-1-14 19:38 发表
LZ确实强人,为我们无私奉献这么好的软件!

不过我在编译时出现错误,如下:
[root@Lux ipp2p-0.99.13]# make KERNEL_SRC=/usr/src/linux IPTABLES_SRC=/usr/src/iptables
gcc -O3 -Wall -DIPTABLES_VERSI ...



谁知道怎么解决这个问题呢?

论坛徽章:
0
292 [报告]
发表于 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
293 [报告]
发表于 2008-02-01 17:16 |只看该作者
原帖由 xjjjk 于 2008-1-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 m ...


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

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

论坛徽章:
0
294 [报告]
发表于 2008-02-01 17:17 |只看该作者
原帖由 sxqw 于 2008-1-30 10:50 发表



谁知道怎么解决这个问题呢?


我测试是1.4.0的头文件的错误。

论坛徽章:
0
295 [报告]
发表于 2008-02-01 19:20 |只看该作者
原帖由 ShadowStar 于 2008-2-1 17:16 发表


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

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

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

论坛徽章:
0
296 [报告]
发表于 2008-02-02 10:55 |只看该作者
原帖由 xjjjk 于 2008-2-1 19:20 发表

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


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

论坛徽章:
0
297 [报告]
发表于 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
298 [报告]
发表于 2008-02-05 22:08 |只看该作者
原帖由 xjjjk 于 2008-2-3 19:07 发表

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


用iptables -vnL可以看到ipp2p已经加载,这几 ...


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

论坛徽章:
0
299 [报告]
发表于 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
300 [报告]
发表于 2008-02-19 06:08 |只看该作者
哪位朋友能给一个编译好的ubuntu 6.06.2 amd64的模块,我怎么编译都出错!
谢谢!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP