亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊(cè) 查看新帖 |

Chinaunix

  平臺(tái) 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
樓主: ShadowStar
打印 上一主題 下一主題

[網(wǎng)絡(luò)管理] IPP2P模塊修改版,最新0.99.16 [復(fù)制鏈接]

論壇徽章:
0
21 [報(bào)告]
發(fā)表于 2007-11-19 11:55 |只看該作者
不錯(cuò),我試了下,發(fā)現(xiàn)可以禁止。。

我用的迅雷的版本比較舊些。。。

論壇徽章:
0
22 [報(bào)告]
發(fā)表于 2007-11-19 12:12 |只看該作者
我測(cè)試用的是最新的迅雷,5.7.4的。

論壇徽章:
0
23 [報(bào)告]
發(fā)表于 2007-11-19 13:34 |只看該作者
安裝ipp2p-0.99.3,執(zhí)行make時(shí)出現(xiàn):make: Nothing to be done for `all'.
[root@sushe ipp2p-0.99.3]# make
make: Nothing to be done for `all'.
怎么解決?
還有:在-ipp2p-0.99.3說明文檔里的一句話:modify the Makefile (change "IUSER = -I/usr/src/iptables/include" to wherever iptables.h is located)是什么意思,我應(yīng)該修改哪個(gè)目錄下的哪個(gè)文件,怎么修改?在此先謝過!
iptables是iptables1.3.8,源碼在/usr/src/iptables-1.3.8目錄下
ipp2p-0.99.3源碼在/usr/src/ipp2p-0.99.3下
kernel是2.6.19.7,使用的是rhel5

論壇徽章:
0
24 [報(bào)告]
發(fā)表于 2007-11-19 13:47 |只看該作者
export IPTABLES_SRC="$your_iptables_patch" KERNEL_SRC="$your_kernel_patch"

就好了

論壇徽章:
0
25 [報(bào)告]
發(fā)表于 2007-11-19 13:54 |只看該作者
原帖由 ShadowStar 于 2007-11-18 22:16 發(fā)表


麻煩您抓一下包給我看看,只要抓到“搜索到x個(gè)候選資源”字樣顯示就可以。



不會(huì)抓包啊,用什么工具?SNIFFER還是ethereal?
忘說了,我這兒是IPTABLES+SQUID透明代理

論壇徽章:
0
26 [報(bào)告]
發(fā)表于 2007-11-19 14:41 |只看該作者
原帖由 5639863 于 2007-11-19 13:54 發(fā)表



不會(huì)抓包啊,用什么工具?SNIFFER還是ethereal?
忘說了,我這兒是IPTABLES+SQUID透明代理


把你的iptables-save的輸出貼出來,我看看。

論壇徽章:
0
27 [報(bào)告]
發(fā)表于 2007-11-19 14:43 |只看該作者
樓主用的內(nèi)核的版本是多少?iptables 版本呢?

我一直用的內(nèi)核就是2.6.15.4 iptables是1.3.6的。

近來想重新編譯下,l7也已經(jīng)很舊的了。。

論壇徽章:
0
28 [報(bào)告]
發(fā)表于 2007-11-19 14:58 |只看該作者
應(yīng)該和內(nèi)核版本、iptables版本沒什么關(guān)系,只要在makefile指定好就OK。

我這邊使用的是2.6.22的內(nèi)核,1.3.8的iptables。

論壇徽章:
0
29 [報(bào)告]
發(fā)表于 2007-11-19 15:11 |只看該作者
原帖由 5639863 于 2007-11-19 13:54 發(fā)表



不會(huì)抓包啊,用什么工具?SNIFFER還是ethereal?
忘說了,我這兒是IPTABLES+SQUID透明代理


我大概猜到為什么你那邊還是能搜索到候選資源了。
1。你的透明代理是將發(fā)送到80端口的數(shù)據(jù)包轉(zhuǎn)發(fā)到本地的SQUID代理服務(wù)器,然后再由SQUID代理發(fā)送到對(duì)方服務(wù)器。
2。迅雷搜索候選資源使用的http協(xié)議、80端口,ipp2p中的匹配也是對(duì)這個(gè)http數(shù)據(jù)的過濾。
3。由于通過SQUID后的數(shù)據(jù)并沒有經(jīng)過FORWARD鏈,而是經(jīng)過了本地的INPUT和OUTPUT鏈,所以你添加在FORWARD鏈的--xunlei選項(xiàng)沒有起作用。

建議你添加--xunlei規(guī)則到INPUT或OUTPUT鏈試驗(yàn)一下。

論壇徽章:
0
30 [報(bào)告]
發(fā)表于 2007-11-19 16:13 |只看該作者
我這樣指定的:
# export KERNEL_DIR=/usr/src/linux-2.6.19
# export IPTABLES_DIR=/usr/src/iptables-1.3.8

對(duì)樓上說的
export IPTABLES_SRC="$your_iptables_patch" KERNEL_SRC="$your_kernel_patch",所謂的your_iptables_patch是iptables-p2p-0.3.0a,your_kernel_patch是netfilter-layer7-v2.14嗎,不知我理解的對(duì)不對(duì)


請(qǐng)圣騎士幫忙:只要在makefile指定,怎么指定呀,我的ipp2p-0.99.3目錄下的Makefile內(nèi)容如下:
[root@sushe src]# ls ipp2p-0.99.3/README
ipp2p-0.99.3/README
[root@sushe src]# more ipp2p-0.99.3/README
IPP2P, an extension to iptables to identify P2P traffic written by Eicke Friedri
ch.
This software is under development but it seems to run pretty stable. Use at you
r own risk!


Installation Instructions:
--------------------------
-modify the Makefile (change "IUSER = -I/usr/src/iptables/include" to wherever i
ptables.h is located)
-type "make"
-copy libipt_ipp2p.so to the iptables lib dir (/usr/lib/iptables/)
-insmod ipt_ipp2p.o / ipt_ipp2p.ko or copy to your kernel modules dir and do a "
depmod -a"
-create your rules


Versions:
---------
Currently IPP2P is tested to be working together with:
-Linux-Kernels 2.6: 2.6.3, 2.6.4, 2.6.6, 2.6.17
-Linux-Kernels 2.4: 2.4.18, 2.4.19, 2.4.20, 2.4.21, 2.4.22, 2.4.23, 2.4.26
-iptables (from netfilter.org) 1.2.7a, 1.2.8, 1.2.9, 1.2.11, 1.3.0, 1.3.1
[root@sushe src]# more ipp2p-0.99.3/Makefile
ifneq ($(KERNELRELEASE),)
obj-m := ipt_ipp2p.o

else
#KERNEL_SRC = /usr/src/linux
KERNEL_SRC ?= $(firstword $(wildcard /lib/modules/$(shell uname -r)/build /usr/s
rc/linux))
ifeq ($(KERNEL_SRC),)
$(error You need to define KERNEL_SRC)
endif

ifneq ($wildcard $(KERNEL_SRC)/include/linux/modversions.h),)
MODVERSIONS = -DMODVERSIONS
endif

_KVER = $(strip $(shell cat $(KERNEL_SRC)/Makefile | grep -e '^VERSION' | cut -d
"=" -f2))
_KPL = $(strip $(shell cat $(KERNEL_SRC)/Makefile | grep -e '^PATCHLEVEL' | cut
-d"=" -f2))
_KSUB = $(strip $(shell cat $(KERNEL_SRC)/Makefile | grep -e '^SUBLEVEL' | cut -
d"=" -f2))
KERNEL_SERIES=$(_KVER).$(_KPL)

ifeq ($(KERNEL_SERIES), 2.6)
        TARGET=ipt_ipp2p.ko
else
        TARGET=ipt_ipp2p.o
endif

SED = sed
IPTABLES_BIN = iptables
ifndef $(IPTABLES_SRC)
IPTVER = \
        $(shell $(IPTABLES_BIN) --version | $(SED) -e 's/^iptables v//')
IPTABLES_SRC = $(wildcard /usr/src/iptables-$(IPTVER))
#IPTABLES_SRC = /var/tmp/portage/net-firewall/iptables-1.3.8-r1/work/iptables-1.
3.8
endif

ifeq ($(IPTABLES_SRC),)
$(warning You need to install iptables sources and maybe set IPTABLES_SRC)
endif

IPTABLES_INCLUDE = -I$(IPTABLES_SRC)/include

ifneq ($(IPTVER),)
        IPTABLES_VERSION = $(IPTVER)
else
        IPTABLES_VERSION = $(shell cat $(IPTABLES_SRC)/Makefile | grep -e '^IPTA
BLES_VERSION:=' | cut -d"=" -f2)
endif

IPTABLES_OPTION = -DIPTABLES_VERSION=\"$(IPTABLES_VERSION)\"

#CC = /usr/bin/x86_64-pc-linux-gnu-gcc-4.1.2
CC = gcc
CFLAGS = -O3 -Wall



all: modules libipt_ipp2p.so

modules: $(TARGET)

ipt_ipp2p.o: ipt_ipp2p.h ipt_ipp2p.c
        $(CC) $(CFLAGS) -I$(KERNEL_SRC)/include -c ipt_ipp2p.c -D__KERNEL__ -DMO
DULE $(MODVERSIONS)

ipt_ipp2p.ko: ipt_ipp2p.h ipt_ipp2p.c
        $(MAKE) -C $(KERNEL_SRC) M=$(PWD) modules


libipt_ipp2p.so: libipt_ipp2p.c ipt_ipp2p.h
        $(CC) $(CFLAGS) $(IPTABLES_OPTION) $(IPTABLES_INCLUDE) -fPIC -c libipt_i
pp2p.c
        $(CC) -shared -o libipt_ipp2p.so libipt_ipp2p.o

clean:
        -rm -f *.o *.so *.ko .*.cmd *.mod.c
endif
[root@sushe src]#

對(duì)上面熱情幫忙的老兄謝謝了
您需要登錄后才可以回帖 登錄 | 注冊(cè)

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號(hào)-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號(hào):11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專區(qū)
中國(guó)互聯(lián)網(wǎng)協(xié)會(huì)會(huì)員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請(qǐng)注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP