[Bug 1430181] Re: Cannot prevent rpcbind from listening on all interfaces for TCP connections

Robie Basak 1430181 at bugs.launchpad.net
Tue May 31 08:23:27 UTC 2016


Laurent,

Thank you for adding the Debian bug watch. I think the Debian bug refers
to UDP only though, and the complaint in this bug is for TCP support, so
I don't think the two bugs track the same issue. Consequently I'm
deleting the bug watch. If this is wrong, please comment.

** Changed in: rpcbind (Debian)
   Importance: Unknown => Undecided

** Changed in: rpcbind (Debian)
       Status: Unknown => New

** Changed in: rpcbind (Debian)
 Remote watch: Debian Bug tracker #621807 => None

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to rpcbind in Ubuntu.
https://bugs.launchpad.net/bugs/1430181

Title:
  Cannot prevent rpcbind from listening on all interfaces for TCP
  connections

Status in rpcbind package in Ubuntu:
  Triaged
Status in rpcbind source package in Precise:
  Won't Fix
Status in rpcbind source package in Trusty:
  Won't Fix
Status in rpcbind source package in Utopic:
  Won't Fix
Status in rpcbind source package in Vivid:
  Won't Fix
Status in rpcbind package in Debian:
  New

Bug description:
  There is no way to prevent rpcbind from listening on all interfaces
  for TCP connections. The setting "-h" only applies to UDP connections.
  There is a bug and fix from 2007:

  https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=84494

  The link to the fix gives a 404 for me, but it probably is in their
  VCS.

  How to reproduce:

  1. install rpcbind
  2. in /etc/default/rpcbind:

  OPTIONS="$OPTIONS -h 192.168.255.1"

  3. restart rpcbind

  root at node1 ~ # netstat -lnp | grep rpcbind
  tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      8982/rpcbind    
  tcp6       0      0 :::111                  :::*                    LISTEN      8982/rpcbind    
  udp        0      0 192.168.255.1:111       0.0.0.0:*                           8982/rpcbind    
  udp        0      0 127.0.0.1:111           0.0.0.0:*                           8982/rpcbind    
  udp        0      0 0.0.0.0:677             0.0.0.0:*                           8982/rpcbind    
  udp6       0      0 ::1:111                 :::*                                8982/rpcbind    
  udp6       0      0 :::677                  :::*                                8982/rpcbind    

  The same applies to rpc.statd: even when supplying the

  -n, --name ipaddr | hostname
                Specifies the bind address used for RPC listener sockets.

  option, it still listens on all interfaces, while '--outgoing-port'
  and '--port' work as expected:

  /etc/default/nfs-common:
  STATDOPTS="--name 192.168.255.1 --port 32765 --outgoing-port 32766"

  root at node1 ~ # netstat -lnp | grep rpc.statd
  tcp        0      0 0.0.0.0:32765           0.0.0.0:*               LISTEN      8988/rpc.statd  
  tcp6       0      0 :::32765                :::*                    LISTEN      8988/rpc.statd  
  udp        0      0 0.0.0.0:32765           0.0.0.0:*                           8988/rpc.statd  
  udp        0      0 127.0.0.1:684           0.0.0.0:*                           8988/rpc.statd  
  udp6       0      0 :::32765                :::*                                8988/rpc.statd

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rpcbind/+bug/1430181/+subscriptions



More information about the foundations-bugs mailing list