Thread View: news.software.nntp
12 messages
12 total messages
Started by TMM
Sat, 05 May 2007 15:34
INN Hammering
Author: TMM
Date: Sat, 05 May 2007 15:34
Date: Sat, 05 May 2007 15:34
8 lines
1610 bytes
1610 bytes
Is there any good script to prevent "connection-spamming" on INN? There's a lot of pure hammering on port 119 that makes INN go crazy with the serverload sometimes. I've been looking for a filter that bans hardhammering users before they reach the server but still no result. Can I for example, in some way combine inn with some kind of automatically handled tcp-wrapper or similar?
Re: INN Hammering
Author: Julien ÉLIE
Date: Sat, 05 May 2007 17:35
Date: Sat, 05 May 2007 17:35
25 lines
2111 bytes
2111 bytes
En réponse à TMM : > Is there any good script to prevent "connection-spamming" > on INN? There's a lot of pure hammering on port 119 that > makes INN go crazy with the serverload sometimes. I've > been looking for a filter that bans hardhammering users > before they reach the server but still no result. You might want to use iptables. How many connections per minute do you have from hammering spammers? Perhaps something like this: iptables -A INPUT -i eth0 -p tcp --dport 119 -m limit --limit 10/minute -j ACCEPT (you can also allow your peers to have no limit) I haven't tested with regular news readers but I believe they do not open as many connections per minute, don't they? (well, I have a premonition that someone will answer some news readers do...) -- Julien ÉLIE « L'amateur de plaisir solitaire fait souvent bande à part. » (Pierre Dac)
Re: INN Hammering
Author: F. Senault
Date: Sat, 05 May 2007 17:48
Date: Sat, 05 May 2007 17:48
16 lines
1870 bytes
1870 bytes
Le 5 mai 2007 à 19:35, Julien ÉLIE a écrit :
> I haven't tested with regular news readers but I believe they
> do not open as many connections per minute, don't they?
> (well, I have a premonition that someone will answer some
> news readers do...)
Don't think so, no. But I'm using a simple script to restrict the
number of simutaneous connections, and, to my surprise, it seems that 4
is the minimum I can allow before having legitimate users complain...
Fred
--
I had a message the other day from someone threatening to call their
very good friend, the mailer-daemon's boss, and have it sacked.
(Alistair J. R. Young)
Re: INN Hammering
Author: Julien ÉLIE
Date: Sat, 05 May 2007 18:00
Date: Sat, 05 May 2007 18:00
14 lines
1768 bytes
1768 bytes
En réponse à F. Senault : > Don't think so, no. But I'm using a simple script to restrict the > number of simutaneous connections, and, to my surprise, it seems that 4 > is the minimum I can allow before having legitimate users complain... Thanks for your testimony. [I believe you do not have users with hammering news readers which keep heavily sucking your binaries :)] -- Julien ÉLIE « Un seul être vous manque et tout est dépeuplé. » (Alphonse de Lamartine)
Re: INN Hammering
Author: Russ Allbery
Date: Sat, 05 May 2007 18:07
Date: Sat, 05 May 2007 18:07
15 lines
1687 bytes
1687 bytes
TMM <TMM@dont.mail.me> writes:
> Is there any good script to prevent "connection-spamming" on INN?
> There's a lot of pure hammering on port 119 that makes INN go crazy with
> the serverload sometimes. I've been looking for a filter that bans
> hardhammering users before they reach the server but still no result.
Take a look at the -H, -T, and -X options to innd in the innd man page.
They're not quite what you're looking for, but they may help.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: INN Hammering
Author: Ray Banana
Date: Sat, 05 May 2007 18:49
Date: Sat, 05 May 2007 18:49
17 lines
2273 bytes
2273 bytes
Thus spake Russ Allbery <rra@stanford.edu> > TMM <TMM@dont.mail.me> writes: >> Is there any good script to prevent "connection-spamming" on INN? >> There's a lot of pure hammering on port 119 that makes INN go crazy with >> the serverload sometimes. > Take a look at the -H, -T, and -X options to innd in the innd man page. > They're not quite what you're looking for, but they may help. I start nnrpd from xinetd instead of innd and this gives me full control over the number of concurrent connection per IP address and also makes use of tcpwrapper. This means of course that innd uses a port different from the one nnrpd uses. -- Too many ingredients in the soup, no room for a spoon. http://news.motzarella.org
Re: INN Hammering
Author: Aioe
Date: Sat, 05 May 2007 19:36
Date: Sat, 05 May 2007 19:36
10 lines
1181 bytes
1181 bytes
On Sat, 05 May 2007 19:35:29 +0200, Julien ÉLIE wrote: > How many connections per minute do you have from hammering > spammers? i use 10/10 (conn/sec) 15/20 (conn(sec) 600/86400
Re: INN Hammering
Author: Szymon Sokół
Date: Sat, 05 May 2007 19:40
Date: Sat, 05 May 2007 19:40
13 lines
2142 bytes
2142 bytes
On Sat, 5 May 2007 19:48:06 +0200, F. Senault wrote: > Don't think so, no. But I'm using a simple script to restrict the > number of simutaneous connections, and, to my surprise, it seems that 4 > is the minimum I can allow before having legitimate users complain... Out of curiosity, what software do they use? -- Szymon Sokół (SS316-RIPE) -- Network Manager B Computer Center, AGH - University of Science and Technology, Cracow, Poland O http://home.agh.edu.pl/szymon/ PGP key id: RSA: 0x2ABE016B, DSS: 0xF9289982 F Free speech includes the right not to listen, if not interested -- Heinlein H
Re: INN Hammering
Author: Patrick Lamaizière
Date: Sat, 05 May 2007 21:01
Date: Sat, 05 May 2007 21:01
20 lines
2118 bytes
2118 bytes
Szymon Sokó? : >> Don't think so, no. But I'm using a simple script to restrict the >> number of simutaneous connections, and, to my surprise, it seems that >> 4 is the minimum I can allow before having legitimate users >> complain... > > Out of curiosity, what software do they use? By sample Xnews can open and use 4 connections, no more. There is something into the GNKSA about this number of connections (http://www.xs4all.nl/~js/gnksa/) : « 19) Be kind to servers, leave room for others Reading or posting software MUST NOT put excessive demands on news servers unnecessarily. The sofware MUST limit itself to 4 simultaneous connections to a given server. »
Re: INN Hammering
Author: Russ Allbery
Date: Sun, 06 May 2007 03:45
Date: Sun, 06 May 2007 03:45
23 lines
2063 bytes
2063 bytes
Ray Banana <rayban@banana.shacknet.nu> writes:
> Thus spake Russ Allbery <rra@stanford.edu>
>> TMM <TMM@dont.mail.me> writes:
>>> Is there any good script to prevent "connection-spamming" on INN?
>>> There's a lot of pure hammering on port 119 that makes INN go crazy with
>>> the serverload sometimes.
>> Take a look at the -H, -T, and -X options to innd in the innd man page.
>> They're not quite what you're looking for, but they may help.
> I start nnrpd from xinetd instead of innd and this gives me full
> control over the number of concurrent connection per IP address and also
> makes use of tcpwrapper. This means of course that innd uses a port
> different from the one nnrpd uses.
Yup, that works even better.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: INN Hammering
Author: TMM
Date: Sun, 06 May 2007 09:26
Date: Sun, 06 May 2007 09:26
16 lines
1871 bytes
1871 bytes
On Sat, 05 May 2007 11:07:30 -0700, Russ Allbery wrote: > TMM <TMM@dont.mail.me> writes: > >> Is there any good script to prevent "connection-spamming" on INN? >> There's a lot of pure hammering on port 119 that makes INN go crazy with >> the serverload sometimes. I've been looking for a filter that bans >> hardhammering users before they reach the server but still no result. > > Take a look at the -H, -T, and -X options to innd in the innd man page. > They're not quite what you're looking for, but they may help. Thanks! That was _exactly_ what I was looking for! Quite strange, why I didn't find those flags before, since this was documented right before my eyes...!
Re: INN Hammering
Author: F. Senault
Date: Thu, 10 May 2007 17:59
Date: Thu, 10 May 2007 17:59
18 lines
1932 bytes
1932 bytes
Le 5 mai 2007 à 21:40, Szymon Sokół a écrit : > On Sat, 5 May 2007 19:48:06 +0200, F. Senault wrote: > >> Don't think so, no. But I'm using a simple script to restrict the >> number of simutaneous connections, and, to my surprise, it seems that 4 >> is the minimum I can allow before having legitimate users complain... > > Out of curiosity, what software do they use? I seem to recall it was one of the Mozilla family, but I'm not sure. Fred -- Hey you, are me, not so pretty All the world I've seen before me passing by Silent my voice, I've got no choice All the world I've seen before me passing by (System of a Down, ATWA)
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads