From owner-freebsd-stable@FreeBSD.ORG Fri Jan 6 14:35:30 2006 Return-Path: X-Original-To: stable@freebsd.org Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A85C416A41F; Fri, 6 Jan 2006 14:35:30 +0000 (GMT) (envelope-from marck@rinet.ru) Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id C5F8B43D49; Fri, 6 Jan 2006 14:35:29 +0000 (GMT) (envelope-from marck@rinet.ru) Received: from localhost (localhost [127.0.0.1]) by woozle.rinet.ru (8.13.3/8.13.3) with ESMTP id k06EZSUj011636; Fri, 6 Jan 2006 17:35:28 +0300 (MSK) (envelope-from marck@rinet.ru) Date: Fri, 6 Jan 2006 17:35:28 +0300 (MSK) From: Dmitry Morozovsky To: Ceri Davies In-Reply-To: <20060106103648.GJ31522@submonkey.net> Message-ID: <20060106173204.P87428@woozle.rinet.ru> References: <20060104222846.K98554@woozle.rinet.ru> <20060106103648.GJ31522@submonkey.net> X-NCC-RegID: ru.rinet MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (woozle.rinet.ru [0.0.0.0]); Fri, 06 Jan 2006 17:35:28 +0300 (MSK) Cc: Vivek Khera , stable@freebsd.org Subject: Re: rpcbind lingering on IP no longer specified on command line X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Jan 2006 14:35:30 -0000 On Fri, 6 Jan 2006, Ceri Davies wrote: CD> > VK> I had rpcbind running with on two interfaces like this: CD> > VK> CD> > VK> rpcbind -h 192.168.100.200 -h 10.0.0.9 CD> > VK> CD> > VK> Now, I changed rpcbind_flags in /etc/rc.conf to just have the first address, CD> > VK> and I restarted rpcbind. the process list from ps shows it is running like CD> > VK> this: CD> > VK> CD> > VK> rpcbind -h 192.168.100.200 CD> > VK> CD> > VK> Yet nmap on the other address shows rpcbind is still listening on udp there. CD> > VK> How do I stop that? CD> > CD> > As I sometimes looked into this, rpcbind (formely portmap) listens on all CD> > described addresses via udp *and* an tcp:*.111 - I tried to dig why is this but CD> > did not succeed much. CD> CD> Please test this patch. It's probably a very naive fix, but seems to CD> work OK. Well, two objections: - (obvious and dumb ;): three kinds of changes inside: behaviour, style and typo ;-))) - serious: no way to run on NO_INET6 kernel: root@mole:/usr/src/usr.sbin/rpcbind# pid rpc 83231 ?? Ss 0:00.00 /usr/obj/ar/src.6/usr.sbin/rpcbind/rpcbind root@mole:/usr/src/usr.sbin/rpcbind# killall rpcbind root@mole:/usr/src/usr.sbin/rpcbind# pid rpc root@mole:/usr/src/usr.sbin/rpcbind# rpcbind root@mole:/usr/src/usr.sbin/rpcbind# rpcinfo -p program vers proto port service 100000 4 tcp 111 rpcbind 100000 3 tcp 111 rpcbind 100000 2 tcp 111 rpcbind 100000 4 udp 111 rpcbind 100000 3 udp 111 rpcbind 100000 2 udp 111 rpcbind 100000 4 local 111 rpcbind 100000 3 local 111 rpcbind 100000 2 local 111 rpcbind root@mole:/usr/src/usr.sbin/rpcbind# killall rpcbind root@mole:/usr/src/usr.sbin/rpcbind# /usr/obj/ar/src.6/usr.sbin/rpcbind/rpcbind root@mole:/usr/src/usr.sbin/rpcbind# rpcinfo -p rpcinfo: can't contact portmapper: RPC: Port mapper failure - RPC: Success root@mole:/usr/src/usr.sbin/rpcbind# sockstat -4 | grep rpc root rpcbind 83332 7 udp4 *:111 *:* root rpcbind 83332 8 udp4 *:608 *:* root rpcbind 83332 9 tcp4 *:111 *:* Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------