Port 2049 is NFS, TCP and UDP.
TCPUDP
medium risk
App-IDnfs
Network File System — Unix/Linux network file sharing. NFSv4 needs only this port; NFSv3 also needs rpcbind (111) and mountd.
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-2049 protocol tcp port 2049
set service udp-2049 protocol udp port 2049
set rulebase security rules <rule-name> from <from-zone> to <to-zone> source any destination any application nfs service [ tcp-2049 udp-2049 ] 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 :2049 - Linux
ss -ulnp | grep :2049 - PowerShell
Test-NetConnection <host> -Port 2049 - nmap
nmap -p 2049 <host> - nmap
nmap -sU -p 2049 <host>