Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Feb 2000 10:53:34 +0000
From:      David Malone <dwmalone@maths.tcd.ie>
To:        gerti-freebsds@bitart.com
Cc:        freebsd-stable@freebsd.org
Subject:   Re: inetd -l does not log 
Message-ID:   <200002261053.aa90559@salmon.maths.tcd.ie>
In-Reply-To: Your message of "Sat, 26 Feb 2000 04:20:29 CST." <20000226102030.26849.qmail@camelot.bitart.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> I have this in my syslog.conf *amingst other things):
> 
> !inetd
> *.*                   /dev/console
> 
> And I did HUP syslogd. killed inetd, and run it 'by hand' using 'inetd -d -l  
> -w -W'. No dice.

One thing that isn't immediately obvious is that the logging is controled
by tcp wrappers code if the service is wrapped. However you should ger log
messages anyway. It seems to work for me on 3.4:

walton# cat /tmp/inetd.conf
dbbrowse        stream  tcp     nowait  dwmalone        /bin/cat /etc/fstab

walton# inetd -d -w -W -l /tmp/inetd.conf
ADD : dbbrowse proto=tcp accept=1 max=0 user=dwmalone group=(null) class=daemon
builtin=0x0 server=/bin/cat
inetd: enabling dbbrowse, fd 4
inetd: registered /bin/cat on 4
inetd: someone wants dbbrowse
inetd: accept, ctrl 6
inetd: + closing from 5
inetd: 89797 execl /bin/cat
inetd: Handling signal flag C
inetd: 89797 reaped, status 0
^C

walton# tail /var/log/tcp_log | fgrep 89797
Feb 26 10:44:00 walton inetd[89797]: connection from slip2.maths.tcd.ie, service
 cat (tcp)

walton# tail -1 /etc/hosts.allow
ALL: ALL : rfc931 2 : severity local0.info : setenv WRAP_INFO %s_%c : allow

walton# fgrep tcp_log /etc/syslog.conf
local0.debug                                    /var/log/tcp_log

	David.


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi? <200002261053.aa90559>