Bugtraq mailing list archives

Re: syslogd fun (erratum)


From: deraadt () CVS OPENBSD ORG (Theo de Raadt)
Date: Thu, 28 Aug 1997 23:55:38 -0600


I wasn't exactly right about using netstat to determine if remote reception
is on.  I looked at the sources of syslogd 1.3 more carefully.  In fact,
even though it defaults to no remote reception, it creates an AF_INET socket
and binds to it unconditionally (well, if SYSLOG_INET was defined during the
compilation, and it was defined in RedHat 4.2 build).  It doesn't pay
attention to it from that point on, though, if remote reception is off, but
socket is there and it does appear in netstat output.  I don't know why it's
done this way, I guess you may consider it as a feature.  No harm, just
could be misleading.

It is done that way because @loghost transfers use that same socket for
communication with remote syslogd's.

You can't simply not create it. If the config file contains any packet
redirections, you are going to need the socket.  Hence in 'secure
mode' syslogd simply ignores all input packets.

Here's the relevant entry from the OpenBSD syslogd man page:

     -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.



Current thread: