Gentoo Archives: gentoo-user

From: Daniel Iliev <danny@××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] netfilter tarpit target
Date: Sun, 01 Apr 2007 17:16:06
Message-Id: 460FE782.4010201@ilievnet.com
In Reply to: Re: [gentoo-user] netfilter tarpit target by Dave Jones
1 Dave Jones wrote:
2 > Hi Daniel
3 >
4 >
5 >> My question: what is the best way get this iptables module working w/o
6 >> diverting too much from the official Gentoo installation. I mean the
7 >> normal way is to use patch-o-matic to patch iptables source and vanilla
8 >> kernel source, then build and install. I have the feeling that it is not
9 >> exactly the right thing to with Gentoo.
10 >>
11 >
12 > cd /usr/src
13 >
14 > svn co https://svn.netfilter.org/netfilter/trunk/patch-o-matic-ng
15 > svn co https://svn.netfilter.org/netfilter/trunk/iptables
16 >
17 > cd patch-o-matic-ng
18 > ./runme extra
19 >
20 > cd /usr/src/linux
21 > make menuconfig
22 > make && make modules_install && make install
23 >
24 > make sure you have USE "extensions" in your make.conf
25 >
26 > emerge iptables
27 >
28 > Cheers, Dave
29 >
30
31
32 Dave, thanks for your reply.
33
34 This patch appears to be incompatible with gentoo-sources or I'm doing
35 something wrong. After patching the module "TARPIT" appears in the
36 kernel configuration and I mark it to get built as a module [M]. Then:
37
38 ======================
39
40 make all modules_install install
41 scripts/kconfig/conf -s arch/i386/Kconfig
42 CHK include/linux/version.h
43 CHK include/linux/utsrelease.h
44 CHK include/linux/compile.h
45 GZIP kernel/config_data.gz
46 IKCFG kernel/config_data.h
47 CC kernel/configs.o
48 LD kernel/built-in.o
49 CC [M] net/ipv4/netfilter/ipt_TARPIT.o
50 net/ipv4/netfilter/ipt_TARPIT.c: In function ‘ip_direct_send’:
51 net/ipv4/netfilter/ipt_TARPIT.c:65: warning: implicit declaration of
52 function ‘neigh_hh_output’
53 ---snip----
54 Kernel: arch/i386/boot/bzImage is ready (#2)
55 Building modules, stage 2.
56 MODPOST 159 modules
57 WARNING: "neigh_hh_output" [net/ipv4/netfilter/ipt_TARPIT.ko] undefined!
58 make[1]: *** [__modpost] Error 1
59 make: *** [modules] Error 2
60
61 ======================
62
63
64
65 So, I'm still looking for advices.
66
67
68 --
69 Best regards,
70 Daniel
71
72
73 --
74 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] netfilter tarpit target Dave Jones <Dave.Jones@××××××.nl>