From owner-freebsd-questions@FreeBSD.ORG Mon Mar 16 12:54:12 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 08C66106566C for ; Mon, 16 Mar 2009 12:54:12 +0000 (UTC) (envelope-from frank@esperance-linux.co.uk) Received: from mailout.zetnet.co.uk (mailout.zetnet.co.uk [194.247.47.231]) by mx1.freebsd.org (Postfix) with ESMTP id B3BE08FC19 for ; Mon, 16 Mar 2009 12:54:11 +0000 (UTC) (envelope-from frank@esperance-linux.co.uk) Received: from irwell.zetnet.co.uk ([194.247.47.48] helo=zetnet.co.uk) by mailout.zetnet.co.uk with esmtp (Exim 4.63) (envelope-from ) id 1LjCKV-0006tp-6y; Mon, 16 Mar 2009 12:54:07 +0000 Received: from melon.esperance-linux.co.uk (54-144.adsl.zetnet.co.uk [194.247.54.144]) by zetnet.co.uk (8.14.1/8.14.1/Debian-9) with ESMTP id n2GCs41w010917; Mon, 16 Mar 2009 12:54:05 GMT Received: by melon.esperance-linux.co.uk (Postfix, from userid 1001) id 79D1CFCA699; Mon, 16 Mar 2009 12:53:59 +0000 (GMT) Date: Mon, 16 Mar 2009 12:53:59 +0000 From: Frank Shute To: skx Message-ID: <20090316125359.GA94041@melon.esperance-linux.co.uk> Mail-Followup-To: skx , FreeBSD Questions References: <200903130338.06099.listy@skxpl.eu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200903130338.06099.listy@skxpl.eu.org> User-Agent: Mutt/1.4.2.3i X-Face: *}~{PHnDTzvXPe'wl_-f%!@+r5; VLhb':*DsX%wEOPg\fDrXWQJf|2\,92"DdS%63t*BHDyQ|OWo@Gfjcd72eaN!4%NE{0]p)ihQ1MyFNtWL X-Operating-System: FreeBSD 6.4-RELEASE-p2 i386 X-Organisation: 'http://www.shute.org.uk/' X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.1.7 (zetnet.co.uk [194.247.46.1]); Mon, 16 Mar 2009 12:54:06 +0000 (GMT) Cc: FreeBSD Questions Subject: Re: Inetd and multiple IP addresses X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Frank Shute List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Mar 2009 12:54:13 -0000 On Fri, Mar 13, 2009 at 03:38:05AM +0100, skx wrote: > > I have inetd configured to open a listening port for leafnode > nntp stream tcp nowait news /usr/libexec/tcpd /usr/local/sbin/leafnode > but this opens the port on all IP addresses associated with this machine. > I would like to choose only one. > > I tried > 192.168.13.2:nntp stream tcp nowait > news /usr/libexec/tcpd /usr/local/sbin/leafnode > > but it doesn't work > > Mar 11 02:59:21 rewers inetd[89528]: 192.168.13.2:nntp/tcp: unknown > service > > What am I doing wrong? Isn't ip:service_name a correct entry? > > FreeBSD 7.1-RELEASE-p1 with custom kernel if that matters. > You want to have a look at hosts_access(5) I've got this in /etc/hosts.allow as an example: leafnode: 127.0.0.1 : allow Regards, -- Frank Contact info: http://www.shute.org.uk/misc/contact.html