Article View: news.software.nntp
Article #45257Re: News routing software
From: Sven Paulus
Date: Sun, 26 Mar 2000 00:00
Date: Sun, 26 Mar 2000 00:00
138 lines
7388 bytes
7388 bytes
Steve Walker <mouse@NOSPAM.nibble.net> wrote:
|>>... and libmd5, which isn't easy to find (I located a source RPM on a
|>>RedHat 5.x archive site).
|> Thanks for pointing it out. The current version shouldn't have that
|> problem.
Ah, good :)
|>> - is there a way to reread configuration without having to
|>> shut down the server? HUP kills the process
|> I thought about it and I've decided against it for now. The problem
|> is that to really reload you have to break all connections and stop
|> the external spamfilter. If you do all that why not just kill the
|> process and restart it?
Hmm, ideally the process would detect the changes in the configuration
(new peers, dropped peers, changed peers, changed global setting)
without affecting any existing connections. Of course this is not
possible if you decrease your spool size etc. But I think coding it
that way isn't easy at all ...
|>> - IHAVE isn't supported on incoming feeds
|> Does anyone still use IHAVE to send a feed? It would be simple to
|> add, but does anyone really need it? I'll add it anyway. I'm just
|> wondering who uses it.
I think you should support it, just in case. Even only to say "my
software is fully RFC-977 compliant" :-) For very low volume setups,
IHAVE might even be better than CHECK/TAKETHIS (how long do you wait
until you switch from CHECK to TAKETHIS?).
|>> - QUIT takes quite a while to complete
|> It should now take no more than 5 seconds to hang up. :)
I looked like about 10 secs on my dual Celeron 433. But that's purely
cosmetic, I think :)
|>> - if you give Message-IDs longer than 128 (or so) characters
|>> after CHECK or TAKETHIS you're back on command state without
|>> a reply (CHECK) or state change (TAKETHIS)
|> I've changed the max length of a message id to 512 characters. Any
|> message id longer than this and earthquake gets confused. Does this
|> sound like a reasonable limit. It can be changed up to 4096 without
|> any recoding.
512 characters should be enough. But Earthquake should give an error
message (CHECK) or wait for an article (TAKETHIS, even if it's sure
from the start, that the article get's rejected) instead of going to
"accept command" state immediatly, since this violates the NNTP
protocol (and surely will confuse other servers).
Son-Of-1036 says:
[...]
a case-insensitive comparison. Message IDs MUST be no
longer than 250 octets, including the "<" and ">".
[...]
So I guess articles with longer Message-IDs might experience bad
propagation. Allowing 512 characters gets you on the safe side.
|>> - earthquake accepts posts with duplicate headers
|> Do duplicate headers violate the RFC's? I know that some mail to news
|> gateways will forward messages with several "Received:" headers.
|> Should they be rejected? Also shouldn't this type of checking be part
|> the of external spam filter? Suggestions anyone...
See Son-Of-1036:
5. Mandatory Headers
An article MUST have one, and only one, of each of the fol-
lowing headers: Date, From, Message-ID, Subject, Newsgroups,
Path.
There is no use in having multiple Message-ID headers ...
|>> - in earthquake.conf it says that all patterns are regex, but
|>> there are examples like "alt.binaries.pictures.erotica.*"
|>> (instead of "^alt\.binaries\.pictures\.erotica\.") and
|>> "news.nntpserver.com" (instead if "news\.nntpserver\.com")
|>> (btw. are these patterns treated
|> These strings are passed right into regcomp. I've corrected some of
|> the examples. While they are not technically correct they should work
|> even without escaping the . character all over the place. Would
|> people rather see glob style pattern matching?
No, regex is great! You can do checks - especcially on the Path header
- which aren't possible e.g. in INNs newsfeeds file. Another thing, I
saw, that regex are also allowed in Hostnames of incoming connections.
Does that mean you only do a reverse lookup and compare the result with
the configured pattern? This would allow everybody who has control over
an in-addr.arpa zone to setup a PTR record with the IP of its own
server to a name of a known peer of yours and could start feeding.
Also in the example configurations ^ and $ should be used, otherwise I
could setup a server named (reverse) news-out.nibble.net.karlsruhe.org
or something like that ...
|>>Yes, I know, this is only the first beta release, so don't take this
|>>list a criticism, but as a combined bug-report/feature request :-)
|> I love it. I've fixed most of the item and there is a new version
|> available now. Any more ideas? It so much easier to fix problems if
|> they are pointed out.
I didn't have a closer look on earthquake by now, but I'd really like
to see some more statistical logging. The HTML reports only seem to
reflect feeds which are currently active. There is no way to see what
happened for example an hour ago etc. I like the INN way of doing it
(logging some informational lines every n articles and the totals when
an inbound or outbound connection is closing, including article numbers
accepted/rejected and volumes). This gives you the possibility of
generating daily reports. I think most of us judge feeds primarily
based on these reports. What I also like (as an option, like cyclone
offers it, since it might be a performance issue) is a log file which
lists every article with the peer it was received from and the peers it
gets offered to (if this is possible with your multithreaded design
approach).
Is it possible to give the size of the spool buffers in MB instead of
GB? I started installing Earthquake on a little transit server which
currently runs a patched INN without history (only cache) and 16MB CNFS
in RAM disk. I was a little disappointed when I saw that I'd have to
upgrade the RAM to 1GB (which would require a major redesign of the 486
mainboard :-) ). But of course this is not a real life application.
And of course, one major wish is: Is it possible for you to go open
source with the final version? I know of many administrators which
don't trust binary only software from unknown sources. I straced
earthquake on a machine not connected to the network first check that
the program doesn't to any nonsense (since it runs with root
privileges), but I still can't be 100% sure that my /etc/shadow doesn't
get send to any host via UDP without me noticing it ... Please don't
take this personally, it's just the usual paranoia one get's when
having read bugtraq for some years :)
Sven
Technical Details
Message-ID:
<Daphne_Baron@biology.pool-60.oops.inka.de>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<(null)> <38dc7c3a$1_1@news.nntpserver.com> <Carla.Brescher@bypass.pool-88.oops.inka.de> <38de5f6d.1023032569@news.nntpserver.com>Show Full Headers
Complete Article Headers
Message-ID: <Daphne_Baron@biology.pool-60.oops.inka.de> Subject: Re: News routing software Date: Sun, 26 Mar 2000 00:00:00 +0000 From: Sven Paulus <sven@karlsruhe.org> References: <(null)> <38dc7c3a$1_1@news.nntpserver.com> <Carla.Brescher@bypass.pool-88.oops.inka.de> <38de5f6d.1023032569@news.nntpserver.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 602454013 Organization: clueless in Karlsruhe, Germany Newsgroups: news.software.nntp