🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #70556

Re: controlchan logging on OpenBSD

#70556
From: Maurice Janssen
Date: Sun, 02 Jan 2005 20:40
41 lines
2884 bytes
Russ Allbery wrote:
>Maurice Janssen <mauricej@xs4all.nl> writes:
>
>> A few weeks ago, I posted a message (Msg-ID:
>> <cnkbvn$k11$1@linux.z74.net>) about processing of control messages on my
>> feeder.  After upgrading to INN-2.4.2 last night (which seems to be
>> running fine), I noticed that the problem persisted.
>
>> However, it appears that control messages are being processed, but
>> there's nothing in the news.notice logfile.  (BTW: this was also the
>> case for INN-2.4.1, but I noticed this some time after my initial
>> posting).
>
>> After reading ~/bin/controlchan I made the following tiny patch:
>
>What version of Perl are you running?  This is supposed to not matter any
>more with current versions of Perl and Sys::Syslog; it's supposed to try
>TCP, UDP, and then /dev/log in sequence until one of them works.  That
>code is only in there for versions of Perl older than 5.6.1, I thought.

Ah, that might explain it.  By default, syslogd on OpenBSD runs in
secure more, discarding anything it receives on the UDP socket.
Only if the -u switch is used, the input is logged.

Two parts from the syslogd manpage:

     -u      Select the historical ``insecure'' mode, in which syslogd will
             accept input from the UDP port.  Some software wants this, but
             you can be subjected to a variety of attacks over the network,
             including attackers remotely filling logs.


     syslogd opens the above described socket whether or not it is running in
     secure mode.  If syslogd is running in secure mode, all incoming data on
     this socket is discarded.  The socket is required for sending forwarded
     messages.

BTW: Perl version is 5.8.5.

-- 
Maurice
Technical Details
Message-ID: <cr9m85$lnv$1@linux.z74.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.dca.giganews.com!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.zanker.org!feeder.z74.net!reader.z74.net!news.z74.net!not-for-mail
References: <cr8f0c$795$1@linux.z74.net> <87vfafiqtg.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <cr9m85$lnv$1@linux.z74.net>
Subject: Re: controlchan logging on OpenBSD
Date: Sun, 02 Jan 2005 20:40:37 +0000
From: Maurice Janssen <mauricej@xs4all.nl>
References: <cr8f0c$795$1@linux.z74.net> <87vfafiqtg.fsf@windlord.stanford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.dca.giganews.com!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.zanker.org!feeder.z74.net!reader.z74.net!news.z74.net!not-for-mail
Newsgroups: news.software.nntp
Organization: z74
Lines: 41
NNTP-Posting-Host: localhost.localdomain
X-Trace: linux.z74.net 1104698437 22271 ::1 (2 Jan 2005 20:40:37 GMT)
X-Complaints-To: news@z74.net
NNTP-Posting-Date: Sun, 2 Jan 2005 20:40:37 +0000 (UTC)
X-GPG-KeyID: 1024D/B76C96D0
X-GPG-Fingerprint: AE3C 392A AC95 74EB 61A4 4764 DE3E 6BAD B76C 96D0
User-Agent: tin/1.6.2-20030910 ("Pabbay") (UNIX) (Linux/2.4.27 (i686))