From owner-freebsd-stable Tue Jun 22 4:11:30 1999 Delivered-To: freebsd-stable@freebsd.org Received: from wn1.sci.kun.nl (wn1.sci.kun.nl [131.174.8.1]) by hub.freebsd.org (Postfix) with ESMTP id 1AE8215372 for ; Tue, 22 Jun 1999 04:11:20 -0700 (PDT) (envelope-from jvissers@sci.kun.nl) Received: from studs3.sci.kun.nl by wn1.sci.kun.nl via studs3.sci.kun.nl [131.174.124.4] with ESMTP id NAA15261 (8.8.8/3.23); Tue, 22 Jun 1999 13:11:17 +0200 (MET DST) From: Jos Vissers Received: by studs3.sci.kun.nl via jvissers@localhost id NAA25914 (8.8.8/3.1); Tue, 22 Jun 1999 13:11:17 +0200 (MET DST) Message-Id: <199906221111.NAA25914@studs3.sci.kun.nl> Subject: Re: inetd and libwrap issues To: john@nlc.net.au (John Saunders) Date: Tue, 22 Jun 1999 13:11:16 +0200 (MET DST) Cc: freebsd-stable@FreeBSD.ORG In-Reply-To: <00e901bebc8c$e357ad90$6cb611cb@scitec.com.au> from "John Saunders" at Jun 22, 99 06:54:50 pm X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I have found that, at least in the past, portmap needs ip addresses rather than hostnames in hosts.allow, for some reason it wouldn't work with hostnames. Jos John Saunders wrote: > > I have just converted over from a tcp_wrappers system to one using > the internal libwrap'ed inetd. For the most part I have got the > thing to work. One annoyance is that changes to /etc/hosts.allow > don't get automatically used until inetd is killed and re-started. > Does a SIGHUP work here, the man page doesn't mention it? > > However I have come unstuck getting NFS to work. It seems that > portmap also has code to access libwrap. However I have tried > many combinations of hosts.allow lines and killing portmap, but > have not yet had it work. My log file says... > > Jun 22 17:12:56 XXXXX portmap[78016]: connect from XXX.XX.XXX.X to \ > getport(nfs): request from unauthorized host > > The hosts.allow line is... > > portmap : localhost XXXXX.domain YYYYY.domain : allow > > When I kill off portmap and re-start it, rpcinfo -p shows... > > root@XXXXX:/ {510} # rpcinfo -p > program vers proto port > 100000 2 tcp 111 portmapper > 100000 2 udp 111 portmapper > > So it appears to have lost the RPC registrations for mountd and > nfsd. > > So what is the correct way to get the system back up and working > after what should be (or was before) a trivial change to the > hosts.allow file? > > Cheers. > -- +------------------------------------------------------------+ > . | John Saunders - mailto:john@nlc.net.au (EMail) | > ,--_|\ | - http://www.nlc.net.au/ (WWW) | > / Oz \ | - 02-9489-4932 or 041-822-3814 (Phone) | > \_,--\_/ | NORTHLINK COMMUNICATIONS P/L - Supplying a professional, | > v | and above all friendly, internet connection service. | > +------------------------------------------------------------+ > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message