Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Jan 2006 19:24:08 -0800
From:      James Long <stable@museum.rain.com>
To:        Vivek Khera <vivek@khera.org>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: rpcbind lingering on IP no longer specified on command line
Message-ID:  <20060107032408.GA75676@ns.museum.rain.com>
In-Reply-To: <CFE93CDE-135A-4042-8A40-EB79D10C42E5@khera.org>
References:  <20060106040839.A38DE16A46C@hub.freebsd.org> <20060106094024.GA43299@ns.museum.rain.com> <CFE93CDE-135A-4042-8A40-EB79D10C42E5@khera.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jan 06, 2006 at 10:22:43AM -0500, Vivek Khera wrote:
> 
> On Jan 6, 2006, at 4:40 AM, James Long wrote:
> 
> >>Yeah, I noticed that little tiny "UDP requests" note in the -h docs
> >>too.  There's no reason to bind to all tcp addresses, and it is
> >>causing me heartburn for getting the server certified...
> >
> >Good grief, why not just firewall off the undesired UDP ports and call
> >it good?
> 
> I guess we could take that band-aid approach... however, how do you  
> know what port RPC decides to listen on other than the 111 port?  It  
> is more or less random.  That makes it very difficult to firewall.

P-shaw.  If you're enduring "heartburn for getting the server
certified" then firewall off the rpcbind service from unwanted 
IPs and voila, you get your get your server certified and business
goes on.  Then you'll have the luxury of time to debug the true 
problem with rpcbind, and your testing is done behind the privacy 
of your firewall.

As far as unpredictable listening ports opened by rpc, that is exactly
why a secure firewall opens only selected ports on selected IPs, and 
blocks everything else.  It doesn't matter if it listens on port X of
IP y when your firewall doesn't permit incoming connections on that 
port and IP in the first place.

Jim


># sockstat | grep rpcbind
>root     rpcbind    11382 5  stream /var/run/rpcbind.sock
>root     rpcbind    11382 6  dgram  -> /var/run/logpriv
>root     rpcbind    11382 7  udp4   127.0.0.1:111         *:*
>root     rpcbind    11382 8  udp4   192.168.100.200:111   *:*
>root     rpcbind    11382 9  udp4   *:664                 *:*
>root     rpcbind    11382 10 tcp4   *:111                 *:*





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060107032408.GA75676>