Date: Sat, 26 Feb 2000 11:16:15 +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: <200002261116.aa91916@salmon.maths.tcd.ie> In-Reply-To: Your message of "Sat, 26 Feb 2000 05:06:09 CST." <20000226110609.26952.qmail@camelot.bitart.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi? <200002261116.aa91916>