Port 111 is RPC Portmapper, TCP and UDP.
TCPUDP
medium risk
App-IDsunrpc
ONC RPC portmapper (rpcbind) — maps RPC program numbers to port numbers. Required for NFS. A known target for enumeration.
Palo Alto
Create the service objects for this port, then allow the App-ID on it. Restricting the rule to the port's service object keeps the rule working on a non-default port and stops the App-ID matching on other ports. Replace the placeholders with your own rule name and zones.
set service tcp-111 protocol tcp port 111
set service udp-111 protocol udp port 111
set rulebase security rules <rule-name> from <from-zone> to <to-zone> source any destination any application sunrpc service [ tcp-111 udp-111 ] action allow
Risk and exposure
Rated medium risk. Restrict this port to the sources that need it and keep the service patched; avoid exposing it to the whole internet unless the service is meant to be public.
Check it
- Linux
ss -tlnp | grep :111 - Linux
ss -ulnp | grep :111 - PowerShell
Test-NetConnection <host> -Port 111 - nmap
nmap -p 111 <host> - nmap
nmap -sU -p 111 <host>