Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Jun 1998 02:50:45 -0400 (EDT)
From:      "Joe \"Marcus\" Clarke" <marcus@miami.edu>
To:        Brendan Kosowski <brendan@bmkind.lnk.telstra.net>
Cc:        questions@FreeBSD.ORG
Subject:   Re: Syslog Question
Message-ID:  <Pine.OSF.3.96.980621024616.6166A-100000@jaguar.ir.miami.edu>
In-Reply-To: <Pine.BSF.3.96.980621152811.6520A-100000@bmkind.lnk.telstra.net>

next in thread | previous in thread | raw e-mail | index | archive | help
If you install the tcpwrappers port (or package), you can accomplish this.
Plus you can display any banner you wish whenever someone telnets, ftps,
or fingers your machine.  To do this, install tcpwrappers, then create a
file called /usr/local/etc/hosts.allow.  This is how mine looks:

telnetd: ALL : banners /usr/local/etc/banners/
ftpd: ALL : banners /usr/local/etc/banners/
fingerd: ALL : banners /usr/local/etc/banners/

Then, for each program that you specified a banner for, create the
required banner.  In my example, my banners reside in
/usr/local/etc/banners.  A banner is simply a text file that will be
displayed whenever a specified connection is made to your machine.  This
is optional for the logging, but cool none-the-less.  To get syslog
logging to work, edit /etc/inetd.conf for the daemons you wish to log.
For me, I just log ftp and telnet, so my /etc/inetd.conf looks like this:

ftp     stream  tcp     nowait  root    /usr/local/libexec/tcpd ftpd -l
telnet  stream  tcp     nowait  root    /usr/local/libexec/tcpd telnetd

Now every telnet connection, regardless of a successful login (and every
ftp connection) will be logged by syslogd.

Joe Clarke

On Sun, 21 Jun 1998, Brendan Kosowski wrote:

> 
> I was a Linux user but have now changed to FreeBSD. I noticed that with
> Linux, any TELNET or FTP activity was logged to /var/log/messages.
> 
> I noticed that FreeBSD does not log TELNET or FTP activity to
> /var/log/messages.
> 
> My syslog.conf is very simple :
> 
> *.info		/var/log/messages
> 
> 
> This worked fine on Linux.
> 
> 
> Can Anyone Help ???
> 
> 
> Thanks & Best Regards, Brendan...
> 
> 
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
> 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.OSF.3.96.980621024616.6166A-100000>