There is no way to prevent rpcbind from listening on all interfaces for TCP connections. The setting "-h" only applies to UDP connections.
Without the attached patch, starting rpcbind with -h makes no effect to listen on a specific address:
$ rpcbind -h 192.168.100.2
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 22011/rpcbind tcp6 0 0 :::111 :::* LISTEN 22011/rpcbind udp 0 0 127.0.0.1:111 0.0.0.0:* 22011/rpcbind udp 0 0 0.0.0.0:986 0.0.0.0:* 22011/rpcbind udp6 0 0 ::1:111 :::* 22011/rpcbind udp6 0 0 :::986 :::* 22011/rpcbind
With this patch, starting rpcbind with -h makes effect to listen to a specific address
tcp 0 0 192.168.100.2:111 0.0.0.0:* LISTEN 24826/rpcbind tcp 0 0 127.0.0.1:111 0.0.0.0:* LISTEN 24826/rpcbind tcp6 0 0 ::1:111 :::* LISTEN 24826/rpcbind
There is no way to prevent rpcbind from listening on all interfaces for TCP connections. The setting "-h" only applies to UDP connections.
Without the attached patch, starting rpcbind with -h makes no effect to listen on a specific address:
$ rpcbind -h 192.168.100.2
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 22011/rpcbind
tcp6 0 0 :::111 :::* LISTEN 22011/rpcbind
udp 0 0 127.0.0.1:111 0.0.0.0:* 22011/rpcbind
udp 0 0 0.0.0.0:986 0.0.0.0:* 22011/rpcbind
udp6 0 0 ::1:111 :::* 22011/rpcbind
udp6 0 0 :::986 :::* 22011/rpcbind
With this patch, starting rpcbind with -h makes effect to listen to a specific address
$ rpcbind -h 192.168.100.2
tcp 0 0 192.168.100.2:111 0.0.0.0:* LISTEN 24826/rpcbind
tcp 0 0 127.0.0.1:111 0.0.0.0:* LISTEN 24826/rpcbind
tcp6 0 0 ::1:111 :::* LISTEN 24826/rpcbind