Network File System; NFSv4 needs only 2049, while NFSv3 also needs rpcbind (111) and mountd.
Network File System; NFSv4 needs only 2049, while NFSv3 also needs rpcbind (111) and mountd.
Do not expose to the internet. Never expose NFS. Exports authenticate by client IP and UID by default (AUTH_SYS), so anyone who can reach them can often read files. Restrict exports in /etc/exports and firewall the port.
sudo ss -tlnp 'sport = :2049'sudo ss -ulnp 'sport = :2049'sudo lsof -nP -i :2049sudo netstat -tlnp | grep ':2049 'netstat -ano | findstr :2049Get-NetTCPConnection -LocalPort 2049 -State Listen | Select LocalAddress,OwningProcessnc -vz -w 5 HOST 2049Test-NetConnection HOST -Port 2049nc -vzu -w 5 HOST 2049sudo ufw deny 2049/tcpsudo iptables -A INPUT -p tcp --dport 2049 -j DROPsudo nft add rule inet filter input tcp dport 2049 dropNew-NetFirewallRule -DisplayName 'Block TCP 2049' -Direction Inbound -Protocol TCP -LocalPort 2049 -Action Blocksudo ufw deny 2049/udpsudo iptables -A INPUT -p udp --dport 2049 -j DROPsudo nft add rule inet filter input udp dport 2049 dropNew-NetFirewallRule -DisplayName 'Block UDP 2049' -Direction Inbound -Protocol UDP -LocalPort 2049 -Action BlockAll port numbers · Open port checker
Assignment data: IANA port number registry (public domain), retrieved 2026-11-10.