Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Dec 1997 11:01:23 -0500 (EST)
From:      Robert Watson <robert@cyrus.watson.org>
To:        security@freebsd.org
Subject:   syslogd logging to remote hosts (fwd)
Message-ID:  <Pine.BSF.3.96.971206105917.2432B-100000@cyrus.watson.org>

next in thread | raw e-mail | index | archive | help

Now that I think about it, this message is better addressed to
freebsd-security, as this is really largely a security issue.

It occurs to me also that if you don't have a router filtering packets (or
don't entirely trust the local net), another host elsewhere can spoof the
rejection message from the log server (assuming my analysis of the
situation is correct?) and disable your logging to the host.  On the other
hand, if you don't have filtering, they can just fill your logs.. :)

  Robert N Watson 

Carnegie Mellon University http://www.cmu.edu/
SafePort Network Services  http://www.safeport.com/
robert@fledge.watson.org   http://www.watson.org/~robert/

---------- Forwarded message ----------
Date: Sat, 6 Dec 1997 10:58:35 -0500 (EST)
From: Robert Watson <robert@cyrus.watson.org>
Reply-To: Robert Watson <robert+freebsd@cyrus.watson.org>
To: questions@freebsd.org
Subject: syslogd logging to remote hosts


When syslogd logs to a remote host, i.e., 

*.*			@loghost.domain.stuff

It sends its normal UDP syslog packets.  However, if the remote server
goes down for some non-trivial amount of time, the local syslogd
apparently disables the delivery of syslog messages to that host.  Or at
least, in my case, the two hosts are on the same ethernet, and when the
log server is down because it has rebooted, the client will sometimes
discontinue logging to the host.  It never restarts.

This seems like very bad default behavior.  I would rather that it send
the messages and they just get lost while the log server reboots, than
have it stop sending them.

Without looking at the source, I'd guess there are one of two
possiblities:

1. The client disables logging because the server does not respond
(unlikely -- syslog is a one way thing)

or

2. When the log server is booting, it responds to pings/etc before syslogd
starts.  When the client sends a packet to the server, it is rejected
because syslogd is not listening, in which case the client udp connection
(as it were) is closed, for whatever reason.

I have noticed this behavior on a number of occasions.  Sending the client
syslogd a HUP restarts logging again, but a) this is a pain due to the
number of clients, and b) I'd rather not lose log messages -- this is why
I have a secure log server.

Thanks,

  Robert N Watson 

Carnegie Mellon University http://www.cmu.edu/
SafePort Network Services  http://www.safeport.com/
robert@fledge.watson.org   http://www.watson.org/~robert/





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.971206105917.2432B-100000>