From ishizuka@ish.org Sat May 22 21:26:09 1999
Return-Path: <ishizuka@ish.org>
Received: from onion.ish.org (onion.ish.org [210.145.219.202])
	by hub.freebsd.org (Postfix) with ESMTP id 62A9514DF9
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 22 May 1999 21:26:01 -0700 (PDT)
	(envelope-from ishizuka@ish.org)
Received: (from ishizuka@localhost)
	by onion.ish.org (8.9.3/3.7Wpl1-08/27/98) id NAA04610;
	Sun, 23 May 1999 13:26:00 +0900 (JST)
Message-Id: <199905230426.NAA04610@onion.ish.org>
Date: Sun, 23 May 1999 13:26:00 +0900 (JST)
From: ish@ish.org
Sender: ishizuka@ish.org
Reply-To: ish@ish.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: portmap on 3.2R can't resolvassless ip address and die with twist command
X-Send-Pr-Version: 3.2

>Number:         11857
>Category:       bin
>Synopsis:       portmap can't resolv classless ip address and die with twist command.
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    sheldonh
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 22 21:30:02 PDT 1999
>Closed-Date:    Tue Jun 15 11:23:22 PDT 1999
>Last-Modified:  Tue Jun 15 11:24:36 PDT 1999
>Originator:     Masachika ISHIZUKA
>Release:        FreeBSD 3.2-RELEASE i386
>Organization:
>Environment:

  I want to use NFS service.
The server is onion.ish.org(210.145.219.202/28).
The client is pumpkin.ish.org(210.145.219.203/28).
Both are FreeBSD 3.2R.

>Description:

  Portmap can't resolv classless network and die with twist command.

| onion.ish.org% cat /etc/hosts.allow
| ALL : pumpkin.ish.org : allow
| ALL : ALL : twist /bin/echo "You are not welcome to use %d from %h."

  The portmap can't resolv ip address of pumpkin.ish.org that
is 210.145.219.203/28. NFS request from pumpkin was failed and
portmap died whit the following messages.

| May 23 11:39:39 onion portmap[144]: twist 210.145.219.203 to /bin/echo
|        "You are not welcome to use portmap from 210.145.219.203."
| May 23 11:39:39 onion portmap[144]: warning: /etc/hosts.allow, line 79:
|        twist_option: dup: Bad file descriptor

>How-To-Repeat:

  See description.

>Fix:
	
  To prevent from death of portmap, I modified /etc/hosts.allow
as follows. But it is not the solution in essence.

| ALL : 210.145.219.203 : allow
| ALL EXCEPT portmap : ALL : twist /bin/echo "You are not welcome to ...."
| ALL : ALL : deny

>Release-Note:
>Audit-Trail:

From: Sheldon Hearn <sheldonh@uunet.co.za>
To: Masachika ISHIZUKA <ish@ish.org>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: bin/11857: portmap can't resolv classless ip address and die with twist command.
Date: Wed, 09 Jun 1999 18:38:42 +0200

 Hi there,
 
 I have a local user who complained of a "Bad file descriptor" problem
 and the patch on PR 12097 fixed it (although I don't know why!).
 
 If the patch doesn't fix your problem, let me know and I'll have a look
 at how inetd interacts with our friend twist.
 
 Thanks,
 Sheldon.
 
State-Changed-From-To: open->feedback 
State-Changed-By: sheldonh 
State-Changed-When: Wed Jun 9 13:21:21 PDT 1999 
State-Changed-Why:  
Waiting on feedback from submitter. 


Responsible-Changed-From-To: freebsd-bugs->sheldonh 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Wed Jun 9 13:21:21 PDT 1999 
Responsible-Changed-Why:  
I'm looking at the twist issue, which is definitely going to require 
changes to one or more of inetd and tcp_wrappers. 

From: Sheldon Hearn <sheldonh@uunet.co.za>
To: freebsd-gnats-submit@freebsd.org
Cc:  
Subject: Re: bin/11857: portmap can't resolv classless ip address and die with twist command.
Date: Thu, 10 Jun 1999 01:40:46 +0200

 Just a quick note to say that I was wrong about the need for changes to
 tcp_wrappers. Please try the _second_ patch on PR 12097, which I'm
 confident will sort this out.
 
 Ciao,
 Sheldon.
 
State-Changed-From-To: feedback->closed 
State-Changed-By: sheldonh 
State-Changed-When: Tue Jun 15 11:23:22 PDT 1999 
State-Changed-Why:  
Superseded by PR 12097. 
>Unformatted:
