Port 111 is the ONC RPC portmapper (rpcbind). It maps RPC program numbers to dynamic TCP/UDP ports. Used by NFSv3, NIS, and other RPC-based services. Portmapper should be blocked at the firewall for any public-facing server – it exposes information about all registered RPC services and has been involved in DDoS amplification attacks.
Port Number
111
Protocol
TCP/UDP
Service
ONC RPC Portmapper
Range
IANA Well-Known (0–1023)
List all registered RPC programs (shows what portmapper is advertising)
rpcinfo -p localhostCheck if portmapper is reachable on target (should fail from internet)
rpcinfo -T udp target 100000Verify rpcbind binding (should be 127.0.0.1 or specific interface, not 0.0.0.0)
ss -tulnp | grep 111Check if rpcbind is running (disable if NFSv4 only)
systemctl status rpcbind && systemctl stop rpcbindrpcinfo -p localhost
nmap -sV -p 111 serverPortmapper was created by Sun Microsystems in the early 1980s as part of ONC RPC (RFC 1057). Port 111 was assigned by IANA. It acts as a directory service: RPC programs register their dynamic port numbers with portmapper, and clients query port 111 to find them. NFSv4 (2003) eliminated the need for portmapper by using only TCP 2049. Modern Linux uses rpcbind (replacing the original portmap daemon) which added support for IPv6.
Can I disable rpcbind entirely?
Yes, IF: (1) you use NFSv4 exclusively (not NFSv3), (2) you don't run NIS, and (3) no legacy RPC services are needed. Disable with: systemctl disable --now rpcbind rpcbind.socket. Test NFS mounts still work (NFSv4 mounts directly on port 2049 without portmapper). AWS EFS uses NFSv4.1 and doesn't need rpcbind on the client.
Why is UDP port 111 dangerous?
UDP portmapper responds to queries without a TCP handshake, making it exploitable for amplified DDoS: attacker spoofs victim's IP in the source field, sends small query to port 111, server sends 20-28x larger response to the victim. Thousands of exposed portmappers combine into Gbps-scale attacks. Even if you need rpcbind, disable UDP: rpcbind -w (disable UDP listening) or block UDP 111 in iptables.