From dave@strangelove.glynjones.com  Fri Jan 23 16:14:43 2004
Return-Path: <dave@strangelove.glynjones.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 5CC3616A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 23 Jan 2004 16:14:43 -0800 (PST)
Received: from strangelove.glynjones.com (63-212-172-50.glynjones.com [63.212.172.50])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 97BAF43D58
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 23 Jan 2004 16:13:52 -0800 (PST)
	(envelope-from dave@strangelove.glynjones.com)
Received: from dave by strangelove.glynjones.com with local (Exim 4.24; FreeBSD)
	id 1AkBQU-000GWK-S8
	for FreeBSD-gnats-submit@freebsd.org; Fri, 23 Jan 2004 16:13:26 -0800
Message-Id: <E1AkBQU-000GWK-S8@strangelove.glynjones.com>
Date: Fri, 23 Jan 2004 16:13:26 -0800
From: Dave Byrne <dave@strangelove.glynjones.com>
Reply-To: Dave Byrne <dave@glynjones.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [PATCH] Update RPC prgs to allow binding to specific addrs on multi-homed systems
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         61808
>Category:       bin
>Synopsis:       [PATCH] Update RPC prgs to allow binding to specific addrs on multi-homed systems
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 23 16:20:02 PST 2004
>Closed-Date:    Tue Sep 18 13:56:55 GMT 2007
>Last-Modified:  Tue Sep 18 13:56:55 GMT 2007
>Originator:     Dave Byrne
>Release:        FreeBSD 4.9-STABLE
>Organization:
>Environment:
System: FreeBSD strangelove.glynjones.com 4.9-STABLE FreeBSD 4.9-STABLE #0: Mon Jan 5 13:38:16 PST 2004 dave@strangelove.glynjones.com:/usr/obj/usr/src/sys/STD-SP i386

>Description:

	Addition of -h flags to mountd(8), portmap(8), rpc.lockd(8), 
and rpc.statd(8) to allow tcp/udp binding to specific ip addresses.  
This patch allows NFS to be run over a private network on systems with 
one interface connected to a public network and another connected to a 
private network without binding to all interfaces. When the -h flag 
is specified, the programs will continue to run as-is, however will 
not bind to INADDR_ANY, but instead to 127.0.0.1 and any addresses 
specified. 

Modeled after -h flag in nfsd(8). Updates to man pages are included
in the patch.

Useful in cases where running these programs on a public 
network is not desirable in case of future bugs.  Patch has been 
tested against 4-STABLE.

>How-To-Repeat:
	
>Fix:

	Patch at: http://strangelove.glynjones.com/~dave/rpcpatches.diff


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: matteo 
State-Changed-When: Tue Sep 18 13:56:12 UTC 2007 
State-Changed-Why:  
rpc.lockd, rpc.statd and rpcbind already grew such option. I have a patch for mountd that I will commit soon. 

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