Gentoo Archives: gentoo-user

From: Dave Jones <Dave.Jones@××××××.nl>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] netfilter tarpit target
Date: Sun, 01 Apr 2007 14:25:41
Message-Id: 460FBEBA.2000609@xs4all.nl
In Reply to: [gentoo-user] netfilter tarpit target by Daniel Iliev
1 Hi Daniel
2
3 Daniel Iliev wrote on 01/04/07 15:03:
4 > Recently I was looking through my logs when I got pissed off (again) by
5 > the big number of lines showing something like 'sshd: auth. error:
6 > unknown user "XXX" from "some IP address"'. I wrote a script which
7 > automatically sets all connections from those IP addresses to be
8 > dropped. Next I decided to change "-j DROP" with "-j TARPIT" and I
9 > realized that gentoo-sources doesn't provide the netfilter target "TARPIT".
10
11 > My question: what is the best way get this iptables module working w/o
12 > diverting too much from the official Gentoo installation. I mean the
13 > normal way is to use patch-o-matic to patch iptables source and vanilla
14 > kernel source, then build and install. I have the feeling that it is not
15 > exactly the right thing to with Gentoo.
16
17 cd /usr/src
18
19 svn co https://svn.netfilter.org/netfilter/trunk/patch-o-matic-ng
20 svn co https://svn.netfilter.org/netfilter/trunk/iptables
21
22 cd patch-o-matic-ng
23 ./runme extra
24
25 cd /usr/src/linux
26 make menuconfig
27 make && make modules_install && make install
28
29 make sure you have USE "extensions" in your make.conf
30
31 emerge iptables
32
33 Cheers, Dave
34 --
35 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] netfilter tarpit target Daniel Iliev <danny@××××××××.com>