Skip to contentSkip to conversation

rpcbind listen on localhost only?

DISCUSSION Jim Rees 2 participants 2 messages Nov 3, 2011

Subsystems (2)
lore
Share & tools
lore

Jim Rees

author
#0 lore raw

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.

#1 lore raw
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