RHEL7: rpcbind listens on ports tcp/111 and/or tcp6/111 while it should not
Issue
-
On boot,
rpcbindlistens on porttcp6/111while it should not (systemdis supposed to listen on this port)# netstat -anlp | grep -w -e 111 | grep LISTEN tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1/systemd tcp6 0 0 :::111 :::* LISTEN 966/rpcbind -
After reloading
systemd,rpcbindlistens on bothtcp/111andtcp6/111ports while it should not (systemdis supposed to listen on these ports)# systemctl daemon-reload # netstat -anlp | grep -w -e 111 | grep LISTEN tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 966/rpcbind tcp6 0 0 :::111 :::* LISTEN 966/rpcbind -
Restarting the
nfslock.serviceunit fails in error# systemctl restart nfslock.service A dependency job for rpc-statd.service failed. See 'journalctl -xe' for details. # systemctl status nfslock.service ● rpc-statd.service - NFS status monitor for NFSv2/3 locking. Loaded: loaded (/usr/lib/systemd/system/rpc-statd.service; static; vendor preset: disabled) Active: inactive (dead) since Fri 2018-03-02 13:01:10 CET; 17s ago Main PID: 966 (code=exited, status=0/SUCCESS) systemd[1]: Stopping NFS status monitor for NFSv2/3 locking.... systemd[1]: Dependency failed for NFS status monitor for NFSv2/3 locking.. systemd[1]: Job rpc-statd.service/start failed with result 'dependency'.
Environment
- Red Hat Enterprise Linux 7
- rpcbind < 0.2.0-44
- systemd
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
