Article View: news.software.nntp
Article #88853Re: What methods can throttle INN connections?
From: Matija Nalis
Date: Mon, 25 Oct 2021 03:52
Date: Mon, 25 Oct 2021 03:52
21 lines
1856 bytes
1856 bytes
On Sun, 24 Oct 2021 15:09:44 -0500, 711 Spooky Mart <711@spooky.mart> wrote: > On 10/24/21 2:37 PM, Aioe wrote: >> imho it isn't a good strategy >> you have to set some thresholds in the system resources used by each IP, >> if one exceeds them you ban it for a certain time >> it is not difficult to write a script that reads the logs, builds a >> database of the resources used by each client then bans and unbans it > > What I'm gathering then, is I got some hacking to do. Maybe I'll post a > followup explaining how it all turns out so we can have a cheat sheet. Actually, there is fairly popular "fail2ban" program (included in many GNU/Linux distros, if you happen to use that), which does exactly that sort of job (parses logs and firewalls IPs unless they are in whitelist CIDRs, and later unbans them etc.), so it could be reused and only a matching rule written for it instead of doing it from scratch. Perhaps it would be good enough for you use case. -- Opinions above are GNU-copylefted.
Technical Details
Message-ID:
<slrnsncafo.aph.mnalis-news@leia.home.lan>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mailReferences:
<sl1nqc$1j4c$1@gioia.aioe.org> <sl4cln$11h6$1@gioia.aioe.org> <sl4efh$1smi$1@gioia.aioe.org>Show Full Headers
Complete Article Headers
Message-ID: <slrnsncafo.aph.mnalis-news@leia.home.lan> Subject: Re: What methods can throttle INN connections? Date: Mon, 25 Oct 2021 05:52:24 +0200 From: Matija Nalis <mnalis-news@voyager.hr> References: <sl1nqc$1j4c$1@gioia.aioe.org> <sl4cln$11h6$1@gioia.aioe.org> <sl4efh$1smi$1@gioia.aioe.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail Newsgroups: news.software.nntp Organization: CARNet, Croatia Sender: mnalis@public.hr Injection-Info: news1.carnet.hr; posting-host="2001:470:26:148:847e:52f6:c4b6:6238"; logging-data="10498"; mail-complaints-to="abuse@CARNet.hr" User-Agent: slrn/1.0.3 (Linux) Cancel-Lock: sha1:E3U3gpQG+VM7sEgCCY0VDjJ7rmE=