Article View: news.software.nntp
Article #88841Re: What methods can throttle INN connections?
From: Etian
Date: Sun, 24 Oct 2021 20:25
Date: Sun, 24 Oct 2021 20:25
21 lines
1978 bytes
1978 bytes
On 10/23/21 12:30 PM, 711 Spooky Mart wrote: > Hello NNTP gurus. I want to host a binary local newsgroup. I want to > discourage spammers from trying to push up irrelevant big binaries, > vids, pr0n, etc. The purpose of the binary group is for uploading PDF > and ZIP/XZ/7Z files < 4MB. > > I am seeking ideas on different ways to throttle INN connections. > > [1] Firstly I want to throttle all client connections to max 64kB/s. > You can use tc to limit outgoing bandwidth per IP. inn has it's exponential backoff parameters for posting, but it is otherwise difficult to limit incoming bandwidth. https://duckduckgo.com/?t=ffsb&q=use+tc+to+limit+bandwidth&ia=web You would need to tweak the inn source code to put a delay before commands--I can't imagine why you would want to. To have two different versions of an article, you would need two different spools. You would need to write your own news forwarder to strip the attachment and send it to your second spool, but it wouldn't be difficult using Perl Net::NNTP.
Technical Details
Message-ID:
<b210$6175c12e$a6b0b90a$23199@news.sonic-news.com>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>Show Full Headers
Complete Article Headers
Message-ID: <b210$6175c12e$a6b0b90a$23199@news.sonic-news.com> Subject: Re: What methods can throttle INN connections? Date: Sun, 24 Oct 2021 13:25:15 -0700 From: Etian <etian@sonic-news.com> References: <sl1nqc$1j4c$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 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 Mime-Version: 1.0 In-Reply-To: <sl1nqc$1j4c$1@gioia.aioe.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@sonic-news.com Organization: www.sonic-news.com Lines: 21 Nntp-Posting-Date: Sun, 24 Oct 2021 16:25:18 -0400 X-Trace: 0b2106175c12e3151caf23199