LINUX.ORG.RU
Ответ на: комментарий от sasha999

хмм ... ну скачал с сайта iptables-1.2.11.tar.bz2 (у меня iptables версии 1.2.11-4.2), скопировал папку из архива iptables-1.2.11 в /usr/include/ ... (полный путь /usr/include/iptables-1.2.11).

запускаю make, и что получаю: (И ЧТО ЕМУ ЕЩЕ НАДО?)

gate:/install/iptables-p2p-0.3.0a # make make -C iptables make[1]: Entering directory `/install/iptables-p2p-0.3.0a/iptables' gcc -O2 -Wall -DIPTABLES_VERSION=\"1.2.11\" -I../common -c -o libipt_p2p.o libipt_p2p.c ld -shared -o libipt_p2p.so libipt_p2p.o make[1]: Leaving directory `/install/iptables-p2p-0.3.0a/iptables' make -C kernel linux-2.6 make[1]: Entering directory `/install/iptables-p2p-0.3.0a/kernel' make -C /lib/modules/2.6.8-24-default/build SUBDIRS=/install/iptables-p2p-0.3.0a/kernel P2P_COMMON=/install/iptables-p2p-0.3.0a/kernel/../common modules make[2]: Entering directory `/usr/src/linux-2.6.8-24-obj/i386/default' make -C ../../../linux-2.6.8-24 O=../linux-2.6.8-24-obj/i386/default modules CC [M] /install/iptables-p2p-0.3.0a/kernel/main.o In file included from /usr/src/linux-2.6.8-24/include/linux/irq.h:20, from include2/asm/hardirq.h:6, from /usr/src/linux-2.6.8-24/include/linux/hardirq.h:8, from /usr/src/linux-2.6.8-24/include/linux/interrupt.h:11, from include2/asm/highmem.h:24, from /usr/src/linux-2.6.8-24/include/linux/highmem.h:14, from /usr/src/linux-2.6.8-24/include/linux/skbuff.h:27, from /install/iptables-p2p-0.3.0a/kernel/main.c:18: include2/asm/irq.h:16:25: irq_vectors.h: No such file or directory In file included from include2/asm/hardirq.h:6, from /usr/src/linux-2.6.8-24/include/linux/hardirq.h:8, from /usr/src/linux-2.6.8-24/include/linux/interrupt.h:11, from include2/asm/highmem.h:24, from /usr/src/linux-2.6.8-24/include/linux/highmem.h:14, from /usr/src/linux-2.6.8-24/include/linux/skbuff.h:27, from /install/iptables-p2p-0.3.0a/kernel/main.c:18: /usr/src/linux-2.6.8-24/include/linux/irq.h:70: error: `NR_IRQS' undeclared here (not in a function) In file included from /usr/src/linux-2.6.8-24/include/linux/irq.h:72, from include2/asm/hardirq.h:6, from /usr/src/linux-2.6.8-24/include/linux/hardirq.h:8, from /usr/src/linux-2.6.8-24/include/linux/interrupt.h:11, from include2/asm/highmem.h:24, from /usr/src/linux-2.6.8-24/include/linux/highmem.h:14, from /usr/src/linux-2.6.8-24/include/linux/skbuff.h:27, from /install/iptables-p2p-0.3.0a/kernel/main.c:18: include2/asm/hw_irq.h:28: error: `NR_IRQ_VECTORS' undeclared here (not in a function) include2/asm/hw_irq.h:32: error: `NR_IRQS' undeclared here (not in a function) /install/iptables-p2p-0.3.0a/kernel/main.c:25:39: linux/modversions.h: No such file or directory make[5]: *** [/install/iptables-p2p-0.3.0a/kernel/main.o] Error 1 make[4]: *** [_module_/install/iptables-p2p-0.3.0a/kernel] Error 2 make[3]: *** [modules] Error 2 make[2]: *** [modules] Error 2 make[2]: Leaving directory `/usr/src/linux-2.6.8-24-obj/i386/default' make[1]: *** [ipt_p2p.ko] Error 2 make[1]: Leaving directory `/install/iptables-p2p-0.3.0a/kernel' make: *** [linux-2.6] Error 2 gate:/install/iptables-p2p-0.3.0a #

anonymous
()
Ответ на: комментарий от anonymous

Ну просто трындец. Вы README когда-нибудь читаете? 1. Берем самое последнее ядро с kernel.org 2. Берем iptables 1.3.2, patch-o-matic-ng-2004-06-01 (http://ftp.netfilter.org/pub/) и p-2-p (http://sourceforge.net/projects/iptables-p2p/). 3. Ставим как описано в документации, настраиваем правила, радуемся.

anonymous
()
Ответ на: комментарий от anonymous

поэтому и трындец выходит. ставь то ставь это ... на кой спрашуется? меня вполне страивает моя версия ядра (2.6.8) и Iptables (1.2.11), а ради этого извращаться желания нет. проще ручками прописать.

anonymous
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.