From harry@schmalzbauer.de  Sun Jun  4 17:08:58 2006
Return-Path: <harry@schmalzbauer.de>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id C8AF616A8C2
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  4 Jun 2006 17:08:58 +0000 (UTC)
	(envelope-from harry@schmalzbauer.de)
Received: from flb.schmalzbauer.de (flb.schmalzbauer.de [62.245.232.135])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 77C8043D70
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  4 Jun 2006 17:08:53 +0000 (GMT)
	(envelope-from harry@schmalzbauer.de)
Received: from sam.flintsbach.schmalzbauer.de (sam.flintsbach.schmalzbauer.de [172.21.2.4])
	by flb.schmalzbauer.de (8.13.4/8.13.4) with ESMTP id k54H9qvG007184
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 4 Jun 2006 19:09:52 +0200 (CEST)
	(envelope-from harry@cale.flintsbach.schmalzbauer.de)
Received: from cale.flintsbach.schmalzbauer.de (cale.flintsbach.schmalzbauer.de [172.21.1.221])
	by sam.flintsbach.schmalzbauer.de (Postfix) with ESMTP id 98C17B62D
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  4 Jun 2006 19:04:46 +0200 (CEST)
Received: from cale.flintsbach.schmalzbauer.de (localhost [127.0.0.1])
	by cale.flintsbach.schmalzbauer.de (8.13.6/8.13.6) with ESMTP id k54H4UGT043418
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 4 Jun 2006 19:04:30 +0200 (CEST)
	(envelope-from harry@cale.flintsbach.schmalzbauer.de)
Received: (from root@localhost)
	by cale.flintsbach.schmalzbauer.de (8.13.6/8.13.6/Submit) id k54H4Ue8043413;
	Sun, 4 Jun 2006 19:04:30 +0200 (CEST)
	(envelope-from harry)
Message-Id: <200606041704.k54H4Ue8043413@cale.flintsbach.schmalzbauer.de>
Date: Sun, 4 Jun 2006 19:04:30 +0200 (CEST)
From: Harald Schmalzbauer <harry@schmalzbauer.de>
Reply-To: Harald Schmalzbauer <harry@schmalzbauer.de>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: rpc.lockd(+statd) bind to any ip
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         98500
>Category:       bin
>Synopsis:       [rpc] rpc.lockd(+statd) bind to any ip
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    matteo
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 04 17:10:16 GMT 2006
>Closed-Date:    Wed Mar 26 20:32:31 UTC 2008
>Last-Modified:  Wed Mar 26 20:32:31 UTC 2008
>Originator:     Harald Schmalzbauer
>Release:        FreeBSD 6.1-STABLE i386
>Organization:
>Environment:
System: FreeBSD cale.flintsbach.schmalzbauer.de 6.1-STABLE FreeBSD 6.1-STABLE #1: Sat Jun 3 06:46:17 CEST 2006 compilator@:/usr/obj/usr/src/sys/CALE i386


	
>Description:
	There is no option to specify which IP address to bind to.
On systems with jails and multiple NICs one might want to have it listening
only on a single IP
>How-To-Repeat:
	Use the following rc.conf setup:
nfs_server_enable="YES"
nfs_server_flags="-u -t -n 4 -h fec0::1:0:0:2:1 -h 127.0.0.1 -h ::1"
rpcbind_enable="YES"
rpcbind_flags="-h fec0::1:0:0:2:1"
rpc_lockd_enable="YES"
rpc_statd_enable="YES"

Now look at the output of netstat -a -f inet

>Fix:

	


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->matteo 
Responsible-Changed-By: matteo 
Responsible-Changed-When: Tue Sep 18 14:38:27 UTC 2007 
Responsible-Changed-Why:  
I'll work on this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=98500 
State-Changed-From-To: open->feedback 
State-Changed-By: matteo 
State-Changed-When: Sun Sep 30 14:46:17 UTC 2007 
State-Changed-Why:  
A patch for -current is available at http://people.freebsd.org/~matteo/diff/98500lockdstatd.diff . Can you please try it? Thanks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=98500 
State-Changed-From-To: feedback->patched 
State-Changed-By: matteo 
State-Changed-When: Gio 1 Nov 2007 20:14:02 UTC 
State-Changed-Why:  
feature committed to HEAD 

http://www.freebsd.org/cgi/query-pr.cgi?pr=98500 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/98500: commit references a PR
Date: Thu,  1 Nov 2007 20:13:46 +0000 (UTC)

 matteo      2007-11-01 20:13:34 UTC
 
   FreeBSD src repository
 
   Modified files:
     usr.sbin/rpc.statd   rpc.statd.8 statd.c 
   Log:
   Add the -h <bindip> option to rpc.statd, similar to the one in nfsd(8)
   and in mountd(8)
   
   -h bindip
   Specify specific IP addresses to bind to for TCP and UDP requests.
   This option may be specified multiple times.  If no -h option is
   specified, rpc.statd will bind to INADDR_ANY.  Note that when specifying
   IP addresses with -h, rpc.statd will automatically add 127.0.0.1 and if
   IPv6 is enabled, ::1 to the list.
   
   (coming for rpc.lockd too)
   
   PR:             bin/98500
   MFC after:      1 week
   
   Revision  Changes    Path
   1.15      +19 -1     src/usr.sbin/rpc.statd/rpc.statd.8
   1.16      +317 -91   src/usr.sbin/rpc.statd/statd.c
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/98500: commit references a PR
Date: Fri,  2 Nov 2007 14:52:01 +0000 (UTC)

 matteo      2007-11-02 14:51:53 UTC
 
   FreeBSD src repository
 
   Modified files:
     usr.sbin/rpc.lockd   lockd.c rpc.lockd.8 
   Log:
   Add the -h <bindip> option to rpc.lockd, similar to the one in
   nfsd(8), in mountd(8), and in rpc.statd(8)
   
   -h bindip
   Specify specific IP addresses to bind to for TCP and UDP requests.
   This option may be specified multiple times.  If no -h option is
   specified, rpc.lockd will bind to INADDR_ANY.  Note that when specifying
   IP addresses with -h, rpc.lockd will automatically add 127.0.0.1 and
   if IPv6 is enabled, ::1 to the list.
   
   PR:             bin/98500
   MFC after:      1 week
   
   Revision  Changes    Path
   1.21      +328 -109  src/usr.sbin/rpc.lockd/lockd.c
   1.18      +19 -1     src/usr.sbin/rpc.lockd/rpc.lockd.8
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: patched->closed 
State-Changed-By: matteo 
State-Changed-When: Mer 26 Mar 2008 20:31:49 UTC 
State-Changed-Why:  
dfr@ MFC'ed this on RELENG_7  

http://www.freebsd.org/cgi/query-pr.cgi?pr=98500 
>Unformatted:
