From owner-freebsd-bugs@FreeBSD.ORG Wed Oct 31 06:20:04 2007 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E728216A46C for ; Wed, 31 Oct 2007 06:20:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C97FD13C4B3 for ; Wed, 31 Oct 2007 06:20:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l9V6K3xn014182 for ; Wed, 31 Oct 2007 06:20:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l9V6K3Dl014181; Wed, 31 Oct 2007 06:20:03 GMT (envelope-from gnats) Resent-Date: Wed, 31 Oct 2007 06:20:03 GMT Resent-Message-Id: <200710310620.l9V6K3Dl014181@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, Carlos Eduardo Monti Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 689B316A41B for ; Wed, 31 Oct 2007 06:13:30 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 5A05C13C4AC for ; Wed, 31 Oct 2007 06:13:30 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l9V6DTGv018013 for ; Wed, 31 Oct 2007 06:13:29 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.1/8.14.1/Submit) id l9V6DTXu018012; Wed, 31 Oct 2007 06:13:29 GMT (envelope-from nobody) Message-Id: <200710310613.l9V6DTXu018012@www.freebsd.org> Date: Wed, 31 Oct 2007 06:13:29 GMT From: Carlos Eduardo Monti To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/117711: rpcbind binds to all interfaces on random ports even when using the -h flag X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Oct 2007 06:20:04 -0000 >Number: 117711 >Category: misc >Synopsis: rpcbind binds to all interfaces on random ports even when using the -h flag >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Oct 31 06:20:03 UTC 2007 >Closed-Date: >Last-Modified: >Originator: Carlos Eduardo Monti >Release: FreeBSD 6.3-PRERELEASE >Organization: gfx & stuff >Environment: FreeBSD overnight.wicked.homeunix.net 6.3-PRERELEASE FreeBSD 6.3-PRERELEASE #2: Sun Oct 28 01:47:10 ART 2007 root@overnight.wicked.homeunix.net:/usr/obj/usr/src/sys/OVERNIGHT i386 >Description: rpcbind opens two sockets on all interfaces on random ports when specified the -h flag, one socket for udp4 and one for udp6. >How-To-Repeat: overnight# sockstat | grep rpcbind overnight# rpcbind -h 192.168.0.3 overnight# sockstat | grep rpcbind root rpcbind 2696 4 udp6 *:* *:* root rpcbind 2696 5 stream /var/run/rpcbind.sock root rpcbind 2696 6 udp6 ::1:111 *:* root rpcbind 2696 7 udp6 *:* *:* root rpcbind 2696 8 udp6 *:617 *:* root rpcbind 2696 9 tcp6 ::1:111 *:* root rpcbind 2696 10 tcp6 *:* *:* root rpcbind 2696 11 udp4 127.0.0.1:111 *:* root rpcbind 2696 12 udp4 192.168.0.3:111 *:* root rpcbind 2696 13 udp4 *:944 *:* root rpcbind 2696 14 tcp4 127.0.0.1:111 *:* root rpcbind 2696 15 tcp4 192.168.0.3:111 *:* overnight# killall rpcbind overnight# rpcbind -h 192.168.0.3 overnight# sockstat | grep rpcbind root rpcbind 2701 4 udp6 *:* *:* root rpcbind 2701 5 stream /var/run/rpcbind.sock root rpcbind 2701 6 udp6 ::1:111 *:* root rpcbind 2701 7 udp6 *:* *:* root rpcbind 2701 8 udp6 *:943 *:* root rpcbind 2701 9 tcp6 ::1:111 *:* root rpcbind 2701 10 tcp6 *:* *:* root rpcbind 2701 11 udp4 127.0.0.1:111 *:* root rpcbind 2701 12 udp4 192.168.0.3:111 *:* root rpcbind 2701 13 udp4 *:804 *:* root rpcbind 2701 14 tcp4 127.0.0.1:111 *:* root rpcbind 2701 15 tcp4 192.168.0.3:111 *:* >Fix: >Release-Note: >Audit-Trail: >Unformatted: