From owner-freebsd-bugs@FreeBSD.ORG Fri Jan 23 16:23:55 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 49F3816A4CE for ; Fri, 23 Jan 2004 16:23:55 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5CB5D43D86 for ; Fri, 23 Jan 2004 16:21:35 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i0O0K3FR075806 for ; Fri, 23 Jan 2004 16:20:03 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i0O0K3Xo075805; Fri, 23 Jan 2004 16:20:03 -0800 (PST) (envelope-from gnats) Resent-Date: Fri, 23 Jan 2004 16:20:03 -0800 (PST) Resent-Message-Id: <200401240020.i0O0K3Xo075805@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Dave Byrne Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5CC3616A4CE for ; 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 ; 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: Date: Fri, 23 Jan 2004 16:13:26 -0800 From: Dave Byrne To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: bin/61808: [PATCH] Update RPC prgs to allow binding to specific addrs on multi-homed systems X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Dave Byrne List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Jan 2004 00:23:55 -0000 >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: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Jan 23 16:20:02 PST 2004 >Closed-Date: >Last-Modified: >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: >Unformatted: