rpcbind listen on localhost only?
Subsystems (2)
How do I get rpcbind to only listen on localhost and not on INADDR_ANY, equivalent to the "-l" option to portmap? The man page implies that "-h 127.0.0.1" should do it, but that doesn't work.
Quoted 3 lines · Jim Rees
How do I get rpcbind to only listen on localhost and not on
INADDR_ANY, equivalent to the "-l" option to portmap? The man page implies that "-h 127.0.0.1" should do it, but that doesn't work.
I imagine this doesn't work because for localhost, rpcbind listens on AF_LOCAL socket /var/run/rpcbind.sock. This allows authentication of the registrand. Normally this interface isn't exposed directly to applications: they use the APIs in libtirpc (or glibc) to access the local rpcbind service.
Signature · 2 lines
Chuck Lever chuck[dot]lever[at]oracle[dot]com