From owner-freebsd-stable Sat Feb 26 3:16:22 2000 Delivered-To: freebsd-stable@freebsd.org Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by hub.freebsd.org (Postfix) with SMTP id B06F137BFFF for ; Sat, 26 Feb 2000 03:16:16 -0800 (PST) (envelope-from dwmalone@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 26 Feb 2000 11:16:15 +0000 (GMT) To: gerti-freebsds@bitart.com Cc: freebsd-stable@freebsd.org Subject: Re: inetd -l does not log In-reply-to: Your message of "Sat, 26 Feb 2000 05:06:09 CST." <20000226110609.26952.qmail@camelot.bitart.com> X-Request-Do: Date: Sat, 26 Feb 2000 11:16:15 +0000 From: David Malone Message-ID: <200002261116.aa91916@salmon.maths.tcd.ie> Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > That I get with or without the -l flag to inetd. What I really wanted though > is the remote IP, as those paragraphs from the inetd man page promise: The connection was logged in the tcp_log, but I guess it logged the host name instead of the IP. AFAIK the hostname will only be logged by inetd if the tcp wrapping is turned on, and tcp wrappers are sure that both the forward and reverse DNS entries match. If it is for a particular service, you could run an inetd without wrapping enabeled - that will always log an IP. Otherwise you could do some magic with hosts.allow which logs the IP to a file for you. I haven't tested it , but you should be able to do something like: service : ALL : spawn logger -p local1.info Connection from $a : allow in /etc/hosts.allow. David. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message