From owner-freebsd-questions Sat Jun 20 23:50:51 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA13703 for freebsd-questions-outgoing; Sat, 20 Jun 1998 23:50:51 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from jaguar.ir.miami.edu (jaguar.ir.miami.edu [129.171.32.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA13696 for ; Sat, 20 Jun 1998 23:50:50 -0700 (PDT) (envelope-from marcus@miami.edu) Received: from localhost by jaguar.ir.miami.edu (PMDF V5.1-10 #24029) with SMTP id <0EUW0040130LS2@jaguar.ir.miami.edu> for questions@FreeBSD.ORG; Sun, 21 Jun 1998 02:50:45 -0400 (EDT) Date: Sun, 21 Jun 1998 02:50:45 -0400 (EDT) From: "Joe \"Marcus\" Clarke" Subject: Re: Syslog Question In-reply-to: To: Brendan Kosowski Cc: questions@FreeBSD.ORG Message-id: MIME-version: 1.0 Content-type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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